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++) { $obj->method(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.0100.03616.85
7.3.00.0100.04316.38
7.2.130.0030.05816.93
7.2.120.0030.06316.69
7.2.110.0100.05016.63
7.2.100.0070.05117.05
7.2.90.0100.05016.97
7.2.80.0070.06516.62
7.2.70.0030.05517.08
7.2.60.0030.05216.96
7.2.50.0030.05716.80
7.2.40.0030.05716.78
7.2.30.0030.05617.00
7.2.20.0030.06016.95
7.2.10.0070.05916.90
7.2.00.0020.04918.34
7.1.250.0070.10415.86
7.1.70.0000.04317.01
7.1.60.0030.08519.40
7.1.50.0030.04216.78
7.1.00.0030.13722.45
7.0.200.0210.05516.78
7.0.140.0030.13322.00
7.0.120.0070.14722.04
7.0.60.0030.09019.95
7.0.50.0000.15317.84
7.0.40.0070.15317.82
7.0.30.0070.15017.80
7.0.20.0100.14717.75
7.0.10.0030.15017.73
7.0.00.0130.14317.74
5.6.280.0000.21720.95
5.6.210.0030.21320.72
5.6.200.0030.21318.27
5.6.190.0070.20718.29
5.6.180.0130.26018.19
5.6.170.0130.27718.18
5.6.160.0070.20318.22
5.6.150.0000.21018.18
5.6.140.0070.26718.17
5.6.130.0070.21718.28
5.6.120.0130.25718.28
5.6.110.0070.24018.14
5.6.100.0100.26318.23
5.6.90.0070.26718.21
5.6.80.0070.20017.63
5.6.70.0070.19717.56
5.6.60.0000.20717.52
5.6.50.0030.19717.50
5.6.40.0030.20017.53
5.6.30.0000.20017.58
5.6.20.0000.20017.50
5.6.10.0030.29017.53
5.6.00.0100.25017.51
5.5.350.0330.25020.31
5.5.340.0030.25317.99
5.5.330.0030.20717.96
5.5.320.0070.23317.92
5.5.310.0100.25717.98
5.5.300.0070.20018.01
5.5.290.0170.23318.00
5.5.280.0100.26318.08
5.5.270.0100.26717.97
5.5.260.0000.27018.02
5.5.250.0030.20017.82
5.5.240.0070.19317.37
5.5.230.0070.27317.42
5.5.220.0030.19717.41
5.5.210.0030.19317.29
5.5.200.0000.20317.29
5.5.190.0500.19017.33
5.5.180.0030.19717.27
5.5.160.0070.21317.36
5.5.150.0030.25317.41
5.5.140.0070.27017.34
5.5.130.0030.20717.35
5.5.120.0070.22717.30
5.5.110.0070.25317.28
5.5.100.0100.25017.17
5.5.90.0070.25317.17
5.5.80.0130.23717.20
5.5.70.0030.21717.16
5.5.60.0030.20017.23
5.5.50.0030.27017.19
5.5.40.0070.26017.26
5.5.30.0100.27017.22
5.5.20.0100.26017.28
5.5.10.0030.27017.25
5.5.00.0070.26717.21
5.4.450.0100.21319.55
5.4.440.0130.26019.34
5.4.430.0100.24019.41
5.4.420.0070.20319.54
5.4.410.0030.20019.31
5.4.400.0030.19719.05
5.4.390.0030.19319.30
5.4.380.0030.24719.01
5.4.370.0000.19319.03
5.4.360.0000.20019.11
5.4.350.0000.19319.07
5.4.340.0070.18719.12
5.4.320.0000.21719.20
5.4.310.0130.25719.10
5.4.300.0070.26019.05
5.4.290.0030.24719.04
5.4.280.0070.23319.07
5.4.270.0030.23319.01
5.4.260.0000.20318.94
5.4.250.0070.25019.13
5.4.240.0130.19719.02
5.4.230.0030.26019.02
5.4.220.0070.25719.25
5.4.210.0070.19719.02
5.4.200.0130.25319.01
5.4.190.0070.22019.04
5.4.180.0070.25019.25
5.4.170.0000.20319.00
5.4.160.0070.25719.03
5.4.150.0100.21719.12
5.4.140.0000.26716.46
5.4.130.0000.19716.37
5.4.120.0030.19716.34
5.4.110.0130.25716.47
5.4.100.0000.24016.58
5.4.90.0030.25016.45
5.4.80.0070.25316.45
5.4.70.0000.22316.48
5.4.60.0030.19716.52
5.4.50.0100.23316.52
5.4.40.0030.19316.58
5.4.30.0070.19316.29
5.4.20.0070.25716.53
5.4.10.0030.24316.27
5.4.00.0030.25715.90
5.3.290.0100.31014.79
5.3.280.0030.26314.72
5.3.270.0070.31714.64
5.3.260.0200.29314.51
5.3.250.0030.28314.70
5.3.240.0030.25714.61
5.3.230.0000.31314.64
5.3.220.0100.30314.60
5.3.210.0000.26014.68
5.3.200.0000.31714.48
5.3.190.0100.24014.72
5.3.180.0070.30714.70
5.3.170.0100.29314.57
5.3.160.0130.29314.70
5.3.150.0100.28314.66
5.3.140.0030.31314.77
5.3.130.0100.27714.60
5.3.120.0030.30714.57
5.3.110.0030.32714.42
5.3.100.0030.31314.08
5.3.90.0100.31014.02
5.3.80.0070.28713.97
5.3.70.0130.30014.11
5.3.60.0070.29014.09
5.3.50.0130.30313.96
5.3.40.0100.29014.03
5.3.30.0030.32313.80
5.3.20.0100.30313.74
5.3.10.0070.29713.54
5.3.00.0070.32013.63
5.2.170.0070.33711.37
5.2.160.0070.31711.37
5.2.150.0130.31311.36
5.2.140.0000.33711.54
5.2.130.0070.31711.32
5.2.120.0030.33311.19
5.2.110.0030.26311.24
5.2.100.0000.26311.30
5.2.90.0070.32711.28
5.2.80.0000.27311.49
5.2.70.0000.27311.32
5.2.60.0030.27011.27
5.2.50.0030.32011.23
5.2.40.0000.30311.22
5.2.30.0030.32711.20
5.2.20.0100.32011.19
5.2.10.0100.28711.10
5.2.00.0070.28710.77
5.1.60.0070.25010.21
5.1.50.0030.28310.26
5.1.40.0070.31310.21
5.1.30.0130.31010.36
5.1.20.0100.33010.60
5.1.10.0070.31010.46
5.1.00.0030.27010.22
5.0.50.0130.4178.79
5.0.40.0030.3738.50
5.0.30.0030.4208.47
5.0.20.0030.4138.43
5.0.10.0030.4038.34
5.0.00.0100.4908.37
4.4.90.0070.0237.44
4.4.80.0030.0377.44
4.4.70.0030.0137.44
4.4.60.0000.0207.44
4.4.50.0000.0377.44
4.4.40.0000.0407.44
4.4.30.0030.0377.44
4.4.20.0000.0307.44
4.4.10.0030.0177.44
4.4.00.0000.0537.44
4.3.110.0030.0307.44
4.3.100.0030.0137.44
4.3.90.0000.0407.44
4.3.80.0000.0537.44
4.3.70.0030.0237.44
4.3.60.0030.0307.44
4.3.50.0030.0307.44
4.3.40.0030.0377.44
4.3.30.0000.0337.44
4.3.20.0030.0277.44
4.3.10.0000.0277.44
4.3.00.0000.0377.44

preferences:
47.59 ms | 400 KiB | 5 Q