3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example { private function dummyErrorHandler() { return false; } public function resetErrors() { set_error_handler(array($this, 'dummyErrorHandler'), 0); @$undefinedVariable; restore_error_handler(); } $e = new Example; $e->resetErrors();

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)
5.4.240.0070.05018.91
5.4.230.0100.06018.76
5.4.220.0130.07318.80
5.4.210.0100.04718.65
5.4.200.0030.05318.94
5.4.190.0070.08318.99
5.4.180.0100.05018.83
5.4.170.0070.05718.96
5.4.160.0070.05318.93
5.4.150.0070.05019.08
5.4.140.0070.06316.39
5.4.130.0170.03716.38
5.4.120.0030.05316.38
5.4.110.0070.05316.62
5.4.100.0030.05016.41
5.4.90.0070.04716.51
5.4.80.0070.04716.46
5.4.70.0070.05016.64
5.4.60.0030.07316.47
5.4.50.0070.05016.36
5.4.40.0000.05316.68
5.4.30.0170.03716.53
5.4.20.0130.04016.35
5.4.10.0000.05716.30
5.4.00.0130.06015.80
5.3.280.0100.04714.59
5.3.270.0100.05014.68
5.3.260.0100.05014.70
5.3.250.0000.07014.59
5.3.240.0130.07014.69
5.3.230.0000.07714.70
5.3.220.0100.04714.66
5.3.210.0100.05014.66
5.3.200.0000.05714.66
5.3.190.0100.04714.63
5.3.180.0230.05714.55
5.3.170.0100.04714.55
5.3.160.0030.07014.79
5.3.150.0100.04714.57
5.3.140.0030.05014.59
5.3.130.0030.06314.63
5.3.120.0000.06014.64
5.3.110.0030.06014.45
5.3.100.0100.04714.05
5.3.90.0030.05713.93
5.3.80.0130.04014.11
5.3.70.0130.04314.20
5.3.60.0070.04713.83
5.3.50.0100.06014.04
5.3.40.0100.04314.02
5.3.30.0000.05313.99
5.3.20.0070.04713.77
5.3.10.0170.04013.63
5.3.00.0000.05313.63

preferences:
138.44 ms | 1394 KiB | 7 Q