3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; $array['a'] =& $array['b']; $array['b'] = 1; var_dump($array);

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.100.0000.00717.44
8.1.90.0040.00417.45
8.1.80.0030.00317.41
8.1.70.0000.00717.39
8.1.60.0040.00417.51
8.1.50.0000.00817.45
8.1.40.0040.00417.42
8.1.30.0060.00317.45
8.1.20.0040.00417.49
8.1.10.0000.00817.52
8.1.00.0080.00017.51
8.0.230.0040.00716.82
8.0.220.0070.00016.82
8.0.210.0040.00416.71
8.0.200.0000.00616.80
8.0.190.0000.00816.85
8.0.180.0030.00516.72
8.0.170.0040.00416.83
8.0.160.0030.00316.86
8.0.150.0000.00816.84
8.0.140.0040.00416.65
8.0.130.0000.00613.20
8.0.120.0000.00816.80
8.0.110.0040.00416.84
8.0.100.0030.00316.77
8.0.90.0050.00216.82
8.0.80.0110.00316.81
8.0.70.0080.00016.68
8.0.60.0070.00016.80
8.0.50.0000.00716.61
8.0.30.0080.01017.03
8.0.20.0090.01117.40
8.0.10.0000.00716.98
8.0.00.0030.01416.43
7.4.300.0000.00616.44
7.4.290.0070.00016.35
7.4.280.0040.00416.43
7.4.270.0030.00316.45
7.4.260.0050.00316.37
7.4.250.0030.00316.28
7.4.240.0000.00716.44
7.4.230.0030.00316.42
7.4.220.0050.01316.59
7.4.210.0080.00816.55
7.4.200.0030.00316.34
7.4.160.0070.00716.39
7.4.150.0120.00617.40
7.4.140.0090.00817.86
7.4.130.0060.01116.56
7.4.120.0080.00816.40
7.4.110.0100.00716.41
7.4.100.0100.00716.54
7.4.90.0030.01316.32
7.4.80.0120.00619.39
7.4.70.0070.01016.31
7.4.60.0120.00316.57
7.4.50.0060.00916.37
7.4.40.0140.00316.37
7.4.30.0110.00616.56
7.4.00.0000.01414.85
7.3.330.0000.00613.18
7.3.320.0030.00312.90
7.3.310.0030.00316.07
7.3.300.0030.00316.21
7.3.290.0050.00216.20
7.3.280.0100.00816.17
7.3.270.0160.00317.40
7.3.260.0100.00916.31
7.3.250.0120.00616.33
7.3.240.0070.01416.22
7.3.230.0120.00616.41
7.3.210.0090.01016.19
7.3.200.0090.01216.58
7.3.190.0130.00316.37
7.3.180.0110.00716.42
7.3.170.0120.00816.08
7.3.160.0060.01616.55
7.2.330.0140.00616.74
7.2.320.0230.00916.63
7.2.310.0030.01316.61
7.2.300.0120.01216.68
7.2.290.0060.01116.35
7.2.60.0040.01116.84
7.2.00.0000.01219.48
7.1.200.0130.00015.33
7.1.100.0030.01017.71
7.1.70.0000.00817.04
7.1.60.0100.00317.15
7.1.50.0030.00916.79
7.1.00.0100.07022.44
7.0.200.0300.00315.02
7.0.110.0300.05320.30
7.0.100.0300.06720.32
7.0.90.0330.05020.24
7.0.80.0370.04720.29
7.0.70.0400.04320.29
7.0.60.0230.06020.29
7.0.50.0300.05020.32
7.0.40.0430.04720.19
7.0.30.0230.06320.30
7.0.20.0300.05320.34
7.0.10.0230.06720.29
7.0.00.0300.05320.30
5.6.260.0130.05020.79
5.6.250.0100.06020.88
5.6.240.0100.05720.72
5.6.230.0000.06721.03
5.6.220.0130.05021.04
5.6.210.0070.05721.05
5.6.200.0200.04321.09
5.6.190.0130.05720.86
5.6.180.0230.06721.00
5.6.170.0030.06020.84
5.6.160.0070.05720.86
5.6.150.0030.06021.03
5.6.140.0130.05020.98
5.6.130.0200.04320.92
5.6.120.0200.04721.03
5.6.110.0130.05320.85
5.6.100.0030.06720.97
5.6.90.0170.05020.78
5.6.80.0070.05320.25
5.6.70.0030.05720.22
5.6.60.0200.04320.20
5.6.50.0100.05020.18
5.6.40.0030.06320.30
5.6.30.0130.05020.19
5.6.20.0030.06020.33
5.6.10.0130.06320.17
5.6.00.0070.05320.08

preferences:
12.03 ms | 406 KiB | 5 Q