3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function method() { } } $obj = new Test; $ref = new ReflectionMethod($obj, 'method'); $closure = $ref->getClosure($obj); echo "Starting loop..."; $start = microtime(true); for ($i=0; $i<1e6; $i++) { $closure(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.4.00.0000.05615.09
7.3.120.0030.06514.66
7.3.110.0030.07814.83
7.3.100.0030.04014.70
7.3.90.0070.04014.86
7.3.80.0070.04414.80
7.3.70.0070.04214.82
7.3.60.0000.04714.98
7.3.50.0070.04714.94
7.3.40.0100.03714.85
7.3.30.0070.04615.04
7.3.20.0030.04416.39
7.3.10.0100.03716.64
7.3.00.0030.04316.45
7.2.250.0030.06714.73
7.2.240.0100.07614.91
7.2.230.0130.04715.02
7.2.220.0030.05615.21
7.2.210.0030.05714.85
7.2.200.0060.05114.89
7.2.190.0000.06614.71
7.2.180.0000.06415.06
7.2.170.0100.05814.73
7.2.00.0130.04119.50
7.1.330.0070.11116.00
7.1.320.0000.10815.86
7.1.310.0070.10415.91
7.1.300.0070.10915.91
7.1.290.0030.11115.64
7.1.280.0160.10115.73
7.1.270.0100.10615.78
7.1.260.0030.11115.82
7.1.70.0000.05117.38
7.1.60.0200.07619.40
7.1.50.0170.08034.99
7.1.00.0130.12722.51
7.0.200.0170.08714.93
7.0.140.0100.14322.07
7.0.120.0030.15022.03
7.0.60.0030.14020.08
7.0.50.0100.08717.88
7.0.40.0130.08320.11
7.0.30.0130.10020.26
7.0.20.0300.09720.07
7.0.10.0070.10020.05
7.0.00.0170.14020.32
5.6.280.0030.21720.99
5.6.210.0100.19320.51
5.6.200.0030.20318.14
5.6.190.0130.15020.58
5.6.180.0270.14720.61
5.6.170.0100.21320.62
5.6.160.0200.25020.59
5.6.150.0000.22018.13
5.6.140.0100.25018.21
5.6.130.0070.20718.22
5.6.120.0030.22021.15
5.6.110.0070.25321.11
5.6.100.0130.27321.13
5.6.90.0030.23021.08
5.6.80.0000.20320.52
5.6.70.0300.24320.38
5.5.350.0330.24320.30
5.5.340.0070.27017.98
5.5.330.0070.21720.33
5.5.320.0200.17320.20
5.5.310.0170.20020.41
5.5.300.0070.25318.01
5.5.290.0000.23318.03
5.5.280.0130.24320.88
5.5.270.0100.19320.86
5.5.260.0070.27020.88
5.5.250.0170.25320.63
5.5.240.0030.27720.19
5.4.450.0030.21019.55
5.4.440.0030.20019.42
5.4.430.0000.20319.61
5.4.420.0030.14719.56
5.4.410.0000.20319.33
5.4.400.0030.20019.08
5.4.390.0070.20019.22
5.4.380.0000.17719.13
5.4.370.0000.17318.98
5.4.360.0070.18019.18
5.4.350.0070.20719.06
5.4.340.0000.16319.13
5.4.320.0030.20019.14
5.4.310.0000.21019.22
5.4.300.0000.19018.98
5.4.290.0030.19318.98
5.4.280.0100.15319.24
5.4.270.0070.20019.13
5.4.260.0030.14018.98
5.4.250.0030.20019.37
5.4.240.0070.19719.23
5.4.230.0000.19718.86
5.4.220.0070.19719.14
5.4.210.0030.17719.13
5.4.200.0030.15318.85
5.4.190.0030.20719.04
5.4.180.0030.13719.37
5.4.170.0000.16319.23
5.4.160.0030.20719.04
5.4.150.0000.21019.07
5.4.140.0030.16716.35
5.4.130.0000.20716.32
5.4.120.0070.19016.34
5.4.110.0000.20716.45
5.4.100.0030.18716.47
5.4.90.0070.18716.37
5.4.80.0000.18016.35
5.4.70.0070.14016.40
5.4.60.0070.18316.55
5.4.50.0000.15016.43
5.4.40.0000.13716.42
5.4.30.0000.19016.37
5.4.20.0030.19716.59
5.4.10.0070.24016.23
5.4.00.0030.19716.12
5.3.290.0070.04314.65
5.3.280.0000.07714.58
5.3.270.0070.07714.58
5.3.260.0000.04014.57
5.3.250.0030.07314.68
5.3.240.0070.06314.72
5.3.230.0070.05714.51
5.3.220.0030.07714.57
5.3.210.0000.07014.47
5.3.200.0030.07714.56
5.3.190.0000.08014.78
5.3.180.0030.04314.48
5.3.170.0030.07314.58
5.3.160.0030.07714.53
5.3.150.0000.07714.58
5.3.140.0000.03714.55
5.3.130.0030.07714.55
5.3.120.0000.08014.53
5.3.110.0070.07714.71
5.3.100.0000.07314.43
5.3.90.0070.07314.43
5.3.80.0030.06714.43
5.3.70.0030.06714.43
5.3.60.0070.06714.43
5.3.50.0070.07014.43
5.3.40.0030.05314.43
5.3.30.0070.03714.43
5.3.20.0000.07014.43
5.3.10.0000.05714.43
5.3.00.0070.05314.43
5.2.170.0000.06714.43
5.2.160.0000.04714.43
5.2.150.0030.03714.43
5.2.140.0000.06314.43
5.2.130.0070.06014.43
5.2.120.0070.06014.43
5.2.110.0030.03714.43
5.2.100.0000.06014.43
5.2.90.0030.03714.43
5.2.80.0000.06314.43
5.2.70.0030.04714.43
5.2.60.0070.06014.43
5.2.50.0030.05714.43
5.2.40.0030.04014.43
5.2.30.0030.04714.43
5.2.20.0070.05714.43
5.2.10.0030.05014.43
5.2.00.0000.06314.43
5.1.60.0070.05014.43
5.1.50.0030.03714.43
5.1.40.0030.02314.43
5.1.30.0030.05314.43
5.1.20.0070.02314.43
5.1.10.0030.03314.43
5.1.00.0000.05714.43
5.0.50.0000.04714.43
5.0.40.0000.04014.43
5.0.30.0030.05014.43
5.0.20.0070.04014.43
5.0.10.0000.03714.43
5.0.00.0030.06714.43
4.4.90.0000.03314.43
4.4.80.0000.03314.43
4.4.70.0030.03014.43
4.4.60.0030.02714.43
4.4.50.0030.03714.43
4.4.40.0000.05314.43
4.4.30.0030.01314.43
4.4.20.0030.01314.43
4.4.10.0000.02314.43
4.4.00.0000.05714.43
4.3.110.0000.04014.43
4.3.100.0030.03314.43
4.3.90.0000.03014.43
4.3.80.0070.05014.43
4.3.70.0000.03014.43
4.3.60.0070.02014.43
4.3.50.0000.02314.43
4.3.40.0000.04714.43
4.3.30.0000.02314.43
4.3.20.0000.03014.43
4.3.10.0000.03714.43
4.3.00.0070.03014.43

preferences:
47.76 ms | 400 KiB | 5 Q