3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private function logError(): bool { debug_print_backtrace(); return true; } } $foo = new Foo(); \Closure::bind(function () use ($foo) { set_error_handler([$foo, 'logError']); }, null, Foo::class)(); // /set_error_handler([$foo, 'logError']);

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.00.0160.00720.00
8.4.150.0080.00516.77
8.4.140.0120.00917.64
8.4.130.0160.00517.61
8.4.120.0120.00820.90
8.4.110.0100.00918.88
8.4.100.0110.01017.85
8.4.90.0050.00522.61
8.4.80.0070.01318.82
8.4.70.0120.00717.84
8.4.60.0090.01119.09
8.4.50.0090.00718.97
8.4.40.0120.00917.74
8.4.30.0070.01223.87
8.4.20.0100.01019.31
8.4.10.0160.00319.73
8.3.280.0010.00014.05
8.3.270.0160.00516.54
8.3.260.0070.00716.63
8.3.250.0080.01217.06
8.3.240.0120.00616.81
8.3.230.0130.00616.61
8.3.220.0110.00718.91
8.3.210.0080.00216.80
8.3.200.0060.00316.73
8.3.190.0100.00816.98
8.3.180.0100.00918.81
8.3.170.0110.00717.16
8.3.160.0120.00618.62
8.3.150.0000.01817.31
8.3.140.0090.00018.54
8.3.130.0030.00516.79
8.3.120.0300.01316.43
8.3.110.0330.01016.42
8.3.100.0410.00616.54
8.3.90.0410.01216.50
8.3.80.0430.00716.25
8.3.70.0410.00616.71
8.3.60.0340.00716.18
8.3.50.0430.00316.46
8.3.40.0330.00717.58
8.3.30.0290.01317.36
8.3.20.0360.00917.26
8.3.10.0270.01017.45
8.3.00.0200.00717.51
8.2.290.0080.01118.98
8.2.280.0120.00720.03
8.2.270.0040.01418.34
8.2.260.0040.01517.38
8.2.250.0000.00816.62
8.2.240.0280.01216.54
8.2.230.0320.00816.26
8.2.220.0240.02016.22
8.2.210.0350.00616.14
8.2.200.0180.00616.47
8.2.190.0170.00316.62
8.2.180.0160.00316.38
8.2.170.0220.00017.60
8.2.160.0170.00317.63
8.2.150.0140.00617.52
8.2.140.0280.00817.24
8.2.130.0250.00417.39
8.2.120.0140.00717.33
8.2.110.0170.01717.29
8.2.100.0240.01617.47
8.2.90.0220.00717.55
8.2.80.0350.00917.45
8.2.70.0370.00317.25
8.2.60.0220.00417.27
8.2.50.0260.01417.48
8.2.40.0290.00617.34
8.2.30.0330.01117.13
8.2.20.0260.00617.64
8.2.10.0270.00917.47
8.2.00.0300.00917.40
8.1.330.0120.00718.34
8.1.320.0120.00716.20
8.1.310.0150.00016.65
8.1.300.0350.00916.01
8.1.290.0370.00315.87
8.1.280.0220.01615.68
8.1.270.0360.00017.03
8.1.260.0140.00617.26
8.1.250.0050.01517.26
8.1.240.0440.00017.19
8.1.230.0190.01516.99
8.1.220.0290.00817.25
8.1.210.0260.01117.30
8.1.200.0340.00716.95
8.1.190.0290.00617.09
8.1.180.0200.01417.24
8.1.170.0300.00717.20
8.1.160.0330.00416.98
8.1.150.0330.00017.05
8.1.140.0270.00716.82
8.1.130.0280.00616.96
8.1.120.0270.00617.05
8.1.110.0260.00617.42
8.1.100.0240.00716.98
8.1.90.0280.00317.23
8.1.80.0290.00617.07
8.1.70.0350.00717.21
8.1.60.0420.00717.16
8.1.50.0270.01417.35
8.1.40.0350.00417.01
8.1.30.0210.00417.27
8.1.20.0180.00317.30
8.1.10.0170.00417.16
8.1.00.0160.00417.15

preferences:
78.78 ms | 403 KiB | 5 Q