3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = Array ( "Ron" => Array ( "subject1" => Array ( "test1" => 47, "test2" => 86, "total" => 133, "percentage" => 88.67, "status" => "Pass", "pass_count" => 8, "fail_count" => 0, "gross_total" => 963, "gross_percentage" => 80.25, ) "subject8" => Array ( "test1" => 48, "test2" => 86, "total" => 134, "percentage" => 89.33, "status" => "Pass", "pass_count" => 8, "fail_count" => 0, "gross_total" => 900, "gross_percentage" => 75.50, ) ) "John" => Array ( "subject1" => Array ( "test1" => 39, "test2" => 72, "total" => 111, "percentage" => 74, "status" => "Pass", "pass_count" => 8, "fail_count" => 0, "gross_total" => 963, "gross_percentage" => 80.25, ), "subject8" => Array ( "test1" => 39, "test2" => 75, "total" => 114, "percentage" => 76, "status" => "Pass", "pass_count" => 8, "fail_count" => 0, "gross_total" => 846, "gross_percentage" => 70.5, ) ) ); $table = "<table>"; $tab;e .= table_cell($data); $table .= "</table>"; echo $table; function table_cell($data) { $return = "<tr>"; foreach ($data as $key => $value) $return .= "<td>$key</td><td>"; if (is_array($value)) { $return .= table_cell($value); } else { $return .= $value; } $returm .= "</td>"; } return($return); $return .= "</tr>" }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.6.80.0000.04020.40
5.5.240.0070.03020.26
5.4.400.1200.05018.67
5.4.390.0170.05718.56
5.4.380.0230.05318.62
5.4.370.0130.06318.47
5.4.360.0370.06318.80
5.4.350.0270.05018.79
5.4.340.0200.05718.62
5.4.320.0330.06718.59
5.4.310.1500.04318.50
5.4.300.0330.05718.65
5.4.290.1670.06018.63
5.4.280.0330.04714.96
5.4.270.0370.04018.70
5.4.260.1470.06018.52
5.4.250.0200.08018.78
5.4.240.0370.07718.75
5.4.230.0300.08018.79
5.4.220.0200.06718.49
5.4.210.1730.07018.50
5.4.200.0300.06716.80
5.4.190.0370.07318.43
5.4.180.1030.06718.77
5.4.170.0400.07318.51
5.4.160.0270.07718.59
5.4.150.0770.06318.67
5.4.140.0330.05016.27
5.4.130.0170.05316.21
5.4.120.0330.06716.22
5.4.110.0230.06716.43
5.4.100.0230.04716.15
5.4.90.0400.04716.25
5.4.80.0130.05316.40
5.4.70.1070.06316.27
5.4.60.0170.06716.26
5.4.50.1730.05716.23
5.4.40.0270.06016.38
5.4.30.0200.06316.15
5.4.20.0270.06716.25
5.4.10.1830.07016.17
5.4.00.0330.05015.65
5.3.290.0170.06014.58
5.3.280.0270.05314.51
5.3.270.0370.05314.54
5.3.260.0270.07314.59
5.3.250.0270.06714.60
5.3.240.1470.06014.59
5.3.230.0230.06014.57
5.3.220.0230.05714.63
5.3.210.0170.08714.64
5.3.200.0270.07314.46
5.3.190.0230.05314.48
5.3.180.0300.06014.55
5.3.170.0270.05714.62
5.3.160.0300.06014.52
5.3.150.0970.06014.60
5.3.140.0370.07714.55
5.3.130.2070.06314.55
5.3.120.0230.07314.58
5.3.110.0230.07314.58
5.3.100.0330.06014.03
5.3.90.1930.06714.00
5.3.80.1270.05714.01
5.3.70.0230.07314.05
5.3.60.0170.08013.94
5.3.50.0200.07713.93
5.3.40.0330.06014.04
5.3.30.0170.05713.90
5.3.20.0130.05713.78
5.3.10.0130.06313.75
5.3.00.0270.06713.62
5.2.170.0230.05311.15
5.2.160.0270.04011.11
5.2.150.0100.05011.12
5.2.140.0170.06011.30
5.2.130.0200.04711.24
5.2.120.0130.04311.09
5.2.110.0170.04711.02
5.2.100.0170.04311.25
5.2.90.0070.05011.09
5.2.80.0170.05711.10
5.2.70.0200.04011.02
5.2.60.0230.05011.02
5.2.50.1800.04710.95
5.2.40.0200.04010.96
5.2.30.0100.04311.02
5.2.20.0230.05010.95
5.2.10.0230.04710.91
5.2.00.0230.03710.77
5.1.60.0170.0439.96
5.1.50.0200.03010.07
5.1.40.0130.0379.93
5.1.30.0100.04310.36
5.1.20.0070.04310.35
5.1.10.0170.03010.04
5.1.00.0170.03010.11
5.0.50.0100.0378.53
5.0.40.0200.0378.44
5.0.30.0070.0478.32
5.0.20.0100.0278.19
5.0.10.0070.0308.21
5.0.00.0100.0438.20
4.4.90.0100.0335.91
4.4.80.0100.0305.87
4.4.70.0100.0205.86
4.4.60.0130.0235.85
4.4.50.0130.0175.83
4.4.40.0130.0275.87
4.4.30.0070.0205.88
4.4.20.0130.0175.96
4.4.10.0100.0205.94
4.4.00.0000.0405.98
4.3.110.0130.0135.80
4.3.100.0030.0235.75
4.3.90.0000.0275.79
4.3.80.0100.0305.81
4.3.70.0130.0175.77
4.3.60.0000.0275.84
4.3.50.1400.0235.90
4.3.40.0030.0435.75
4.3.30.0000.0274.57
4.3.20.0170.0274.54
4.3.10.1330.0204.57
4.3.00.0070.0206.96

preferences:
147.02 ms | 1398 KiB | 7 Q