3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function t() { return function(){ var_dump($this); }; } } $a = new Test(); $f = $a->t(); $f();

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.20.0040.00417.68
8.1.10.0000.00917.47
8.1.00.0000.00917.42
8.0.140.0070.00016.90
8.0.130.0040.00416.88
8.0.120.0060.01216.75
8.0.110.0150.00416.93
8.0.100.0150.00416.70
8.0.90.0180.00016.81
8.0.80.0100.01016.71
8.0.70.0140.00516.80
8.0.60.0150.00716.76
8.0.50.0100.01016.82
8.0.30.0150.00516.93
8.0.20.0120.00816.92
8.0.10.0210.00316.91
8.0.00.0030.00616.91
7.4.270.0040.00416.41
7.4.260.0000.00716.63
7.4.250.0170.00616.54
7.4.240.0190.00616.34
7.4.230.0210.00416.40
7.4.220.0190.00216.47
7.4.210.0160.00816.45
7.4.200.0200.00616.57
7.4.190.0140.00716.54
7.4.180.0200.00616.29
7.4.160.0140.00816.48
7.4.150.0080.00816.55
7.4.140.0090.00916.20
7.4.130.0160.00216.18
7.4.120.0100.00616.13
7.4.110.0150.00816.40
7.4.100.0120.00816.46
7.4.90.0140.00516.25
7.4.80.0130.00516.40
7.4.70.0090.00916.46
7.4.60.0120.00616.31
7.4.50.0160.00315.99
7.4.40.0190.00015.96
7.4.30.0140.00416.12
7.4.20.0130.00316.36
7.4.10.0090.00916.36
7.4.00.0080.00816.40
7.3.330.0150.00415.86
7.3.320.0060.01315.75
7.3.310.0150.00016.19
7.3.300.0130.00616.32
7.3.290.0110.00716.02
7.3.280.0150.00416.04
7.3.270.0120.00615.73
7.3.260.0120.00816.41
7.3.250.0040.01216.16
7.3.240.0130.00716.10
7.3.230.0120.00616.05
7.3.220.0180.00316.01
7.3.210.0150.00416.11
7.3.200.0150.00416.18
7.3.190.0120.00616.15
7.3.180.0130.00716.15
7.3.170.0110.00415.67
7.3.160.0140.00415.68
7.3.150.0200.00316.21
7.3.140.0070.00816.24
7.3.130.0160.00616.05
7.3.120.0140.00316.21
7.3.110.0170.00315.94
7.3.100.0190.00015.90
7.3.90.0170.00016.16
7.3.80.0120.00616.11
7.3.70.0110.00916.32
7.3.60.0180.00016.23
7.3.50.0160.00316.32
7.3.40.0120.00316.29
7.3.30.0000.01516.31
7.3.20.0110.00718.14
7.3.10.0100.00317.92
7.3.00.0110.00718.07

preferences:
33.99 ms | 527 KiB | 12 Q