3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php define("t0",0); define("t1",1); $a=array(); for ($n=0;$n<100000;$n++){ $a[]=array(t0=>0,t1=>1); } foreach ($a as $a2){ $test=$a2[t0].$a2[t1]; }

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.4.390.0200.05718.84
5.4.380.0170.07718.83
5.4.370.0130.05018.72
5.4.360.0200.06718.59
5.4.350.0070.06318.46
5.4.340.0130.05318.53
5.4.320.0130.05718.76
5.4.310.0030.07018.78
5.4.300.0100.06018.76
5.4.290.0100.05718.50
5.4.280.0130.06718.72
5.4.270.0200.04718.80
5.4.260.0200.04318.77
5.4.250.0130.05718.78
5.4.240.0070.06018.78
5.4.230.0030.06718.51
5.4.220.0230.05018.55
5.4.210.0170.05018.52
5.4.200.0130.05316.66
5.4.190.0070.06318.88
5.4.180.0130.05718.48
5.4.170.0200.05318.73
5.4.160.0100.05718.77
5.4.150.0170.05318.56
5.4.140.0070.05716.33
5.4.130.0170.05016.28
5.4.120.0170.04716.26
5.4.110.0170.06316.32
5.4.100.0130.07016.32
5.4.90.0200.06316.22
5.4.80.0130.06716.30
5.4.70.0170.05016.14
5.4.60.0070.05716.27
5.4.50.0130.05316.14
5.4.40.0100.05316.26
5.4.30.0000.06316.16
5.4.20.0130.05016.39
5.4.10.0230.05716.21
5.4.00.0230.04015.70
5.3.290.0100.05714.56
5.3.280.0170.05014.55
5.3.270.0130.06014.54
5.3.260.0100.06314.71
5.3.250.0230.04314.59
5.3.240.0170.05014.71
5.3.230.0170.05714.51
5.3.220.0170.06314.56
5.3.210.0070.05714.48
5.3.200.0100.05014.46
5.3.190.0030.06014.60
5.3.180.0170.05014.55
5.3.170.0100.06014.65
5.3.160.0100.05714.62
5.3.150.0170.05014.61
5.3.140.0000.06314.53
5.3.130.0100.05714.64
5.3.120.0100.05314.44
5.3.110.0100.05314.58
5.3.100.0130.05713.95
5.3.90.0200.05714.02
5.3.80.0170.05013.98
5.3.70.0100.05314.00
5.3.60.0130.05014.10
5.3.50.0170.05013.93
5.3.40.0200.05013.86
5.3.30.0200.04313.82
5.3.20.0100.05013.68
5.3.10.0170.04313.64
5.3.00.0130.07013.59
5.2.170.0130.05711.18
5.2.160.0200.04711.11
5.2.150.0100.05311.09
5.2.140.0130.04011.27
5.2.130.0030.05311.14
5.2.120.0030.05711.08
5.2.110.0170.05011.11
5.2.100.0100.04011.25
5.2.90.0170.03311.03
5.2.80.0130.04011.15
5.2.70.0170.03711.13
5.2.60.0100.04011.18
5.2.50.0100.04010.98
5.2.40.0070.04010.94
5.2.30.0130.04011.13
5.2.20.0030.04310.87
5.2.10.0000.04710.97
5.2.00.0130.04010.69
5.1.60.0100.0379.96
5.1.50.0070.0379.95
5.1.40.0170.0279.95
5.1.30.0130.03710.36
5.1.20.0100.03710.50
5.1.10.0070.04010.16
5.1.00.0130.03710.11
5.0.50.0030.0338.58
5.0.40.0070.0278.52
5.0.30.0030.0478.34
5.0.20.0130.0238.21
5.0.10.0000.0338.29
5.0.00.0100.0508.28
4.4.90.0100.0275.86
4.4.80.0070.0275.91
4.4.70.0070.0205.91
4.4.60.0070.0205.92
4.4.50.0000.0275.86
4.4.40.0000.0405.82
4.4.30.0000.0305.94
4.4.20.0170.0235.96
4.4.10.0070.0276.01
4.4.00.0100.0335.91
4.3.110.0030.0275.80
4.3.100.0130.0135.82
4.3.90.0070.0205.80
4.3.80.0030.0375.78
4.3.70.0070.0175.89
4.3.60.0070.0205.91
4.3.50.0070.0235.82
4.3.40.0070.0335.84
4.3.30.0070.0204.57
4.3.20.0000.0234.53
4.3.10.0030.0234.52
4.3.00.0100.01714.46

preferences:
148.25 ms | 1394 KiB | 7 Q