3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; class Bar { public function Bar() { echo '3'; // treated as constructor in PHP 5.3.0-5.3.2 // treated as regular method as of PHP 5.3.3 } } new (Bar())->Bar(); ?>

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.0120.03912.39
5.4.210.0120.04212.39
5.4.200.0180.05212.39
5.4.190.0150.03612.39
5.4.180.0150.05412.39
5.4.170.0120.04012.39
5.4.160.0170.05012.39
5.4.150.0130.03812.38
5.4.140.0090.04312.08
5.4.130.0090.04312.06
5.4.120.0070.04312.03
5.4.110.0090.04312.02
5.4.100.0140.04312.02
5.4.90.0120.04412.02
5.4.80.0130.05312.02
5.4.70.0130.04012.02
5.4.60.0110.04012.02
5.4.50.0130.03912.02
5.4.40.0130.03612.01
5.4.30.0090.04012.00
5.4.20.0110.04412.00
5.4.10.0100.04012.00
5.4.00.0080.04211.50
5.3.270.0130.04512.72
5.3.260.0240.06112.72
5.3.250.0100.04512.72
5.3.240.0120.04312.72
5.3.230.0130.04312.71
5.3.220.0240.06212.68
5.3.210.0160.04212.68
5.3.200.0110.04312.68
5.3.190.0210.06612.68
5.3.180.0120.04112.67
5.3.170.0180.06612.67
5.3.160.0180.03612.68
5.3.150.0110.04312.67
5.3.140.0130.03812.66
5.3.130.0140.04112.66
5.3.120.0220.06412.66
5.3.110.0100.04612.66
5.3.100.0120.04712.12
5.3.90.0130.05412.09
5.3.80.0130.04212.08
5.3.70.0140.04012.08
5.3.60.0070.04312.07
5.3.50.0190.04912.01
5.3.40.0130.03812.01
5.3.30.0080.04311.98
5.3.20.0190.04911.75
5.3.10.0110.04111.72
5.3.00.0120.04011.71

preferences:
144.79 ms | 1394 KiB | 7 Q