3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a['lol'] = 'fuu' or die; print_r($a); $a = array('lol' => 'fuu' or die); print_r($a); <?php $a = array(); $a['lol'] = ('fuu' or die); print_r($a); $a = array('lol' => 'fuu' or die); print_r($a);

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.280.0120.04912.38
5.4.270.0110.04312.37
5.4.260.0120.04812.38
5.4.250.0140.07312.38
5.4.240.0100.05612.38
5.4.230.0070.05712.37
5.4.220.0150.07612.37
5.4.210.0100.05212.37
5.4.200.0090.04812.37
5.4.190.0090.04612.36
5.4.180.0100.04512.36
5.4.170.0070.04612.37
5.4.160.0100.04612.37
5.4.150.0090.04812.36
5.4.140.0090.04712.05
5.4.130.0070.04512.03
5.4.120.0070.04612.00
5.4.110.0070.04712.00
5.4.100.0070.04412.00
5.4.90.0070.04512.00
5.4.80.0080.04911.99
5.4.70.0110.04312.00
5.4.60.0100.05211.99
5.4.50.0100.05411.99
5.4.40.0090.04111.98
5.4.30.0070.04511.98
5.4.20.0090.04511.97
5.4.10.0100.04311.98
5.4.00.0190.07011.47
5.3.280.0130.05612.71
5.3.270.0090.05212.72
5.3.260.0090.04712.72
5.3.250.0080.05712.72
5.3.240.0120.05712.72
5.3.230.0090.05212.71
5.3.220.0120.06412.68
5.3.210.0090.05512.68
5.3.200.0080.05512.68
5.3.190.0120.04912.68
5.3.180.0090.05712.67
5.3.170.0110.08112.67
5.3.160.0100.06512.67
5.3.150.0090.05612.67
5.3.140.0120.05012.66
5.3.130.0070.06312.66
5.3.120.0100.06512.66
5.3.110.0100.05712.66
5.3.100.0060.05412.12
5.3.90.0100.06412.09
5.3.80.0120.05412.07
5.3.70.0090.04712.07
5.3.60.0090.04812.06
5.3.50.0050.04212.00
5.3.40.0060.04212.00
5.3.30.0070.03711.95
5.3.20.0060.04011.72
5.3.10.0070.04111.69
5.3.00.0130.06011.67
5.2.170.0070.0429.17
5.2.160.0100.0389.17
5.2.150.0070.0419.17
5.2.140.0040.0439.16
5.2.130.0050.0329.13
5.2.120.0040.0329.13
5.2.110.0070.0349.13
5.2.100.0110.0469.13
5.2.90.0050.0329.13
5.2.80.0030.0349.13
5.2.70.0050.0369.12
5.2.60.0090.0499.07
5.2.50.0120.0479.05
5.2.40.0120.0419.02
5.2.30.0050.0389.00
5.2.20.0060.0388.99
5.2.10.0080.0398.92
5.2.00.0070.0408.77
5.1.60.0060.0318.06
5.1.50.0080.0538.05
5.1.40.0050.0328.04
5.1.30.0080.0328.39
5.1.20.0040.0368.41
5.1.10.0070.0348.13
5.1.00.0070.0338.14
5.0.50.0050.0296.61
5.0.40.0070.0236.47
5.0.30.0130.0576.28
5.0.20.0040.0306.25
5.0.10.0080.0256.23
5.0.00.0070.0366.22
4.4.90.0040.0194.78
4.4.80.0030.0214.76
4.4.70.0050.0184.75
4.4.60.0070.0154.75
4.4.50.0050.0184.77
4.4.40.0070.0304.71
4.4.30.0060.0234.76
4.4.20.0060.0214.84
4.4.10.0040.0294.85
4.4.00.0050.0294.76
4.3.110.0040.0204.67
4.3.100.0050.0194.67
4.3.90.0030.0214.63
4.3.80.0050.0304.58
4.3.70.0050.0204.63
4.3.60.0040.0204.63
4.3.50.0070.0184.63
4.3.40.0040.0324.54
4.3.30.0030.0213.28
4.3.20.0030.0213.26
4.3.10.0030.0223.22
4.3.00.0030.0206.96

preferences:
139.32 ms | 1394 KiB | 7 Q