3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cars = array( array( "car" => "Ferrari", "model" => "Testarossa", "gearbox" => "Manual 5 Shift", "designer" => "Battista Pininfarina", "engine" => array( "HP" => 390, "Cylinders" => 12 ) ) ); foreach($cars as $details){ echo "<ul style=\"margin-bottom:10px;\">\n"; foreach($details as $key=>$item){ echo "\t<li><b>",ucfirst($key),":</b>"; if(!is_array($item)){ echo " $item</li>\n"; }else{ echo "\n\t\t<ul>\n"; foreach($item as $subkey=>$subval){ echo "\t\t\t<li><b>$subkey:</b> $subval</li>\n"; } echo "\t\t</ul>\n"; echo "\t</li>\n"; } } echo "</ul>\n"; }

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.5.10.0120.00916.64
8.5.00.0130.00819.95
8.4.150.0020.00014.05
8.4.140.0110.01117.45
8.4.130.0120.00817.69
8.4.120.0060.00422.25
8.4.110.0040.00418.74
8.4.100.0130.00817.90
8.4.90.0120.00917.60
8.4.80.0020.00617.66
8.4.70.0070.00217.79
8.4.60.0140.00618.82
8.4.50.0070.00922.27
8.4.40.0090.01217.61
8.4.30.0130.00717.55
8.4.20.0060.00617.32
8.4.10.0070.01317.68
8.3.280.0100.01418.52
8.3.270.0130.00716.79
8.3.260.0140.00616.80
8.3.250.0140.00418.84
8.3.240.0110.00616.51
8.3.230.0100.00816.50
8.3.220.0120.00716.69
8.3.210.0130.00516.55
8.3.200.0060.00316.50
8.3.190.0110.00816.59
8.3.180.0050.00516.53
8.3.170.0090.01016.32
8.3.160.0070.01120.73
8.3.150.0090.00919.14
8.3.140.0120.00316.58
8.3.130.0000.00816.54
8.3.120.0000.01319.01
8.3.110.0120.00616.39
8.3.100.0090.00016.71
8.3.90.0110.00726.77
8.3.80.0100.00018.14
8.3.70.0060.01618.43
8.3.60.0110.00718.18
8.3.50.0070.00616.55
8.3.40.0100.00718.67
8.3.30.0040.01118.67
8.3.20.0060.00320.16
8.3.10.0040.00423.56
8.3.00.0030.00619.56
8.2.290.0050.00518.82
8.2.280.0120.00620.24
8.2.270.0040.01122.09
8.2.260.0080.00020.50
8.2.250.0130.00618.37
8.2.240.0080.00017.08
8.2.230.0100.01020.94
8.2.220.0000.01124.06
8.2.210.0030.00726.77
8.2.200.0000.00918.16
8.2.190.0060.00916.58
8.2.180.0110.01118.12
8.2.170.0100.01022.96
8.2.160.0000.01320.52
8.2.150.0040.00424.18
8.2.140.0110.00424.66
8.2.130.0040.00420.35
8.2.120.0000.00726.35
8.2.110.0050.00519.38
8.2.100.0090.00517.71
8.2.90.0060.00319.28
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0000.00918.05
8.2.50.0040.00417.55
8.2.40.0000.00817.62
8.2.30.0040.00419.15
8.2.20.0040.00417.95
8.2.10.0040.00418.04
8.2.00.0040.00418.17
8.1.330.0100.01016.38
8.1.320.0120.00616.09
8.1.310.0140.00018.33
8.1.300.0090.00615.99
8.1.290.0000.00830.84
8.1.280.0070.00725.92
8.1.270.0060.00320.23
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0040.00422.69
8.1.230.0070.00417.77
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0060.00317.13
8.1.190.0050.00317.35
8.1.180.0000.00718.10
8.1.170.0040.00417.62
8.1.160.0080.00018.90
8.1.150.0040.00420.34
8.1.140.0080.00017.65
8.1.130.0000.00819.22
8.1.120.0000.00717.37
8.1.110.0060.00317.46
8.1.100.0050.00317.46
8.1.90.0040.00417.33
8.1.80.0040.00417.36
8.1.70.0030.00317.38
8.1.60.0000.00917.58
8.1.50.0000.00917.60
8.1.40.0040.00417.56
8.1.30.0060.00317.68
8.1.20.0000.00917.56
8.1.10.0000.00717.49
8.1.00.0030.00617.46
8.0.300.0000.00718.77
8.0.290.0080.00616.58
8.0.280.0030.00318.33
8.0.270.0030.00316.90
8.0.260.0060.00016.81
8.0.250.0070.00016.94
8.0.240.0000.00717.04
8.0.230.0000.00816.86
8.0.220.0000.00716.82
8.0.210.0080.00016.88
8.0.200.0000.00716.98
8.0.190.0050.00316.96
8.0.180.0000.00816.86
8.0.170.0060.00316.84
8.0.160.0030.00316.87
8.0.150.0040.00416.93
8.0.140.0040.00416.88
8.0.130.0050.00013.35
8.0.120.0000.00816.90
8.0.110.0040.00416.84
8.0.100.0040.00416.86
8.0.90.0000.00716.78
8.0.80.0060.01216.92
8.0.70.0040.00416.74
8.0.60.0050.00316.95
8.0.50.0040.00416.86
8.0.30.0080.00817.03
8.0.20.0080.01317.40
8.0.10.0000.00717.04
8.0.00.0090.00916.88
7.4.330.0030.00315.55
7.4.320.0040.00416.43
7.4.300.0000.00616.62
7.4.290.0030.00316.48
7.4.280.0050.00316.60
7.4.270.0030.00316.57
7.4.260.0030.00516.58
7.4.250.0030.00516.48
7.4.240.0040.00416.52
7.4.230.0000.00716.68
7.4.220.0080.00016.48
7.4.210.0090.00616.64
7.4.200.0030.00316.38
7.4.160.0050.01216.43
7.4.150.0130.00317.40
7.4.140.0110.00917.86
7.4.130.0090.00916.35
7.4.120.0090.01016.54
7.4.110.0070.01016.63
7.4.100.0140.00616.47
7.4.90.0160.00416.32
7.4.80.0100.01619.39
7.4.70.0120.00916.53
7.4.60.0060.00916.60
7.4.50.0000.01316.67
7.4.40.0090.01216.41
7.4.00.0030.01415.01
7.3.330.0020.00213.18
7.3.320.0060.00013.04
7.3.310.0000.00716.43
7.3.300.0000.00616.44
7.3.290.0070.01016.33
7.3.280.0120.00616.34
7.3.270.0110.00917.40
7.3.260.0170.00416.47
7.3.240.0090.01016.48
7.3.230.0080.00816.68
7.3.210.0100.00816.21
7.3.200.0030.01316.59
7.3.190.0120.00916.38
7.3.180.0060.00916.38
7.3.170.0060.01016.27
7.3.160.0100.00716.29
7.2.330.0100.00716.86
7.2.320.0190.00016.80
7.2.310.0070.01716.71
7.2.300.0100.00616.68
7.2.290.0080.01716.45
7.2.60.0000.01316.80
7.2.20.0190.01217.78
7.2.10.0140.01417.93
7.2.00.0320.00618.14
7.1.200.0100.00315.66
7.1.140.0070.01617.03
7.1.130.0150.01017.06
7.1.120.0110.01616.83
7.1.110.0130.00616.14
7.1.100.0140.00916.39
7.1.90.0100.01016.41
7.1.80.0140.00916.28
7.1.70.0120.00915.54
7.1.60.0330.02033.07
7.1.50.0420.01233.08
7.1.40.1110.01632.39
7.1.30.0330.01432.75
7.1.20.0300.02232.89
7.1.10.0120.01114.96
7.1.00.0100.01215.13

preferences:
16.67 ms | 403 KiB | 5 Q