3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handleError( $errno, $errstr, $errfile, $errline ) { if ( E_RECOVERABLE_ERROR === $errno ) { echo $errstr; } } set_error_handler( 'handleError' ); try{ $g = new Generator; $g->whatami = "a highly dubious property"; } catch{ $e->getMessage(); } finally { echo "\nTidying up loose ends ... "; }

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.220.0370.06719.19
5.4.210.0470.05718.95
5.4.200.0270.06318.92
5.4.190.0230.04019.22
5.4.180.0300.06719.14
5.4.170.0200.05319.13
5.4.160.0270.07319.11
5.4.150.0330.03319.13
5.4.140.0270.03316.51
5.4.130.0270.03316.50
5.4.120.0200.04016.39
5.4.110.0270.05016.47
5.4.100.0330.03016.37
5.4.90.0300.03016.48
5.4.80.0330.05716.20
5.4.70.0300.04316.46
5.4.60.0300.05716.43
5.4.50.0170.05716.48
5.4.40.0270.07316.52
5.4.30.0400.05716.52
5.4.20.0330.06316.22
5.4.10.0300.05716.29
5.4.00.0270.06315.84
5.3.270.0330.03714.66
5.3.260.0230.04014.66
5.3.250.0200.05014.76
5.3.240.0300.04714.75
5.3.230.0200.04314.67
5.3.220.0170.04714.56
5.3.210.0330.06314.46
5.3.200.0300.07014.63
5.3.190.0370.04314.48
5.3.180.0370.05014.45
5.3.170.0370.04314.57
5.3.160.0370.04314.56
5.3.150.0230.04014.59
5.3.140.0270.06014.58
5.3.130.0330.06714.56
5.3.120.0230.04014.70
5.3.110.0270.07314.54
5.3.100.0370.05014.05
5.3.90.0270.07314.02
5.3.80.0400.04313.96
5.3.70.0230.07714.07
5.3.60.0170.04714.04
5.3.50.0230.04713.89
5.3.40.0230.07313.83
5.3.30.0270.05013.94
5.3.20.0270.03313.83
5.3.10.0270.06713.82
5.3.00.0330.03313.69

preferences:
138.9 ms | 1386 KiB | 7 Q