From 8dbb7ce4149764df41d6a5939fb8efa348f8f3c1 Mon Sep 17 00:00:00 2001 From: Daniel Opitz Date: Sun, 7 Mar 2021 14:47:54 +0100 Subject: [PATCH] Fix PHP 8 issues #15 --- benchmark.php | 64 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 38 insertions(+), 26 deletions(-) diff --git a/benchmark.php b/benchmark.php index dcbd08e..f256728 100644 --- a/benchmark.php +++ b/benchmark.php @@ -1,14 +1,12 @@ '; $result .= 'System Info'; @@ -289,7 +301,7 @@ function print_benchmark_result($data, $showServerName = true) $result .= 'Benchmark'; $result .= ''; - $result .= 'Math' . h($data['benchmark']['math']) . ''; + $result .= 'Math' . h($data['benchmark']['math']) . ''; $result .= 'String' . h($data['benchmark']['string']) . ''; $result .= 'Loops' . h($data['benchmark']['loops']) . ''; $result .= 'If Else' . h($data['benchmark']['ifelse']) . '';