3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = [ 0 ]; foreach ($input as &$i) { $lastInput =& $i; } $lastInput = 5; echo $i;

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.5.30.0060.00318.96
8.5.20.0110.00819.38
8.5.10.0120.00716.55
8.5.00.0110.01019.93
8.4.180.0140.00719.48
8.4.170.0100.01123.97
8.4.160.0130.00922.82
8.4.150.0070.00516.83
8.4.140.0080.01217.67
8.4.130.0140.00917.41
8.4.120.0100.01020.60
8.4.110.0050.00322.70
8.4.100.0120.00618.45
8.4.90.0100.00718.50
8.4.80.0110.00817.79
8.4.70.0040.00417.54
8.4.60.0130.00718.76
8.4.50.0110.00917.67
8.4.40.0120.00617.59
8.4.30.0030.02218.73
8.4.20.0100.00323.92
8.4.10.0090.00019.42
8.3.300.0100.01119.03
8.3.290.0140.00620.66
8.3.280.0140.00618.36
8.3.270.0070.01616.60
8.3.260.0100.01016.60
8.3.250.0110.00618.85
8.3.240.0140.00716.37
8.3.230.0110.00816.29
8.3.220.0110.00617.32
8.3.210.0100.00616.64
8.3.200.0020.00716.57
8.3.190.0080.00719.02
8.3.180.0100.00916.79
8.3.170.0060.01316.30
8.3.160.0080.00016.49
8.3.150.0110.01117.32
8.3.140.0040.00416.75
8.3.130.0070.00418.44
8.3.120.0160.00019.02
8.3.110.0000.00818.30
8.3.100.0080.00824.06
8.3.90.0070.00726.77
8.3.80.0000.01116.50
8.3.70.0070.00716.58
8.3.60.0140.00418.43
8.3.50.0070.00719.73
8.3.40.0130.01318.71
8.3.30.0110.00718.71
8.3.20.0140.00024.18
8.3.10.0000.00824.66
8.3.00.0020.00526.16
8.2.300.0120.00920.36
8.2.290.0120.00620.26
8.2.280.0120.00518.49
8.2.270.0100.01016.38
8.2.260.0150.00318.98
8.2.250.0040.01118.22
8.2.240.0060.00316.93
8.2.230.0070.00420.94
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0090.00316.63
8.2.190.0120.00616.58
8.2.180.0090.00625.92
8.2.170.0030.01018.73
8.2.160.0120.00622.96
8.2.150.0070.01025.66
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0050.00319.36
8.2.110.0000.00922.11
8.2.100.0060.00320.50
8.1.340.0110.01017.57
8.1.330.0130.00621.87
8.1.320.0140.00516.28
8.1.310.0120.00618.71
8.1.300.0030.01618.34
8.1.290.0070.00430.84
8.1.280.0110.00725.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01120.38
8.1.230.0040.00718.46

preferences:
52.11 ms | 839 KiB | 5 Q