3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Answer { public static function get() { return new self(); } public function the() { return new -self(); } public function answer() { return 4; } } // end editing here $answer = new Answer; var_dump($answer->get());

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.250.0270.07018.97
5.4.240.0330.03718.80
5.4.230.0170.04719.21
5.4.220.0130.05319.13
5.4.210.0430.05719.08
5.4.200.0230.03018.94
5.4.190.0170.04718.97
5.4.180.0270.03719.23
5.4.170.0200.04719.07
5.4.160.0130.05019.11
5.4.150.0230.07318.85
5.4.140.0170.04016.50
5.4.130.0170.07016.48
5.4.120.0230.04016.38
5.4.110.0270.04716.59
5.4.100.0230.04316.58
5.4.90.0200.03316.27
5.4.80.0170.03716.26
5.4.70.0270.02716.39
5.4.60.0230.03716.52
5.4.50.0230.04716.30
5.4.40.0270.03016.49
5.4.30.0200.04316.16
5.4.20.0200.03316.25
5.4.10.0230.03716.48
5.4.00.0200.03715.83
5.3.280.0200.04314.63
5.3.270.0130.04314.63
5.3.260.0270.03014.61
5.3.250.0200.03714.58
5.3.240.0200.03714.61
5.3.230.0300.03714.65
5.3.220.0230.07014.56
5.3.210.0330.03714.48
5.3.200.0270.05314.71
5.3.190.0270.04014.66
5.3.180.0330.06714.68
5.3.170.0330.03314.60
5.3.160.0130.04314.48
5.3.150.0200.03714.68
5.3.140.0170.03714.80
5.3.130.0130.03314.63
5.3.120.0130.03714.56
5.3.110.0270.02714.45
5.3.100.0170.03714.12
5.3.90.0170.03713.95
5.3.80.0070.04714.02
5.3.70.0170.03313.99
5.3.60.0100.04313.93
5.3.50.0230.05713.86
5.3.40.0170.04013.86
5.3.30.0130.04313.93
5.3.20.0170.04313.70
5.3.10.0130.03713.80
5.3.00.0230.04013.65

preferences:
146.04 ms | 1394 KiB | 7 Q