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++) { call_user_func_array(array($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.120.0030.13015.04
7.3.110.0070.11614.94
7.3.100.0100.12014.55
7.3.90.0070.11915.04
7.3.80.0030.12314.77
7.3.70.0030.12014.61
7.3.60.0100.11314.59
7.3.50.0100.11914.57
7.3.40.0070.11514.91
7.3.30.0130.11514.84
7.3.20.0070.12416.76
7.3.10.0000.12716.79
7.3.00.0000.14016.77
7.2.240.0070.12715.17
7.2.230.0130.14015.04
7.2.220.0030.12915.18
7.2.210.0030.13114.98
7.2.200.0100.12515.09
7.2.190.0030.13714.92
7.2.180.0100.13215.04
7.2.170.0000.13315.07
7.2.160.0030.13815.03
7.2.150.0000.13716.85
7.2.140.0070.14816.79
7.2.130.0070.13716.61
7.2.120.0100.12616.96
7.2.110.0070.14616.67
7.2.100.0070.12716.86
7.2.90.0070.12916.87
7.2.80.0030.15116.98
7.2.70.0100.13316.84
7.2.60.0030.13816.86
7.2.50.0070.15317.05
7.2.40.0130.12416.96
7.2.30.0030.12816.95
7.2.20.0070.12817.12
7.2.10.0030.15016.89
7.2.00.0070.13518.21
7.1.330.0030.21415.54
7.1.320.0100.22715.79
7.1.310.0030.22715.91
7.1.300.0030.21315.86
7.1.290.0070.20915.99
7.1.280.0070.21915.79
7.1.270.0070.21615.57
7.1.260.0030.21915.81
7.1.250.0100.21715.79
7.1.70.0000.13517.27
7.1.60.0070.20319.40
7.1.50.0230.18534.50
7.1.00.0070.22722.46
7.0.200.0130.18516.59
7.0.140.0070.21322.14
7.0.120.0030.22322.04
7.0.80.0070.20020.00
7.0.70.0130.18020.02
7.0.60.0030.22719.89
7.0.50.0170.19720.34
7.0.40.0170.19320.12
7.0.30.0070.22720.00
7.0.20.0030.17020.09
7.0.10.0030.20020.07
7.0.00.0100.18720.18
5.6.280.0070.56720.92
5.6.230.0030.62320.68
5.6.220.0070.58320.71
5.6.210.0100.60020.65
5.6.200.0230.58321.04
5.6.190.0130.57721.04
5.6.180.0130.55721.06
5.6.170.0100.59321.08
5.6.160.0000.60021.12
5.6.150.0000.49021.14
5.6.140.0370.45321.08
5.6.130.0030.46021.00
5.6.120.0000.49021.14
5.6.110.0370.47021.13
5.6.100.0130.54021.04
5.6.90.0030.46021.01
5.6.80.0000.57720.49
5.6.70.0100.53020.46
5.6.60.0030.46720.41
5.6.50.0100.61020.42
5.6.40.0100.51320.41
5.6.30.0030.53320.39
5.6.20.0030.56020.42
5.6.10.0070.63020.36
5.6.00.0030.68020.43
5.5.370.0130.58720.43
5.5.360.0030.56020.37
5.5.350.0030.61020.43
5.5.340.0070.55020.91
5.5.330.0130.59020.89
5.5.320.0100.61720.86
5.5.310.0030.51320.82
5.5.300.0030.44720.89
5.5.290.0030.59320.91
5.5.280.0030.62020.80
5.5.270.0000.61720.75
5.5.260.0030.55320.79
5.5.250.0030.47020.73
5.5.240.0030.54320.20
5.5.230.0100.46020.27
5.5.220.0070.54719.97
5.5.210.0030.61320.29
5.5.200.0100.62720.25
5.5.190.0070.46720.14
5.5.180.0070.53320.11
5.5.160.0070.60720.26
5.5.150.0030.52720.16
5.5.140.0070.58720.20
5.5.130.0000.52020.27
5.5.120.0030.48319.99
5.5.110.0100.64020.26
5.5.100.0030.56020.14
5.5.90.0100.64720.05
5.5.80.0030.59320.11
5.5.70.0130.61320.12
5.5.60.0030.60020.16
5.5.50.0170.58720.00
5.5.40.0070.62720.03
5.5.30.0130.65020.05
5.5.20.0100.61719.95
5.5.10.0130.59319.96
5.5.00.0070.58319.97
5.4.450.0000.55719.26
5.4.440.0030.46719.53
5.4.430.0070.60019.43
5.4.420.0070.59019.37
5.4.410.0000.47019.34
5.4.400.0030.61319.02
5.4.390.0070.51719.04
5.4.380.0000.48019.11
5.4.370.0030.59019.01
5.4.360.0070.51719.11
5.4.350.0000.60719.18
5.4.340.0100.51319.14
5.4.320.0130.57318.93
5.4.310.0000.60319.04
5.4.300.0100.59719.04
5.4.290.0030.54319.11
5.4.280.0030.54019.13
5.4.270.0170.59319.18
5.4.260.0070.61319.09
5.4.250.0030.57319.04
5.4.240.0130.60318.99
5.4.230.0030.58719.29
5.4.220.0030.57019.28
5.4.210.0030.56019.12
5.4.200.0030.57319.29
5.4.190.0070.59719.02
5.4.180.0070.61319.17
5.4.170.0130.59019.28
5.4.160.0100.61019.00
5.4.150.0030.58719.02
5.4.140.0130.58716.38
5.4.130.0100.59716.26
5.4.120.0070.57716.46
5.4.110.0070.60316.45
5.4.100.0070.50716.26
5.4.90.0000.44316.49
5.4.80.0030.44016.38
5.4.70.0070.54016.30
5.4.60.0030.54016.27
5.4.50.0030.45016.50
5.4.40.0000.46316.52
5.4.30.0100.61716.46
5.4.20.0070.56316.39
5.4.10.0000.61316.29
5.4.00.0030.60015.91
5.3.290.0000.65714.80
5.3.280.0030.65714.62
5.3.270.0100.64014.71
5.3.260.0070.66014.63
5.3.250.0100.65714.72
5.3.240.0070.56714.71
5.3.230.0000.61714.63
5.3.220.0030.63714.68
5.3.210.0030.73714.58
5.3.200.0030.56014.58
5.3.190.0070.50314.62
5.3.180.0100.56014.68
5.3.170.0030.55014.65
5.3.160.0000.48314.54
5.3.150.0000.62014.68
5.3.140.0100.64314.70
5.3.130.0030.66314.67
5.3.120.0030.60714.67
5.3.110.0030.63714.54
5.3.100.0030.60314.15
5.3.90.0070.61714.04
5.3.80.0070.63314.06
5.3.70.0070.60014.13
5.3.60.0130.64314.06
5.3.50.0030.63713.93
5.3.40.0030.60714.04
5.3.30.0030.65713.96
5.3.20.0030.47713.79
5.3.10.0070.61313.66
5.3.00.0070.48013.65
5.2.170.0030.71713.52
5.2.160.0030.76313.52
5.2.150.0070.77713.52
5.2.140.0000.63713.52
5.2.130.0100.72013.52
5.2.120.0000.73013.52
5.2.110.0030.61013.52
5.2.100.0000.77313.52
5.2.90.0100.73013.52
5.2.80.0030.73013.52
5.2.70.0070.74013.52
5.2.60.0030.75313.52
5.2.50.1230.73713.52
5.2.40.0100.80713.52
5.2.30.0070.73313.52
5.2.20.0030.79013.52
5.2.10.0070.81713.52
5.2.00.0030.76313.52
5.1.60.0030.64713.52
5.1.50.0100.69013.52
5.1.40.0070.70313.52
5.1.30.0030.66313.52
5.1.20.0100.67013.52
5.1.10.0000.68013.52
5.1.00.0070.72713.52
5.0.50.0070.72313.52
5.0.40.0070.87013.52
5.0.30.0000.87713.52
5.0.20.0070.85713.52
5.0.10.0070.87013.52
5.0.00.0070.83013.52
4.4.90.0130.02713.52
4.4.80.0000.02013.52
4.4.70.0100.03013.52
4.4.60.0000.03013.52
4.4.50.0000.03713.52
4.4.40.0070.05713.52
4.4.30.0030.02013.52
4.4.20.0030.03013.52
4.4.10.0100.03013.52
4.4.00.0000.05713.52
4.3.110.0070.03313.52
4.3.100.0000.03713.52
4.3.90.0030.03313.52
4.3.80.0030.03713.52
4.3.70.0000.04013.52
4.3.60.0000.02713.52
4.3.50.0030.01713.52
4.3.40.0000.02713.52
4.3.30.0000.04013.52
4.3.20.0030.03013.52
4.3.10.0070.02713.52
4.3.00.0000.02713.52

preferences:
39.09 ms | 401 KiB | 5 Q