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<1e5; $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.1.70.0000.02117.18
7.1.60.0070.04219.82
7.1.50.0130.03617.06
7.1.00.0030.09722.41
7.0.200.0100.01616.61
7.0.140.0030.09022.00
7.0.100.0300.09720.06
7.0.90.0070.06020.14
7.0.80.0070.07319.90
7.0.70.0300.08319.96
7.0.60.0030.05019.92
7.0.50.0070.08320.27
7.0.40.0100.09720.11
7.0.30.0130.08020.03
7.0.20.0130.09720.11
7.0.10.0100.05720.02
7.0.00.0070.10720.18
5.6.280.0100.11020.86
5.6.250.0030.09020.60
5.6.240.0100.13320.64
5.6.230.0030.07720.66
5.6.220.0070.12020.58
5.6.210.0070.08020.49
5.6.200.0100.10721.11
5.6.190.0100.08021.04
5.6.180.0200.10321.05
5.6.170.0170.08021.03
5.6.160.0000.10321.08
5.6.150.0000.09021.01
5.6.140.0100.07721.11
5.6.130.0030.08020.94
5.6.120.0230.10021.04
5.6.110.0200.12721.03
5.6.100.0030.11721.05
5.6.90.0070.09721.00
5.6.80.0030.13020.45
5.6.70.0000.08320.46
5.6.60.0070.08020.45
5.6.50.0070.08020.40
5.6.40.0030.07320.44
5.6.30.0070.12720.29
5.6.20.0000.08020.37
5.6.10.0100.11320.28
5.6.00.0070.10720.37
5.5.380.0100.07320.53
5.5.370.0030.11720.34
5.5.360.0070.11720.41
5.5.350.0030.12320.45
5.5.340.0000.11320.80
5.5.330.0130.12720.93
5.5.320.0170.12020.87
5.5.310.0170.13720.88
5.5.300.0070.12720.82
5.5.290.0030.07720.78
5.5.280.0130.09720.79
5.5.270.0070.12720.88
5.5.260.0030.13320.90
5.5.250.0070.13320.54
5.5.240.0030.07720.12
5.5.230.0070.06320.18
5.5.220.0100.08720.20
5.5.210.0030.14020.11
5.5.200.0030.12020.27
5.5.190.0170.12020.25
5.5.180.0100.12720.00
5.5.160.0100.12720.14
5.5.150.0130.11720.17
5.5.140.0170.13020.25
5.5.130.0100.11320.11
5.5.120.0070.11320.13
5.5.110.0070.07020.25
5.5.100.0000.07720.07
5.5.90.0070.09019.97
5.5.80.0070.07020.10
5.5.70.0100.06020.16
5.5.60.0070.06320.09
5.5.50.0030.07019.96
5.5.40.0070.07020.15
5.5.30.0070.06720.08
5.5.20.0170.08020.14
5.5.10.0070.06720.09
5.5.00.0070.08720.00
5.4.450.0070.09019.51
5.4.440.0000.08319.63
5.4.430.0100.11719.54
5.4.420.0070.13019.29
5.4.410.0030.12719.40
5.4.400.0070.12318.99
5.4.390.0100.12319.09
5.4.380.0070.07719.13
5.4.370.0070.06018.94
5.4.360.0030.13319.28
5.4.350.0100.11719.09
5.4.340.0100.12319.14
5.4.320.0070.11719.14
5.4.310.0200.11318.91
5.4.300.0070.13019.11
5.4.290.0070.13019.10
5.4.280.0170.08719.01
5.4.270.0130.11319.13
5.4.260.0100.06719.04
5.4.250.0070.06718.96
5.4.240.0030.07018.90
5.4.230.0070.06719.03
5.4.220.0030.07018.96
5.4.210.0030.07019.18
5.4.200.0070.10319.21
5.4.190.0070.06318.99
5.4.180.0030.07019.27
5.4.170.0070.06719.13
5.4.160.0000.08018.92
5.4.150.0030.06319.07
5.4.140.0200.04716.46
5.4.130.0000.07016.39
5.4.120.0030.06716.46
5.4.110.0070.06316.50
5.4.100.0100.05016.52
5.4.90.0070.06316.27
5.4.80.0030.08016.48
5.4.70.0070.08016.31
5.4.60.0030.11716.34
5.4.50.0100.11016.29
5.4.40.0070.11716.52
5.4.30.0100.09016.50
5.4.20.0130.10716.36
5.4.10.0100.10716.23
5.4.00.0170.07315.91
5.3.290.0070.12014.77
5.3.280.0030.07314.72
5.3.270.0100.06714.63
5.3.260.0070.07714.63
5.3.250.0000.08714.75
5.3.240.0030.07714.61
5.3.230.0030.07714.64
5.3.220.0000.08714.69
5.3.210.0030.07714.68
5.3.200.0000.06314.70
5.3.190.0030.07314.69
5.3.180.0070.11014.70
5.3.170.0030.07314.68
5.3.160.0030.07714.67
5.3.150.0000.07714.59
5.3.140.0100.12714.58
5.3.130.0100.13714.57
5.3.120.0100.11714.66
5.3.110.0030.11714.57
5.3.100.0200.12014.14
5.3.90.0100.12014.05
5.3.80.0070.10713.98
5.3.70.0130.12014.03
5.3.60.0030.13014.10
5.3.50.0030.12014.03
5.3.40.0070.11013.95
5.3.30.0070.12313.82
5.3.20.0000.09013.68
5.3.10.0000.12713.58
5.3.00.0000.11713.57
5.2.170.0070.09311.36
5.2.160.0000.07711.23
5.2.150.0100.09311.28
5.2.140.0000.07711.37
5.2.130.0070.13011.15
5.2.120.0100.10711.33
5.2.110.0130.11311.34
5.2.100.0030.13311.21
5.2.90.0070.15711.32
5.2.80.0070.11711.33
5.2.70.0030.10011.36
5.2.60.0030.10311.19
5.2.50.0100.10311.15
5.2.40.0070.11311.24
5.2.30.0100.13011.22
5.2.20.0030.10711.05
5.2.10.0070.11711.07
5.2.00.0070.12310.86
5.1.60.0030.09010.25
5.1.50.0030.10710.13
5.1.40.0030.11710.25
5.1.30.0100.11010.45
5.1.20.0200.08310.40
5.1.10.0030.12310.32
5.1.00.0070.09310.32
5.0.50.0030.0478.60
5.0.40.0000.0508.53
5.0.30.0200.0408.40
5.0.20.0000.0508.40
5.0.10.0030.0478.40
5.0.00.0070.0278.40
4.4.90.0000.0238.40
4.4.80.0030.0338.40
4.4.70.0070.0338.40
4.4.60.0000.0208.40
4.4.50.0000.0378.40
4.4.40.0030.0538.40
4.4.30.0030.0378.40
4.4.20.0000.0238.40
4.4.10.0000.0338.40
4.4.00.0070.0508.40
4.3.110.0000.0308.40
4.3.100.0030.0338.40
4.3.90.0030.0338.40
4.3.80.0000.0538.40
4.3.70.0030.0308.40
4.3.60.0030.0308.40
4.3.50.0030.0338.40
4.3.40.0070.0478.40
4.3.30.0070.0338.40
4.3.20.0030.0338.40
4.3.10.0000.0408.40
4.3.00.0000.0378.40

preferences:
38.87 ms | 400 KiB | 5 Q