3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Destructable { function __destruct() { echo "Goodbye!\n"; } } function throwaway($anything) { throw new Exception; ) $stored_exception = null; try { $raii = new Destructable; throwaway( $raii ); } catch ( Exception $e ) { echo "Caught!\n"; $stored_exception = $e; } echo "Unsetting...\n"; unset($caught_exception);

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.5.40.0330.05719.32
5.5.30.0300.05019.47
5.5.20.0200.04319.32
5.5.10.0130.04319.37
5.5.00.0270.04019.36
5.4.200.0270.05318.97
5.4.190.0230.05019.24
5.4.180.0200.03319.23
5.4.170.0270.03718.91
5.4.160.0200.03719.14
5.4.150.0200.03319.19
5.4.140.0130.03716.51
5.4.130.0030.04316.44
5.4.120.0170.03016.59
5.4.110.0100.03716.34
5.4.100.0170.03316.48
5.4.90.0130.03316.74
5.4.80.0230.02316.41
5.4.70.0130.03716.32
5.4.60.0100.03716.39
5.4.50.0070.04016.27
5.4.40.0200.03716.38
5.4.30.0170.03016.40
5.4.20.0100.04316.27
5.4.10.0100.03716.43
5.4.00.0130.03315.86
5.3.270.0130.04014.75
5.3.260.0070.04714.64
5.3.250.0100.04014.66
5.3.240.0130.03314.61
5.3.230.0070.04314.76
5.3.220.0200.03014.61
5.3.210.0170.03714.72
5.3.200.0100.04014.63
5.3.190.0170.03314.72
5.3.180.0270.03014.56
5.3.170.0130.03714.57
5.3.160.0130.04014.71
5.3.150.0130.04014.57
5.3.140.0170.03314.57
5.3.130.0170.03314.71
5.3.120.0170.03714.55
5.3.110.0130.03714.58
5.3.100.0230.02314.12
5.3.90.0130.04714.04
5.3.80.0230.03013.91
5.3.70.0100.03713.98
5.3.60.0170.03014.00
5.3.50.0100.04313.97
5.3.40.0200.03013.92
5.3.30.0070.04013.88
5.3.20.0200.03313.74
5.3.10.0130.04013.68
5.3.00.0200.03713.66

preferences:
146.6 ms | 1386 KiB | 7 Q