3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=(object) array('20'=>'abc'); echo $x->{20}; echo "\n"; $GLOBALS[20] = 'bbq'; echo ${20};

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.1.70.0000.00917.43
8.1.60.0030.00517.59
8.1.50.0040.00417.41
8.1.40.0000.00817.53
8.1.30.0000.00917.70
8.1.20.0030.00517.55
8.1.10.0050.00317.49
8.1.00.0030.00617.50
8.0.200.0080.00016.94
8.0.190.0040.00416.99
8.0.180.0050.00216.97
8.0.170.0090.00016.86
8.0.160.0030.00516.91
8.0.150.0000.00716.92
8.0.140.0000.00716.92
8.0.130.0000.00613.46
8.0.120.0050.00316.90
8.0.110.0040.00416.83
8.0.100.0000.00716.74
8.0.90.0070.00016.77
8.0.80.0070.00016.96
8.0.70.0030.00316.88
8.0.60.0000.00716.85
8.0.50.0040.00216.75
8.0.30.0040.00416.83
8.0.20.0050.00216.79
8.0.10.0000.00817.00
8.0.00.0000.00817.07
7.4.300.0030.00316.60
7.4.290.0030.00316.47
7.4.280.0040.00416.59
7.4.270.0030.00516.58
7.4.260.0000.00613.34
7.4.250.0070.00016.51
7.4.240.0030.00316.48
7.4.230.0040.00416.36
7.4.220.0000.00716.32
7.4.210.0000.00916.46
7.4.200.0000.00716.31
7.4.190.0040.00416.73
7.4.180.0000.00716.58
7.4.160.0040.00416.36
7.4.150.0000.00716.60
7.4.140.0030.00316.15
7.4.130.0030.00316.24
7.4.120.0070.00016.56
7.4.110.0000.00716.42
7.4.100.0000.00716.62
7.4.90.0080.00016.28
7.4.80.0000.00716.34
7.4.70.0030.00316.48
7.4.60.0070.00016.45
7.4.50.0060.00016.13
7.4.40.0080.00016.27
7.4.30.0040.00416.18
7.4.20.0000.00816.27
7.4.10.0040.00416.59
7.4.00.0050.00516.52
7.3.330.0040.00416.33
7.3.320.0020.00213.16
7.3.310.0040.00416.21
7.3.300.0070.00016.21
7.3.290.0000.00616.29
7.3.280.0030.00316.34
7.3.270.0000.00716.34
7.3.260.0060.00016.10
7.3.250.0060.00016.34
7.3.240.0040.00416.18
7.3.230.0060.00016.33
7.3.220.0000.00616.29
7.3.210.0040.00416.21
7.3.200.0030.00316.30
7.3.190.0030.00316.33
7.3.180.0000.00716.32
7.3.170.0060.00016.34
7.3.160.0000.00616.21
7.3.150.0000.00616.30
7.3.140.0000.00616.23
7.3.130.0000.00616.21
7.3.120.0030.00516.34
7.3.110.0000.00716.15
7.3.100.0040.00416.21
7.3.90.0000.00716.41
7.3.80.0060.00016.16
7.3.70.0000.00716.30
7.3.60.0070.00016.43
7.3.50.0040.00416.42
7.3.40.0000.00616.45
7.3.30.0060.00016.42
7.3.20.0070.00018.19
7.3.10.0030.00318.24
7.3.00.0040.00418.16

preferences:
42.78 ms | 406 KiB | 5 Q