3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static function getInstance() { return new __CLASS__(); } } class bar extends foo { public static function getInstance() { return parent::getInstance(); } } $obj = bar::getInstance(); var_dump($obj);

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.300.0100.08012.52
5.4.290.0050.05712.51
5.4.280.0060.05312.41
5.4.270.0070.05112.41
5.4.260.0100.05112.41
5.4.250.0090.05312.41
5.4.240.0070.05412.41
5.4.230.0060.05812.40
5.4.220.0090.05212.40
5.4.210.0090.05112.40
5.4.200.0240.09612.40
5.4.190.0130.03812.40
5.4.180.0120.04512.39
5.4.170.0110.03812.40
5.4.160.0090.03912.40
5.4.150.0100.03612.40
5.4.140.0110.04912.09
5.4.130.0080.04912.07
5.4.120.0080.04612.03
5.4.110.0080.04912.03
5.4.100.0090.04912.03
5.4.90.0040.05612.03
5.4.80.0050.05512.03
5.4.70.0070.05212.03
5.4.60.0090.04512.03
5.4.50.0100.04612.03
5.4.40.0120.04412.01
5.4.30.0040.04512.01
5.4.20.0070.04412.01
5.4.10.0130.04012.01
5.4.00.0110.04411.50
5.3.280.0110.04512.71
5.3.270.0120.04112.73
5.3.260.0110.04112.72
5.3.250.0130.04212.72
5.3.240.0090.04612.72
5.3.230.0060.04212.71
5.3.220.0100.04812.68
5.3.210.0130.04612.68
5.3.200.0100.04812.68
5.3.190.0090.05512.67
5.3.180.0070.05812.67
5.3.170.0120.04512.67
5.3.160.0070.04812.67
5.3.150.0060.05112.68
5.3.140.0070.03912.66
5.3.130.0050.04612.66
5.3.120.0100.05912.66
5.3.110.0040.04912.66
5.3.100.0080.04712.12
5.3.90.0110.05212.11
5.3.80.0070.06112.10
5.3.70.0330.13912.09
5.3.60.0140.05712.08
5.3.50.0110.04812.03
5.3.40.0170.06812.03
5.3.30.0070.05011.98
5.3.20.0120.03811.76
5.3.10.0050.05311.73
5.3.00.0100.06011.72

preferences:
136.51 ms | 1398 KiB | 7 Q