3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errno, $errstr, $errfile, $errline) { echo "caught"; return true; }); class A { public function __destruct() { echo "in destructor"; } } function foo(object $o) { trigger_error('foo', E_USER_ERROR); echo "In function\n"; } $o = new A; foo($o); echo "after";

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.140.0140.00917.88
8.4.130.0050.00419.57
8.4.120.0080.00722.50
8.4.110.0120.00922.19
8.4.100.0110.01017.64
8.4.90.0080.00218.63
8.4.80.0060.00422.43
8.4.70.0100.01017.94
8.4.60.0100.01019.00
8.4.50.0130.00720.50
8.4.40.0070.00317.80
8.4.30.0110.00018.82
8.4.20.0100.01019.76
8.4.10.0000.00819.51
8.3.270.0150.00516.64
8.3.260.0140.00616.55
8.3.250.0130.00316.92
8.3.240.0100.00816.57
8.3.230.0140.00616.72
8.3.220.0120.00618.93
8.3.210.0110.00716.79
8.3.200.0040.00416.50
8.3.190.0100.01017.00
8.3.180.0150.00418.69
8.3.170.0150.00818.90
8.3.160.0110.00718.59
8.3.150.0120.00317.22
8.3.140.0140.00416.69
8.3.130.0040.00416.46
8.3.120.0080.00018.86
8.3.110.0120.00620.94
8.3.100.0070.00424.06
8.3.90.0050.00326.77
8.3.80.0410.00730.84
8.3.70.0450.00330.84
8.3.60.0460.01130.84
8.3.50.0230.00330.84
8.3.40.0350.00630.84
8.3.30.0210.01430.84
8.3.20.0280.01230.84
8.3.10.0160.01630.84
8.3.00.0260.00830.84
8.2.290.0060.00122.38
8.2.280.0110.00824.24
8.2.270.0090.00917.18
8.2.260.0110.00718.35
8.2.250.0060.00316.60
8.2.240.0040.00417.20
8.2.230.0030.01322.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0290.00330.84
8.2.190.0260.01330.84
8.2.180.0260.01330.84
8.2.170.0290.01130.84
8.2.160.0210.00730.84
8.2.150.0220.00030.84
8.2.140.0190.00830.84
8.2.130.0240.00630.84
8.2.120.0250.00430.84
8.2.110.0160.00430.84
8.2.100.0140.00530.84
8.2.90.0270.00030.84
8.2.80.0190.00030.84
8.2.70.0160.00330.84
8.2.60.0250.00330.84
8.2.50.0260.00830.84
8.2.40.0280.00730.84
8.2.30.0280.00630.84
8.2.20.0320.00330.84
8.2.10.0220.00930.84
8.2.00.0260.00730.84
8.1.330.0120.00621.86
8.1.320.0100.01018.06
8.1.310.0080.00016.55
8.1.300.0070.01118.32
8.1.290.0390.00330.84
8.1.280.0280.00930.84
8.1.270.0430.00430.84
8.1.260.0280.00630.84
8.1.250.0410.00330.84
8.1.240.0290.00830.84
8.1.230.0300.00830.84
8.1.220.0250.01230.84
8.1.210.0260.01030.84
8.1.200.0210.01730.84
8.1.190.0310.00630.84
8.1.180.0250.01230.84
8.1.170.0340.00430.84
8.1.160.0500.00430.84
8.1.150.0320.01130.84
8.1.140.0350.00330.84
8.1.130.0270.01030.84
8.1.120.0280.00730.84
8.1.110.0260.01030.84
8.1.100.0260.00830.84
8.1.90.0300.00330.84
8.1.80.0320.00530.84
8.1.70.0270.01030.84
8.1.60.0350.00630.84
8.1.50.0290.00630.84
8.1.40.0320.00330.84
8.1.30.0330.01230.84
8.1.20.0250.00030.84
8.1.10.0170.00330.84
8.1.00.0390.00330.84

preferences:
63.23 ms | 403 KiB | 5 Q