3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function method() { } } $obj = new Test; $ref = new ReflectionMethod($obj, 'method'); echo "Starting loop..."; $start = microtime(true); for ($i=0; $i<1e6; $i++) { $ref->invoke($obj, array()); } echo "Took ", number_format((microtime(true)-$start)*1e3, 3), " ms";

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)
7.3.10.0030.12816.49
7.3.00.0070.12816.55
7.2.130.0070.16017.04
7.2.120.0070.13816.91
7.2.110.0100.14516.64
7.2.100.0070.14916.80
7.2.90.0030.14716.89
7.2.80.0000.15316.86
7.2.70.0070.15016.86
7.2.60.0070.14616.98
7.2.50.0070.13616.79
7.2.40.0070.14017.03
7.2.30.0070.14617.00
7.2.20.0030.14616.93
7.2.10.0070.14616.92
7.2.00.0070.12418.11
7.1.250.0070.21215.81
7.1.70.0100.10117.29
7.1.60.0070.15219.21
7.1.50.0070.17416.64
7.1.00.0030.12322.48
7.0.200.0280.12714.82
7.0.140.0170.20722.12
7.0.70.0070.16719.92
7.0.60.0130.21719.97
7.0.50.0130.21020.29
7.0.40.0100.20020.12
7.0.30.0070.22720.05
7.0.20.0070.16020.08
7.0.10.0070.19020.12
7.0.00.0100.21020.16
5.6.280.0100.35320.90
5.6.220.0130.43320.62
5.6.210.0170.41020.75
5.6.200.0100.44321.12
5.6.190.0070.42321.11
5.6.180.0070.42721.05
5.6.170.0030.43321.11
5.6.160.0170.39320.98
5.6.150.0030.44320.95
5.6.140.0070.33320.93
5.6.130.0070.37021.16
5.6.120.0130.40020.93
5.6.110.0070.42721.04
5.6.100.0000.39321.00
5.6.90.0030.40721.09
5.6.80.0030.40020.43
5.6.70.0130.41720.36
5.6.60.0170.36020.46
5.6.50.0070.39720.33
5.6.40.0030.39320.40
5.6.30.0070.40720.44
5.6.20.0200.40020.38
5.6.10.0100.37320.38
5.6.00.0100.40720.52
5.5.360.0070.40720.44
5.5.350.0100.41720.48
5.5.340.0070.42020.80
5.5.330.0000.41720.88
5.5.320.0100.43020.80
5.5.310.0100.42020.77
5.5.300.0000.41720.88
5.5.290.0130.41020.88
5.5.280.0130.41020.64
5.5.270.0130.40320.88
5.5.260.0130.40020.85
5.5.250.0100.43020.54
5.5.240.0100.39720.29
5.5.230.0100.38320.17
5.5.220.0130.36020.24
5.5.210.0130.37720.25
5.5.200.0030.43020.11
5.5.190.0070.39320.24
5.5.180.0070.43320.27
5.5.160.0100.35020.25
5.5.150.0070.42020.15
5.5.140.0030.35019.99
5.5.130.0100.36720.14
5.5.120.0030.29720.03
5.5.110.0030.28719.97
5.5.100.0070.33019.98
5.5.90.0030.32019.94
5.5.80.0070.34020.09
5.5.70.0070.29320.14
5.5.60.0000.28320.13
5.5.50.0030.30020.03
5.5.40.0100.37320.13
5.5.30.0170.41720.02
5.5.20.0100.43320.02
5.5.10.0100.42719.98
5.5.00.0130.38319.93
5.4.450.0100.39319.62
5.4.440.0100.40019.53
5.4.430.0030.42719.47
5.4.420.0130.42719.54
5.4.410.0070.36719.31
5.4.400.0130.42719.15
5.4.390.0030.31318.97
5.4.380.0070.42019.14
5.4.370.0170.37319.04
5.4.360.0030.39319.05
5.4.350.0030.40019.23
5.4.340.0100.39019.09
5.4.320.0030.42018.93
5.4.310.0070.38319.14
5.4.300.0170.40018.91
5.4.290.0030.34719.02
5.4.280.0070.34319.19
5.4.270.0130.41719.01
5.4.260.0130.28019.17
5.4.250.0030.36719.10
5.4.240.0000.34019.23
5.4.230.0030.30319.09
5.4.220.0030.35719.02
5.4.210.0030.35719.18
5.4.200.0030.35719.13
5.4.190.0100.41318.98
5.4.180.0030.43319.09
5.4.170.0070.40719.08
5.4.160.0130.40319.20
5.4.150.0030.38718.96
5.4.140.0130.40716.45
5.4.130.0030.41316.41
5.4.120.0130.36016.43
5.4.110.0200.39716.48
5.4.100.0030.41716.27
5.4.90.0030.43016.40
5.4.80.0070.41316.38
5.4.70.0100.39716.50
5.4.60.0070.41016.25
5.4.50.0030.36316.46
5.4.40.0130.41016.52
5.4.30.0070.38716.50
5.4.20.0100.41316.36
5.4.10.0100.41716.26
5.4.00.0030.45315.96
5.3.290.0000.49014.79
5.3.280.0070.40714.62
5.3.270.0100.46714.59
5.3.260.0070.47014.66
5.3.250.0100.47314.59
5.3.240.0130.43314.63
5.3.230.0100.41714.61
5.3.220.0130.45714.68
5.3.210.0070.48714.66
5.3.200.0100.45314.68
5.3.190.0000.46714.67
5.3.180.0070.42314.65
5.3.170.0100.48014.54
5.3.160.0100.46314.68
5.3.150.0000.41014.68
5.3.140.0070.46314.59
5.3.130.0100.44314.59
5.3.120.0030.44014.58
5.3.110.0030.46714.57
5.3.100.0130.45014.16
5.3.90.0000.41014.00
5.3.80.0130.47314.13
5.3.70.0070.45714.00
5.3.60.0070.46713.93
5.3.50.0500.45714.08
5.3.40.0070.48714.01
5.3.30.0130.46314.01
5.3.20.0030.48013.62
5.3.10.0030.43313.54
5.3.00.0030.52013.63
5.2.170.0100.47311.29
5.2.160.0070.45711.36
5.2.150.0030.46311.38
5.2.140.0030.48011.39
5.2.130.0100.48311.19
5.2.120.0070.47711.42
5.2.110.0030.46011.35
5.2.100.0070.47011.36
5.2.90.0070.45011.31
5.2.80.0130.41711.34
5.2.70.0070.45311.33
5.2.60.0070.41311.20
5.2.50.0030.51011.26
5.2.40.0070.49711.13
5.2.30.0000.52011.21
5.2.20.0070.52711.21
5.2.10.0100.45711.03
5.2.00.0000.43710.95
5.1.60.0030.35710.61
5.1.50.0070.49710.61
5.1.40.0000.50010.61
5.1.30.0000.47010.61
5.1.20.0030.45710.61
5.1.10.0000.47710.61
5.1.00.0000.51010.61
5.0.50.0070.63310.61
5.0.40.0000.60710.61
5.0.30.0070.63310.61
5.0.20.0000.64710.61
5.0.10.0030.63010.61
5.0.00.0030.66010.61
4.4.90.0000.03710.61
4.4.80.0030.03710.61
4.4.70.0000.01710.61
4.4.60.0000.03710.61
4.4.50.0070.02710.61
4.4.40.0070.05010.61
4.4.30.0030.03710.61
4.4.20.0030.01310.61
4.4.10.0000.02710.61
4.4.00.0030.05010.61
4.3.110.0070.03310.61
4.3.100.0000.04010.61
4.3.90.0070.03010.61
4.3.80.0030.04710.61
4.3.70.0070.02010.61
4.3.60.0000.02010.61
4.3.50.0030.01310.61
4.3.40.0000.02710.61
4.3.30.0000.02710.61
4.3.20.0000.02010.61
4.3.10.0000.02010.61
4.3.00.0030.02310.61

preferences:
35.04 ms | 401 KiB | 5 Q