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->invokeArgs($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.2.00.0000.13619.61
7.1.70.0070.12117.34
7.1.60.0170.18519.29
7.1.50.0100.18816.96
7.1.00.0030.23322.45
7.0.200.0070.15116.82
7.0.140.0030.23322.18
7.0.100.0100.22020.03
7.0.90.0100.23019.93
7.0.80.0070.22019.91
7.0.70.0100.18719.95
7.0.60.0030.23319.80
7.0.50.0100.29020.31
7.0.40.0070.21320.05
7.0.30.0170.22720.06
7.0.20.0100.22320.01
7.0.10.0100.23720.08
7.0.00.0200.24020.10
5.6.280.0070.36720.82
5.6.250.0070.42020.67
5.6.240.0100.41320.52
5.6.230.0070.43020.69
5.6.220.0070.41720.71
5.6.210.0070.42020.76
5.6.200.0000.44721.05
5.6.190.0000.42021.07
5.6.180.0070.40721.04
5.6.170.0230.46021.14
5.6.160.0030.41721.01
5.6.150.0100.37321.07
5.6.140.0000.37721.04
5.6.130.0070.40021.11
5.6.120.0070.43721.17
5.6.110.0170.41321.06
5.6.100.0100.46721.04
5.6.90.0070.42721.09
5.6.80.0070.42320.43
5.6.70.0100.40320.42
5.6.60.0200.42020.41
5.6.50.0130.41720.44
5.6.40.0170.39720.45
5.6.30.0830.34720.45
5.6.20.0030.41320.37
5.6.10.0170.42320.46
5.6.00.0100.43020.51
5.5.380.0030.41020.41
5.5.370.0130.39320.36
5.5.360.0170.39720.39
5.5.350.0070.40720.46
5.5.340.0170.39320.76
5.5.330.0030.39020.65
5.5.320.0170.42720.89
5.5.310.0070.39720.80
5.5.300.0070.38720.78
5.5.290.0100.38320.87
5.5.280.0130.42720.85
5.5.270.0070.40720.79
5.5.260.0100.41720.87
5.5.250.0100.42020.69
5.5.240.0070.42320.03
5.5.230.0070.40720.24
5.5.220.0130.41020.22
5.5.210.0130.40020.27
5.5.200.0030.41720.00
5.5.190.0070.42020.28
5.5.180.0200.38320.13
5.5.160.0100.40720.13
5.5.150.0070.41720.25
5.5.140.0070.36720.24
5.5.130.0000.36720.27
5.5.120.0000.35719.99
5.5.110.0000.34319.98
5.5.100.0000.42719.95
5.5.90.0000.37020.10
5.5.80.0000.34720.11
5.5.70.0000.40320.06
5.5.60.0000.37320.09
5.5.50.0130.59320.06
5.5.40.0030.40319.96
5.5.30.0130.38020.05
5.5.20.0100.39020.14
5.5.10.0000.43319.98
5.5.00.0070.41020.11
5.4.450.0170.37719.43
5.4.440.0100.39319.44
5.4.430.0170.39019.35
5.4.420.0030.42319.36
5.4.410.0100.40319.21
5.4.400.0070.39319.19
5.4.390.0030.41718.99
5.4.380.0070.38719.16
5.4.370.0100.39319.02
5.4.360.0070.46019.32
5.4.350.0000.43019.23
5.4.340.0030.39319.01
5.4.320.0170.39319.10
5.4.310.0100.35319.10
5.4.300.0070.39318.88
5.4.290.0030.39019.03
5.4.280.0030.35019.18
5.4.270.0500.27019.12
5.4.260.0030.35319.30
5.4.250.0030.35318.91
5.4.240.0030.37719.02
5.4.230.0030.33018.96
5.4.220.0130.36719.17
5.4.210.0030.35319.19
5.4.200.0000.40019.22
5.4.190.0030.39319.00
5.4.180.0070.43319.19
5.4.170.0070.35018.90
5.4.160.0070.39719.07
5.4.150.0000.36319.13
5.4.140.0100.42316.45
5.4.130.0070.47016.46
5.4.120.0000.47016.48
5.4.110.0030.36716.51
5.4.100.0070.38716.27
5.4.90.0100.39016.45
5.4.80.0170.36016.48
5.4.70.0030.38716.48
5.4.60.0030.35716.30
5.4.50.0000.39016.52
5.4.40.0170.38316.36
5.4.30.0070.35316.45
5.4.20.0070.40716.29
5.4.10.0000.35716.54
5.4.00.0030.39715.93
5.3.290.0030.49714.79
5.3.280.0030.42014.72
5.3.270.0070.46014.60
5.3.260.0070.47314.70
5.3.250.0100.45314.62
5.3.240.0070.46714.62
5.3.230.0100.46314.59
5.3.220.0000.47014.68
5.3.210.0100.47014.62
5.3.200.0130.45714.66
5.3.190.0070.46314.70
5.3.180.0070.42314.57
5.3.170.0400.36714.69
5.3.160.0670.33314.62
5.3.150.0100.46714.68
5.3.140.0870.34314.65
5.3.130.0070.42014.68
5.3.120.0100.49014.67
5.3.110.0070.46014.55
5.3.100.0130.44314.14
5.3.90.0000.49014.14
5.3.80.0100.45714.00
5.3.70.0030.43014.15
5.3.60.0100.45714.05
5.3.50.0030.42713.93
5.3.40.0170.47314.04
5.3.30.0100.45713.84
5.3.20.0000.43313.75
5.3.10.0100.45313.54
5.3.00.0030.50313.78
5.2.170.0030.47012.52
5.2.160.0030.48012.52
5.2.150.0070.46012.52
5.2.140.0030.47712.52
5.2.130.0100.44712.52
5.2.120.0100.49712.52
5.2.110.0070.48312.52
5.2.100.0030.47012.52
5.2.90.0130.47712.52
5.2.80.0130.46712.52
5.2.70.0130.47712.52
5.2.60.0000.47712.52
5.2.50.0100.53712.52
5.2.40.0070.53712.52
5.2.30.0030.54012.52
5.2.20.0000.47012.52
5.2.10.0070.50712.52
5.2.00.0030.50312.52
5.1.60.0030.47312.52
5.1.50.0030.55312.52
5.1.40.0070.50012.52
5.1.30.0030.45012.52
5.1.20.0030.52012.52
5.1.10.0030.49312.52
5.1.00.0030.50712.52
5.0.50.0000.04712.52
5.0.40.0030.04312.52
5.0.30.0070.03312.52
5.0.20.0000.04012.52
5.0.10.0130.02012.52
5.0.00.0070.05312.52
4.4.90.0030.03712.52
4.4.80.0070.02012.52
4.4.70.0000.04012.52
4.4.60.0000.03012.52
4.4.50.0000.03312.52
4.4.40.0030.05012.52
4.4.30.0000.03712.52
4.4.20.0070.03012.52
4.4.10.0000.02312.52
4.4.00.0070.05012.52
4.3.110.0070.02712.52
4.3.100.0070.03012.52
4.3.90.0000.03712.52
4.3.80.0000.05312.52
4.3.70.0030.03312.52
4.3.60.0070.03012.52
4.3.50.0000.04012.52
4.3.40.0000.05312.52
4.3.30.0070.03012.52
4.3.20.0000.04012.52
4.3.10.0030.03312.52
4.3.00.0000.02012.52

preferences:
35.85 ms | 401 KiB | 5 Q