3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bar = 'baz'; function foo() { $foo = "bar"; global $$foo; var_dump($$foo); } 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.5.30.0120.00919.63
8.5.20.0120.00720.27
8.5.10.0100.00716.45
8.5.00.0100.01122.72
8.4.180.0170.00719.65
8.4.170.0140.00723.84
8.4.160.0110.01122.97
8.4.150.0090.00417.77
8.4.140.0340.00917.57
8.4.130.0340.00917.47
8.4.120.0350.01017.15
8.4.110.0410.00617.83
8.4.100.0390.00617.58
8.4.90.0400.00717.54
8.4.80.0350.01017.38
8.4.70.0370.00917.72
8.4.60.0420.00817.36
8.4.50.0400.00717.44
8.4.40.0380.00917.64
8.4.30.0370.01117.52
8.4.20.0380.00917.63
8.4.10.0450.00717.15
8.3.300.0100.01120.79
8.3.290.0100.00920.95
8.3.280.0110.00918.38
8.3.270.0390.00716.75
8.3.260.0390.01016.70
8.3.250.0330.01216.56
8.3.240.0300.01316.61
8.3.230.0380.00716.66
8.3.220.0300.01316.91
8.3.210.0360.00916.20
8.3.200.0340.01016.40
8.3.190.0350.00816.50
8.3.180.0390.00416.45
8.3.170.0390.00816.54
8.3.160.0390.00716.44
8.3.150.0350.01216.49
8.3.140.0420.00716.55
8.3.130.0340.00616.46
8.3.120.0340.00716.36
8.3.110.0350.00716.43
8.3.100.0340.01216.92
8.3.90.0430.00616.63
8.3.80.0370.00916.48
8.3.70.0400.00616.43
8.3.60.0360.00816.44
8.3.50.0360.01016.41
8.3.40.0320.01117.52
8.3.30.0260.01017.36
8.3.20.0280.01017.20
8.3.10.0290.00717.06
8.3.00.0210.00917.25
8.2.300.0100.01018.07
8.2.290.0330.00516.54
8.2.280.0300.00716.58
8.2.270.0300.00816.58
8.2.260.0340.00416.47
8.2.250.0280.01116.18
8.2.240.0310.00716.08
8.2.230.0300.01016.39
8.2.220.0340.00416.46
8.2.210.0330.00816.30
8.2.200.0290.00816.82
8.2.190.0300.00816.32
8.2.180.0260.01116.30
8.2.170.0330.01117.42
8.2.160.0310.00717.47
8.2.150.0300.01017.38
8.2.140.0340.01017.36
8.2.130.0310.00817.45
8.2.120.0350.00617.36
8.2.110.0340.00617.29
8.2.100.0310.00617.43
8.2.90.0290.00817.54
8.2.80.0290.01117.06
8.2.70.0310.00717.27
8.2.60.0330.00617.25
8.2.50.0270.01217.26
8.2.40.0300.00717.58
8.2.30.0290.01017.42
8.2.20.0320.01017.04
8.2.10.0300.00717.45
8.2.00.0330.01017.46
8.1.340.0120.00717.70

preferences:
34.14 ms | 403 KiB | 5 Q