3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Answer { public function answer() { return 4; } public function the() { return answer(); } public function get() { return this->the(); } } // 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)
8.3.60.0170.00318.22
8.3.50.0100.00521.21
8.3.40.0150.00018.59
8.3.30.0050.01020.04
8.3.20.0070.00020.34
8.3.10.0080.00022.08
8.3.00.0150.00322.46
8.2.180.0130.00316.49
8.2.170.0100.00322.96
8.2.160.0100.00320.29
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00419.64
8.2.110.0090.00022.08
8.2.100.0000.01018.65
8.1.280.0030.01025.92
8.1.270.0110.00820.40
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0100.00018.33
8.1.230.0030.00618.36
5.4.250.0110.04912.39
5.4.240.0160.06512.39
5.4.230.0090.05212.38
5.4.220.0100.04612.38
5.4.210.0070.04112.38
5.4.200.0200.06012.38
5.4.190.0090.04212.38
5.4.180.0090.04212.38
5.4.170.0080.04312.38
5.4.160.0120.04512.38
5.4.150.0120.06012.37
5.4.140.0100.04812.06
5.4.130.0110.03812.05
5.4.120.0090.04112.01
5.4.110.0070.05112.01
5.4.100.0080.04512.01
5.4.90.0100.04312.00
5.4.80.0120.04612.00
5.4.70.0080.04712.00
5.4.60.0130.04812.00
5.4.50.0070.04912.00
5.4.40.0090.04911.99
5.4.30.0100.04511.98
5.4.20.0090.04311.98
5.4.10.0090.04611.99
5.4.00.0090.05211.48
5.3.280.0080.04512.71
5.3.270.0070.05112.73
5.3.260.0090.05412.72
5.3.250.0130.04512.72
5.3.240.0080.05512.72
5.3.230.0090.05212.71
5.3.220.0100.05112.68
5.3.210.0110.05312.68
5.3.200.0090.04512.68
5.3.190.0090.04512.68
5.3.180.0090.04412.67
5.3.170.0100.04312.67
5.3.160.0120.04212.67
5.3.150.0050.03912.67
5.3.140.0100.04112.66
5.3.130.0110.04512.66
5.3.120.0070.03912.66
5.3.110.0090.04212.66
5.3.100.0040.04112.12
5.3.90.0070.03912.09
5.3.80.0070.04012.08
5.3.70.0110.03412.08
5.3.60.0090.03512.06
5.3.50.0090.03612.01
5.3.40.0060.04112.01
5.3.30.0080.03511.97
5.3.20.0050.03811.75
5.3.10.0080.03711.71
5.3.00.0050.03911.70

preferences:
43.89 ms | 401 KiB | 5 Q