3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Thing { public static function testOne() { echo "one\n"; } public static function testTwo() { echo "two\n"; } public static function testThree() { echo "three\n"; } public static function testFour() { echo "four\n"; } } $class = new ReflectionClass('Thing'); $methods = $class->getMethods(); foreach ($methods as $method) { var_dump($method->getName()); $method->invoke(null); } ~

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.320.0230.04319.12
5.4.310.0230.04318.75
5.4.300.0170.03719.16
5.4.290.0170.03718.87
5.4.280.0130.05019.08
5.4.270.0030.04019.02
5.4.260.0230.03019.03
5.4.250.0130.04019.31
5.4.240.0170.03719.02
5.4.230.0170.04718.74
5.4.220.0330.03318.87
5.4.210.0130.04318.88
5.4.200.0200.03319.15
5.4.190.0130.04019.02
5.4.180.0130.03719.02
5.4.170.0170.04718.90
5.4.160.0130.04018.76
5.4.150.0100.04318.76
5.4.140.0170.04716.38
5.4.130.0170.04016.38
5.4.120.0200.03016.56
5.4.110.0300.03316.56
5.4.100.0200.03016.56
5.4.90.0100.04016.30
5.4.80.0130.03716.60
5.4.70.0100.04016.46
5.4.60.0170.03316.54
5.4.50.0200.02716.16
5.4.40.0170.03316.55
5.4.30.0100.04016.36
5.4.20.0200.03016.16
5.4.10.0130.03716.50
5.4.00.0130.03715.74
5.3.290.0100.04314.58
5.3.280.0200.03314.52
5.3.270.0100.04314.60
5.3.260.0130.04014.57
5.3.250.0200.03014.53
5.3.240.0130.03714.75
5.3.230.0070.03714.68
5.3.220.0170.03314.57
5.3.210.0100.04314.79
5.3.200.0130.03714.49
5.3.190.0170.03714.48
5.3.180.0130.03714.64
5.3.170.0200.03014.63
5.3.160.0130.03714.81
5.3.150.0130.04014.68
5.3.140.0430.03714.56
5.3.130.0170.03314.70
5.3.120.0170.03714.47
5.3.110.0100.04314.56
5.3.100.0100.04313.97
5.3.90.0130.03713.94
5.3.80.0130.03713.96
5.3.70.0230.03713.95
5.3.60.0130.04714.01
5.3.50.0200.03014.03
5.3.40.0330.04013.89
5.3.30.0130.03714.05
5.3.20.0230.04013.71
5.3.10.0130.04013.57
5.3.00.0230.02713.65
5.2.170.0130.03711.08
5.2.160.0300.03711.30
5.2.150.0270.02711.38
5.2.140.0200.06011.16
5.2.130.0230.05011.34
5.2.120.0200.05011.07
5.2.110.0100.03311.23
5.2.100.0270.05711.11
5.2.90.0100.03011.04
5.2.80.0200.04711.01
5.2.70.0100.04011.16
5.2.60.0170.06010.98
5.2.50.0130.04010.95
5.2.40.0130.04710.94
5.2.30.0130.06010.88
5.2.20.0130.05010.86
5.2.10.0170.05310.81
5.2.00.0200.03310.72
5.1.60.0070.0439.94
5.1.50.0070.0609.98
5.1.40.0100.0539.96
5.1.30.0130.04010.48
5.1.20.0170.02310.50
5.1.10.0130.05310.05
5.1.00.0130.04310.06
5.0.50.0070.0238.54
5.0.40.0130.0378.32
5.0.30.0070.0308.21
5.0.20.0100.0208.08
5.0.10.0070.0208.34
5.0.00.0070.0508.40
4.4.90.0070.0177.84
4.4.80.0030.0377.84
4.4.70.0070.0307.84
4.4.60.0130.0277.84
4.4.50.0100.0377.84
4.4.40.0030.0407.84
4.4.30.0030.0377.84
4.4.20.0070.0177.84
4.4.10.0000.0207.84
4.4.00.0030.0307.84
4.3.110.0000.0377.84
4.3.100.0030.0177.84
4.3.90.0000.0277.84
4.3.80.0000.0537.84
4.3.70.0100.0237.84
4.3.60.0070.0307.84
4.3.50.0000.0307.84
4.3.40.0000.0277.84
4.3.30.0030.0237.84
4.3.20.0000.0177.84
4.3.10.0030.0207.84
4.3.00.0000.0177.84

preferences:
141.52 ms | 1394 KiB | 7 Q