3v4l.org

run code in 300+ PHP versions simultaneously
<?php function &Test() { global $foo; return $foo; } $foo = 1; $test = &Test(); $test++; var_dump($foo);

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.4.120.0090.00724.10
8.4.110.0100.01122.33
8.4.100.0120.00820.65
8.4.90.0140.00618.75
8.4.80.0120.00919.30
8.4.70.0090.01217.92
8.4.60.0110.00818.82
8.4.50.0070.00318.73
8.4.40.0100.01018.96
8.4.30.0100.00020.45
8.4.20.0080.01018.81
8.4.10.0190.00619.35
8.3.250.0100.00918.93
8.3.240.0110.00816.68
8.3.230.0150.00416.23
8.3.220.0090.00919.11
8.3.210.0100.00418.43
8.3.200.0030.00616.53
8.3.190.0130.00519.05
8.3.180.0110.00516.46
8.3.170.0100.01017.23
8.3.160.0130.00716.53
8.3.150.0110.00717.22
8.3.140.0150.00316.60
8.3.130.0100.00716.61
8.3.120.0210.00516.49
8.3.110.0090.01016.57
8.3.100.0280.00516.52
8.3.90.0310.00216.23
8.3.80.0320.00316.56
8.3.70.0240.00916.24
8.3.60.0230.01016.39
8.3.50.0310.00216.48
8.3.40.0170.00817.27
8.3.30.0220.00517.25
8.3.20.0230.00417.13
8.3.10.0220.00217.38
8.3.00.0080.00517.41
8.2.290.0100.00820.46
8.2.280.0100.00918.41
8.2.270.0000.00817.13
8.2.260.0080.00416.83
8.2.250.0210.00316.39
8.2.240.0250.00216.61
8.2.230.0180.01016.40
8.2.220.0220.00616.37
8.2.210.0170.01016.37
8.2.200.0250.00416.52
8.2.190.0230.01016.41
8.2.180.0260.00216.48
8.2.170.0250.00817.69
8.2.160.0220.00617.40
8.2.150.0170.00717.37
8.2.140.0190.00717.18
8.2.130.0250.00517.38
8.2.120.0270.00317.36
8.2.110.0230.00517.41
8.2.100.0230.00517.39
8.2.90.0200.00817.66
8.2.80.0210.00717.32
8.2.70.0240.00317.28
8.2.60.0260.00217.13
8.2.50.0220.00617.29
8.2.40.0220.00617.28
8.2.30.0200.00617.40
8.2.20.0210.00317.29
8.2.10.0210.00517.43
8.2.00.0270.00217.07
8.1.330.0080.01021.95
8.1.320.0020.00716.10
8.1.310.0140.00315.96
8.1.300.0200.00916.00
8.1.290.0220.00416.23
8.1.280.0210.00716.00
8.1.270.0180.01117.13
8.1.260.0260.00017.38
8.1.250.0220.00816.97
8.1.240.0210.00417.13
8.1.230.0230.00417.06
8.1.220.0220.00717.12
8.1.210.0190.00617.03
8.1.200.0140.00917.09
8.1.190.0190.00417.04
8.1.180.0170.00617.04
8.1.170.0170.00616.95
8.1.160.0180.00717.06
8.1.150.0210.00517.17
8.1.140.0190.00616.90
8.1.130.0230.00317.07
8.1.120.0200.00517.27
8.1.110.0210.00417.14
8.1.100.0140.01217.20
8.1.90.0160.01017.19
8.1.80.0210.00916.90
8.1.70.0280.00517.06
8.1.60.0200.00717.42
8.1.50.0250.00317.18
8.1.40.0160.01217.29
8.1.30.0240.00417.54
8.1.20.0210.00517.46
8.1.10.0180.00717.21
8.1.00.0150.01317.04

preferences:
26.06 ms | 403 KiB | 5 Q