3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pirate { private __construct() { } public static function construct() { $reflection = new ReflectionClass(__CLASS__); $reflection->newInstanceArgs([]); } } var_dump(Pirate::construct());

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.0060.04812.50
5.4.290.0070.05212.51
5.4.280.0070.04812.40
5.4.270.0020.04412.40
5.4.260.0070.03912.40
5.4.250.0090.03712.40
5.4.240.0050.03912.40
5.4.230.0100.03512.39
5.4.220.0060.04012.40
5.4.210.0130.04212.39
5.4.200.0080.04712.39
5.4.190.0070.04012.39
5.4.180.0050.03812.39
5.4.170.0110.03212.40
5.4.160.0070.03512.39
5.4.150.0080.04912.39
5.4.140.0060.03912.08
5.4.130.0060.03812.06
5.4.120.0070.03612.03
5.4.110.0050.03812.02
5.4.100.0050.03912.02
5.4.90.0040.04012.02
5.4.80.0030.03912.02
5.4.70.0070.03612.02
5.4.60.0080.03412.02
5.4.50.0070.03612.02
5.4.40.0060.03612.00
5.4.30.0100.04112.00
5.4.20.0090.05012.00
5.4.10.0040.05312.00
5.4.00.0100.05211.50
5.3.280.0050.05712.71
5.3.270.0110.05212.72
5.3.260.0070.05712.72
5.3.250.0070.05712.72
5.3.240.0120.05312.71
5.3.230.0080.05312.71
5.3.220.0150.04012.68
5.3.210.0090.03612.68
5.3.200.0060.03712.68
5.3.190.0060.04012.67
5.3.180.0090.03712.68
5.3.170.0070.03812.67
5.3.160.0090.03712.67
5.3.150.0090.03612.67
5.3.140.0090.04312.66
5.3.130.0110.05012.66
5.3.120.0080.05312.66
5.3.110.0130.05012.66
5.3.100.0100.05112.12
5.3.90.0090.05012.10
5.3.80.0140.04412.09
5.3.70.0100.05012.09
5.3.60.0110.04512.07
5.3.50.0080.04812.02
5.3.40.0080.05112.02
5.3.30.0080.05211.98
5.3.20.0070.05011.75
5.3.10.0100.05311.73
5.3.00.0090.04711.71

preferences:
141.28 ms | 1394 KiB | 7 Q