3v4l.org

run code in 300+ PHP versions simultaneously
<?php class NonFatalException extends Exception { } try { throw new NonFatalException("hello"); } catch(SomeException $e) { // some error handling } catch(NonFatalException $e) { echo "caught nonfatal"; rethrow $e; } catch (Exception $e) { echo "caught general"; }

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.230.0110.05312.39
5.4.220.0140.04512.39
5.4.210.0100.04312.39
5.4.200.0140.04912.39
5.4.190.0230.06712.39
5.4.180.0180.04312.39
5.4.170.0100.04912.40
5.4.160.0180.04512.39
5.4.150.0130.04112.38
5.4.140.0160.05212.08
5.4.130.0150.03912.06
5.4.120.0130.04112.02
5.4.110.0160.07312.02
5.4.100.0130.04312.02
5.4.90.0190.06512.02
5.4.80.0090.04412.02
5.4.70.0130.03912.02
5.4.60.0100.04212.02
5.4.50.0120.03812.02
5.4.40.0150.03812.01
5.4.30.0220.06012.00
5.4.20.0110.04212.00
5.4.10.0210.06212.00
5.4.00.0150.03811.49
5.3.280.0110.04512.71
5.3.270.0120.04412.72
5.3.260.0140.04112.72
5.3.250.0100.04612.72
5.3.240.0110.04312.72
5.3.230.0150.05412.71
5.3.220.0120.04212.68
5.3.210.0130.04812.68
5.3.200.0130.04112.68
5.3.190.0120.04612.67
5.3.180.0110.04312.67
5.3.170.0120.04312.67
5.3.160.0140.03812.67
5.3.150.0110.04312.67
5.3.140.0130.04512.66
5.3.130.0130.04512.65
5.3.120.0130.04312.66
5.3.110.0110.04512.66
5.3.100.0180.03812.12
5.3.90.0140.04112.09
5.3.80.0120.04512.09
5.3.70.0110.04612.09
5.3.60.0150.06112.07
5.3.50.0120.04912.02
5.3.40.0150.04212.01
5.3.30.0130.04211.98
5.3.20.0210.06711.76
5.3.10.0180.03911.72
5.3.00.0200.05111.71

preferences:
139.99 ms | 1394 KiB | 7 Q