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, ), ), ); print_r($data); $table = table_cell($data); echo $table; function table_cell($data) { $return = "<table border='1'>"; foreach ($data as $key => $value) { $return .= "<tr><td>$key</td><td>"; if (is_array($value)) { $return .= table_cell($value); } else { $return .= $value; } $return .= "</td><tr>"; } $return .= "</tr></table>"; return($return); }

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)
8.3.60.0110.00718.30
8.3.50.0140.00018.14
8.3.40.0110.00318.84
8.3.30.0120.00319.11
8.3.20.0040.00420.16
8.3.10.0040.00421.90
8.3.00.0040.00419.38
8.2.180.0040.01118.16
8.2.170.0130.00722.96
8.2.160.0120.00320.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00819.48
8.2.110.0030.00622.19
8.2.100.0090.00317.78
8.2.90.0050.00317.88
8.2.80.0000.00818.03
8.2.70.0030.00617.93
8.2.60.0080.00017.93
8.2.50.0000.00818.10
8.2.40.0000.00820.55
8.2.30.0000.00818.29
8.2.20.0000.00817.70
8.2.10.0030.00518.23
8.2.00.0000.00817.73
8.1.280.0170.00325.92
8.1.270.0060.00319.16
8.1.260.0070.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.86
8.1.230.0080.00519.08
8.1.220.0050.00317.77
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0090.00017.23
8.1.180.0040.00418.10
8.1.170.0050.00318.41
8.1.160.0030.00622.01
8.1.150.0000.00718.98
8.1.140.0000.00817.50
8.1.130.0000.00717.79
8.1.120.0000.00817.51
8.1.110.0070.00017.46
8.1.100.0000.00817.51
8.1.90.0050.00317.53
8.1.80.0040.00417.41
8.1.70.0030.00317.52
8.1.60.0050.00317.64
8.1.50.0030.00617.63
8.1.40.0000.00817.54
8.1.30.0080.00017.71
8.1.20.0040.00417.63
8.1.10.0040.00417.52
8.1.00.0030.00517.55
8.0.300.0000.00719.76
8.0.290.0050.00317.00
8.0.280.0030.00318.50
8.0.270.0000.00717.20
8.0.260.0000.00717.32
8.0.250.0040.00317.03
8.0.240.0030.00317.07
8.0.230.0040.00417.04
8.0.220.0030.00316.84
8.0.210.0000.00716.85
8.0.200.0030.00317.00
8.0.190.0040.00316.93
8.0.180.0000.00816.96
8.0.170.0040.00416.95
8.0.160.0070.00016.84
8.0.150.0040.00416.99
8.0.140.0060.00316.90
8.0.130.0000.00513.36
8.0.120.0040.00416.79
8.0.110.0040.00416.96
8.0.100.0050.00316.99
8.0.90.0040.00416.93
8.0.80.0030.01216.99
8.0.70.0000.00816.77
8.0.60.0000.00716.90
8.0.50.0030.00516.94
8.0.30.0080.01217.11
8.0.20.0110.00917.40
8.0.10.0030.00617.07
8.0.00.0110.00616.73
7.4.330.0020.00215.03
7.4.320.0000.00616.54
7.4.300.0030.00316.65
7.4.290.0030.00316.46
7.4.280.0040.00416.47
7.4.270.0040.00416.57
7.4.260.0030.00316.61
7.4.250.0050.00216.45
7.4.240.0000.00816.64
7.4.230.0040.00416.39
7.4.220.0130.00916.62
7.4.210.0030.01716.61
7.4.200.0030.00316.67
7.4.160.0030.01316.59
7.4.150.0080.01617.40
7.4.140.0160.00317.86
7.4.130.0120.00916.56
7.4.120.0110.00516.54
7.4.110.0070.01516.46
7.4.100.0070.01016.58
7.4.90.0000.01716.50
7.4.80.0130.00919.39
7.4.70.0090.00916.62
7.4.60.0060.01216.73
7.4.50.0030.00516.38
7.4.40.0090.00916.39
7.4.30.0090.00916.51
7.4.00.0050.01214.81
7.3.330.0030.00313.42
7.3.320.0100.00313.45
7.3.310.0000.00716.41
7.3.300.0020.00516.28
7.3.290.0070.00816.41
7.3.280.0070.01016.40
7.3.270.0130.01017.40
7.3.260.0110.00616.52
7.3.250.0090.01216.48
7.3.240.0030.01416.83
7.3.230.0070.01116.47
7.3.210.0030.01316.46
7.3.200.0090.01319.39
7.3.190.0110.00516.64
7.3.180.0110.00416.45
7.3.170.0080.01216.58
7.3.160.0100.00716.73
7.3.120.0030.01614.70
7.3.110.0070.01114.87
7.3.100.0060.00814.56
7.3.90.0040.00814.88
7.3.80.0090.00415.07
7.3.70.0030.00714.95
7.3.60.0030.01014.98
7.3.50.0030.01014.96
7.3.40.0060.00914.99
7.3.30.0030.01014.84
7.3.20.0090.00616.74
7.3.10.0100.00716.59
7.3.00.0030.00916.28
7.2.330.0090.00916.91
7.2.320.0090.00916.66
7.2.310.0060.01516.69
7.2.300.0180.00416.79
7.2.290.0100.00616.49
7.2.250.0090.00315.34
7.2.240.0100.01015.23
7.2.230.0080.00815.01
7.2.220.0060.00615.11
7.2.210.0070.01115.00
7.2.200.0000.01315.18
7.2.190.0070.01015.18
7.2.180.0000.01615.24
7.2.170.0070.00415.20
7.2.00.0130.01019.05
7.1.330.0120.00315.53
7.1.320.0000.01115.55
7.1.310.0000.01415.80
7.1.300.0090.00315.64
7.1.290.0030.01015.62
7.1.280.0120.00315.67
7.1.270.0040.01115.78
7.1.260.0110.00315.80
7.1.100.0000.01218.12
7.1.70.0040.00417.18
7.1.60.0160.00619.50
7.1.50.0090.01217.07
7.1.00.0030.07722.57
7.0.200.0720.00315.13
7.0.140.0030.03322.10
7.0.60.0200.07020.04
7.0.50.0070.06017.93
7.0.40.0070.09020.10
7.0.30.0330.05320.22
7.0.20.0200.07320.16
7.0.10.0300.08020.06
7.0.00.0070.07020.25
5.6.280.0100.07021.00
5.6.210.0070.07720.71
5.6.200.0100.07318.21
5.6.190.0070.08720.51
5.6.180.0200.09020.80
5.6.170.0230.05720.54
5.6.160.0070.08320.50
5.6.150.0030.04318.18
5.6.140.0130.07018.24
5.6.130.0100.06018.18
5.6.120.0070.04021.04
5.6.110.0100.07721.02
5.6.100.0170.07021.03
5.6.90.0070.09021.13
5.6.80.0070.06020.42
5.6.70.0300.06320.45
5.5.350.0300.07720.36
5.5.340.0030.04017.99
5.5.330.0000.08720.13
5.5.320.0100.04020.23
5.5.310.0370.07320.17
5.5.300.0000.04317.94
5.5.290.0070.08718.07
5.5.280.0030.04320.89
5.5.270.0100.08020.77
5.5.260.0130.07020.65
5.5.250.0170.02720.62
5.5.240.0130.08720.28
5.4.450.0800.05719.45
5.4.440.1000.08319.56
5.4.430.0870.07719.29
5.4.420.0170.05319.53
5.4.410.0070.06318.92
5.4.400.0270.05718.87
5.4.390.0170.05318.62
5.4.380.0230.05018.63
5.4.370.0200.06018.73
5.4.360.0100.06718.75
5.4.350.0270.05318.51
5.4.340.0200.05718.58
5.4.320.0370.04318.60
5.4.310.0100.06318.61
5.4.300.0300.07318.63
5.4.290.0330.05018.78
5.4.280.0300.04718.74
5.4.270.0170.05718.48
5.4.260.0230.06718.70
5.4.250.0300.06318.76
5.4.240.0200.05318.61
5.4.230.0370.03718.58
5.4.220.0100.06318.74
5.4.210.0270.04718.55
5.4.200.0170.05716.63
5.4.190.0130.06018.46
5.4.180.0330.06018.61
5.4.170.0370.07018.58
5.4.160.0170.07318.69
5.4.150.0300.05318.76
5.4.140.0200.05316.27
5.4.130.0170.05316.27
5.4.120.0270.05316.30
5.4.110.0270.04716.21
5.4.100.0100.06716.37
5.4.90.0230.05016.35
5.4.80.0130.05316.32
5.4.70.0200.06016.42
5.4.60.0100.06716.26
5.4.50.0230.05316.22
5.4.40.0270.06016.43
5.4.30.0300.04016.31
5.4.20.0170.05716.35
5.4.10.0100.06016.27
5.4.00.0130.05715.72
5.3.290.0170.06014.70
5.3.280.0230.07014.59
5.3.270.0200.05314.75
5.3.260.0230.06714.80
5.3.250.0170.05714.75
5.3.240.0200.05014.78
5.3.230.0300.04314.72
5.3.220.0270.04714.76
5.3.210.0130.06314.64
5.3.200.0130.05714.74
5.3.190.0230.07714.76
5.3.180.0430.05714.75
5.3.170.0170.05314.68
5.3.160.0270.04714.80
5.3.150.0230.05014.68
5.3.140.0170.05314.77
5.3.130.0170.06014.56
5.3.120.0200.07014.59
5.3.110.0230.05314.70
5.3.100.0200.05314.09
5.3.90.0230.06014.07
5.3.80.0270.04714.02
5.3.70.0270.05314.07
5.3.60.0270.04314.01
5.3.50.0230.04714.07
5.3.40.0230.05714.02
5.3.30.0300.04314.05
5.3.20.0270.04313.91
5.3.10.0100.06013.79
5.3.00.0200.05013.74
5.2.170.0100.04711.14
5.2.160.0130.05011.18
5.2.150.0170.05011.40
5.2.140.0200.04011.18
5.2.130.0170.04311.12
5.2.120.0100.04711.35
5.2.110.0130.04311.22
5.2.100.0170.04711.23
5.2.90.0130.04711.10
5.2.80.0130.04311.10
5.2.70.0230.04311.15
5.2.60.0230.03311.11
5.2.50.0130.04711.07
5.2.40.0130.04011.12
5.2.30.0070.05011.06
5.2.20.0100.04710.95
5.2.10.0070.04710.97
5.2.00.0130.04310.84
5.1.60.0070.04010.01
5.1.50.0170.03010.04
5.1.40.0100.04010.02
5.1.30.0070.04310.57
5.1.20.0230.02310.46
5.1.10.0070.04010.19
5.1.00.0170.05010.18
5.0.50.0030.0378.70
5.0.40.0130.0278.54
5.0.30.0070.0478.29
5.0.20.0100.0278.23
5.0.10.0130.0278.28
5.0.00.0030.0478.17
4.4.90.0030.0275.93
4.4.80.0130.0236.04
4.4.70.0130.0235.92
4.4.60.0100.0205.92
4.4.50.0200.0235.96
4.4.40.0130.0435.97
4.4.30.0100.0235.99
4.4.20.0100.0206.00
4.4.10.0070.0236.11
4.4.00.0130.0305.97
4.3.110.0070.0235.82
4.3.100.0030.0305.87
4.3.90.0070.0235.86
4.3.80.0070.0375.83
4.3.70.0130.0175.90
4.3.60.0100.0205.92
4.3.50.0030.0275.84
4.3.40.0170.0305.82
4.3.30.0130.0204.60
4.3.20.0070.0234.67
4.3.10.0070.0274.55
4.3.00.0130.0276.96

preferences:
52.89 ms | 400 KiB | 5 Q