3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function __construct() { echo 'Hello from ctor', PHP_EOL; } public function test() {} public function delta() {} } var_dump(is_callable(['test', 'delta'])); var_dump(is_callable(['test', 'test'])); var_dump(is_callable(['test', '__construct'])) call_user_func(['test', '__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.390.0330.06319.25
5.4.380.0200.05318.76
5.4.370.0200.05018.61
5.4.360.0200.05018.79
5.4.350.0170.07718.70
5.4.340.0200.05318.77
5.4.320.0200.05718.83
5.4.310.0100.05718.79
5.4.300.0170.05318.60
5.4.290.0230.04718.59
5.4.280.0200.05018.47
5.4.270.0200.05018.75
5.4.260.0030.06718.58
5.4.250.0200.05318.70
5.4.240.0100.06318.72
5.4.230.0170.05018.77
5.4.220.0200.04718.46
5.4.210.0100.05718.52
5.4.200.0170.05016.59
5.4.190.0200.05018.59
5.4.180.0170.05318.61
5.4.170.0230.05018.61
5.4.160.0170.05318.82
5.4.150.0230.05718.73
5.4.140.0070.06316.29
5.4.130.0200.04316.26
5.4.120.0130.05316.31
5.4.110.0170.05716.17
5.4.100.0200.04716.46
5.4.90.0170.05016.31
5.4.80.0270.04016.43
5.4.70.0170.05016.14
5.4.60.0170.05016.23
5.4.50.0230.04316.25
5.4.40.0270.05016.23
5.4.30.0170.05016.25
5.4.20.0270.06016.39
5.4.10.0270.05716.25
5.4.00.0170.05715.63
5.3.290.0200.05314.79
5.3.280.0170.05014.65
5.3.270.0200.05014.66
5.3.260.0170.05314.72
5.3.250.0070.06014.64
5.3.240.0200.04714.59
5.3.230.0170.06014.62
5.3.220.0170.05014.79
5.3.210.0100.06014.67
5.3.200.0100.05714.79
5.3.190.0270.04314.62
5.3.180.0100.05714.70
5.3.170.0170.06714.62
5.3.160.0200.05714.73
5.3.150.0230.05314.79
5.3.140.0170.05014.58
5.3.130.0130.05714.73
5.3.120.0300.07014.53
5.3.110.0130.06014.60
5.3.100.0170.05314.09
5.3.90.0130.05314.23
5.3.80.0070.06014.07
5.3.70.0100.05714.09
5.3.60.0170.05714.21
5.3.50.0230.04713.93
5.3.40.0330.05714.17
5.3.30.0330.03713.97
5.3.20.0100.05713.80
5.3.10.0170.05013.79
5.3.00.0270.05013.86
5.2.170.0100.04711.17
5.2.160.0170.05011.25
5.2.150.0130.06011.17
5.2.140.0070.05311.18
5.2.130.0170.04011.20
5.2.120.0100.04311.14
5.2.110.0170.04011.30
5.2.100.0100.05011.16
5.2.90.0130.05011.32
5.2.80.0100.04711.13
5.2.70.0170.04011.20
5.2.60.0100.04711.16
5.2.50.0130.05011.04
5.2.40.0070.04311.04
5.2.30.0100.04711.04
5.2.20.0100.04710.99
5.2.10.0070.04710.97
5.2.00.0200.03710.76
5.1.60.0030.04310.11
5.1.50.0100.03710.02
5.1.40.0130.03310.02
5.1.30.0130.04010.41
5.1.20.0100.04010.45
5.1.10.0130.03710.26
5.1.00.0130.03310.07
5.0.50.0130.0278.63
5.0.40.0100.0378.52
5.0.30.0170.0508.26
5.0.20.0100.0278.22
5.0.10.0100.0378.22
5.0.00.0100.0408.20
4.4.90.0030.0276.28
4.4.80.0000.0306.28
4.4.70.0000.0306.28
4.4.60.0100.0306.28
4.4.50.0070.0206.28
4.4.40.0070.0376.28
4.4.30.0130.0236.28
4.4.20.0030.0276.28
4.4.10.0070.0236.28
4.4.00.0070.0406.28
4.3.110.0070.0206.28
4.3.100.0070.0206.28
4.3.90.0030.0236.28
4.3.80.0100.0306.28
4.3.70.0170.0176.28
4.3.60.0030.0236.28
4.3.50.0030.0236.28
4.3.40.0070.0336.28
4.3.30.0030.0276.28
4.3.20.0030.0236.28
4.3.10.0030.0336.28
4.3.00.0070.0237.60

preferences:
140.42 ms | 1394 KiB | 7 Q