3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar = ['a','b','c']; $arr =& $ar; // both are now references foreach ($arr as $dummy) { $arr []= 'foo'; } var_dump($arr);

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.130.0070.00020.25
8.1.120.0030.00517.50
8.1.110.0000.00817.33
8.1.100.0030.00517.34
8.1.90.0000.00717.50
8.1.80.0050.00517.45
8.1.70.0000.00817.46
8.1.60.0030.00617.31
8.1.50.0040.00417.45
8.1.40.0080.00017.44
8.1.30.0030.00617.50
8.1.20.0040.00417.50
8.1.10.0070.00317.44
8.1.00.0030.00517.39
8.0.260.0000.00718.47
8.0.250.0000.00716.96
8.0.240.0040.00417.01
8.0.230.0020.00516.85
8.0.220.0040.00416.75
8.0.210.0040.00416.84
8.0.200.0030.00616.98
8.0.190.0040.00416.96
8.0.180.0000.00716.95
8.0.170.0040.00416.91
8.0.160.0070.00016.92
8.0.150.0000.00816.83
8.0.140.0100.00016.77
8.0.130.0060.00013.34
8.0.120.0030.00516.71
8.0.110.0030.00516.87
8.0.100.0000.00716.68
8.0.90.0070.00016.82
8.0.80.0100.01016.94
8.0.70.0120.00916.89
8.0.60.0090.00616.79
8.0.50.0000.01616.81
8.0.30.0110.00916.91
8.0.20.0160.00516.98
8.0.10.0100.00717.04
8.0.00.0060.00916.94
7.4.330.0020.00215.55
7.4.320.0030.00316.61
7.4.300.0000.00616.42
7.4.290.0000.00716.45
7.4.280.0060.00316.52
7.4.270.0000.00716.59
7.4.260.0000.00816.41
7.4.250.0000.00716.54
7.4.240.0020.00516.48
7.4.230.0000.00816.62
7.4.220.0000.00716.57
7.4.210.0120.00316.50
7.4.200.0100.01016.45
7.4.190.0110.00316.72
7.4.180.0060.00916.68
7.4.160.0090.01016.55
7.4.150.0200.00316.54
7.4.140.0060.01516.36
7.4.130.0090.00616.49
7.4.120.0160.00016.48
7.4.110.0030.01216.41
7.4.100.0090.00916.46
7.4.90.0090.00616.48
7.4.80.0100.00316.28
7.4.70.0030.01416.46
7.4.60.0100.01016.41
7.4.50.0040.01516.41
7.4.40.0000.01416.48
7.4.30.0030.01016.41
7.4.20.0070.00716.55
7.4.10.0070.00716.56
7.4.00.0070.00716.54
7.3.330.0000.00816.38
7.3.320.0050.00313.06
7.3.310.0070.00016.36
7.3.300.0040.00416.25
7.3.290.0090.01216.24
7.3.280.0100.01016.24
7.3.270.0070.01116.37
7.3.260.0090.00616.20
7.3.250.0110.00316.26
7.3.240.0000.01416.27
7.3.230.0040.01116.29
7.3.220.0060.00616.18
7.3.210.0060.00616.19
7.3.200.0030.01016.25
7.3.190.0090.00416.23
7.3.180.0030.01016.16
7.3.170.0130.00016.24
7.3.160.0060.00716.22
7.3.150.0070.00716.28
7.3.140.0030.01016.20
7.3.130.0040.01216.14
7.3.120.0070.01016.20
7.3.110.0070.00716.16
7.3.100.0060.00716.14
7.3.90.0030.01016.53
7.3.80.0000.01316.33
7.3.70.0100.00316.32
7.3.60.0070.00716.38
7.3.50.0060.00616.28
7.3.40.0030.00916.36
7.3.30.0070.00716.42
7.3.20.0040.00916.38
7.3.10.0100.00316.29
7.3.00.0130.00016.35

preferences:
12.27 ms | 406 KiB | 5 Q