3v4l.org

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

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.0030.05718.96
5.4.240.0170.04318.89
5.4.230.0130.04718.89
5.4.220.0100.06018.92
5.4.210.0070.06318.93
5.4.200.0100.07318.71
5.4.190.0070.05718.95
5.4.180.0030.06018.97
5.4.170.0100.05018.91
5.4.160.0130.04318.73
5.4.150.0070.05318.91
5.4.140.0000.05716.64
5.4.130.0030.05016.47
5.4.120.0070.06016.44
5.4.110.0170.04016.39
5.4.100.0070.05716.62
5.4.90.0030.05316.51
5.4.80.0100.05016.58
5.4.70.0170.04016.54
5.4.60.0070.04716.32
5.4.50.0130.05316.52
5.4.40.0070.06716.54
5.4.30.0100.05716.34
5.4.20.0030.07716.28
5.4.10.0170.04716.36
5.4.00.0070.05015.79
5.3.280.0100.04714.44
5.3.270.0070.05014.71
5.3.260.0130.07014.45
5.3.250.0100.07314.45
5.3.240.0030.06014.46
5.3.230.0030.05714.79
5.3.220.0100.06314.74
5.3.210.0230.04314.48
5.3.200.0230.05714.67
5.3.190.0100.05714.55
5.3.180.0030.05714.56
5.3.170.0070.05314.47
5.3.160.0030.05314.74
5.3.150.0030.06314.66
5.3.140.0200.05714.46
5.3.130.0100.06014.46
5.3.120.0070.07314.58
5.3.110.0100.05314.73
5.3.100.0130.07013.95
5.3.90.0070.05014.26
5.3.80.0100.06714.11
5.3.70.0000.05714.20
5.3.60.0100.04714.00
5.3.50.0070.05313.95
5.3.40.0000.05714.14
5.3.30.0100.04713.91
5.3.20.0070.07013.78
5.3.10.0100.05713.66
5.3.00.0070.07313.82

preferences:
145.93 ms | 1394 KiB | 7 Q