3v4l.org

run code in 300+ PHP versions simultaneously
<?php function variable_get($name, $default = NULL) { global $conf; return isset($conf[$name]) ? $conf[$name] : $default; } class at_fn { public static function __callStatic($fn, $args) { return call_user_func_array(variable_get("atfn:{$fn}", $fn), $args); } } class at_fake { public static function __callStatic($fn, $args) { $GLOBALS['conf']["atfn:{$fn}"] = $args[0]; } } $time = time(); at_fake::time(function() use ($time) { return $time; }); print_r(at_fn::time());

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.0060.01014.79
7.3.110.0030.01014.82
7.3.100.0070.00414.83
7.3.90.0070.01014.86
7.3.80.0000.01614.61
7.3.70.0070.00715.03
7.3.60.0030.01014.63
7.3.50.0040.00714.86
7.3.40.0070.00714.77
7.3.30.0030.01014.84
7.3.20.0070.00716.67
7.3.10.0070.00616.79
7.3.00.0110.00516.80
7.2.240.0030.01315.11
7.2.230.0060.01214.89
7.2.220.0110.00715.16
7.2.210.0030.01215.21
7.2.200.0110.00315.07
7.2.190.0120.00315.18
7.2.180.0030.01415.04
7.2.170.0100.00315.04
7.2.160.0040.01215.14
7.2.150.0150.00017.00
7.2.140.0100.00716.96
7.2.130.0070.00516.91
7.2.120.0020.01416.93
7.2.110.0050.01216.63
7.2.100.0070.00516.81
7.2.90.0070.01016.93
7.2.80.0050.01316.87
7.2.70.0090.00716.90
7.2.60.0090.01016.93
7.2.50.0080.00516.91
7.2.40.0050.00616.91
7.2.30.0070.00716.99
7.2.20.0050.00916.98
7.2.10.0050.00917.00
7.2.00.0060.00917.70
7.1.330.0090.00415.76
7.1.320.0030.00815.75
7.1.310.0040.01115.96
7.1.300.0070.00315.77
7.1.290.0000.01015.54
7.1.280.0000.00915.89
7.1.270.0100.00315.91
7.1.260.0030.00715.76
7.1.250.0090.00315.78
7.1.100.0070.00717.93
7.1.70.0000.00716.97
7.1.60.0150.01119.40
7.1.50.0100.01016.66
7.1.00.0030.07322.30
7.0.200.0070.00316.83
7.0.140.0070.07322.09
7.0.80.0730.07319.99
7.0.70.0870.07719.91
7.0.60.0470.07319.96
7.0.50.0570.09020.30
7.0.40.0070.07020.09
7.0.30.0100.08020.04
7.0.20.0000.05020.14
7.0.10.0100.03720.07
7.0.00.0100.04720.13
5.6.280.0070.06721.11
5.6.230.0070.04020.63
5.6.220.0130.07720.66
5.6.210.0070.08020.46
5.6.200.0070.04021.18
5.6.190.0100.07321.13
5.6.180.0070.08021.05
5.6.170.0070.05321.09
5.6.160.0000.05720.90
5.6.150.0170.07021.05
5.6.140.0100.05321.18
5.6.130.0100.07321.08
5.6.120.0170.08021.05
5.6.110.0000.09021.14
5.6.100.0030.04720.96
5.6.90.0030.04321.04
5.6.80.0030.07720.42
5.6.70.0030.05020.56
5.6.60.0030.04020.46
5.6.50.0030.03720.44
5.6.40.0100.03320.30
5.6.30.0030.08320.39
5.6.20.0070.04720.39
5.6.10.0100.03720.46
5.6.00.0100.03320.37
5.5.370.0030.04320.36
5.5.360.0070.05020.42
5.5.350.0030.07720.35
5.5.340.0000.04320.77
5.5.330.0070.09020.77
5.5.320.0170.07020.93
5.5.310.0070.05320.74
5.5.300.0070.05020.93
5.5.290.0100.08020.73
5.5.280.0100.04320.77
5.5.270.0170.07020.80
5.5.260.0130.03320.90
5.5.250.0170.03320.60
5.5.240.0130.05020.04
5.5.230.0030.04020.16
5.5.220.0030.03720.27
5.5.210.0070.03720.31
5.5.200.0070.04320.29
5.5.190.0070.04320.25
5.5.180.0030.04020.19
5.5.160.0030.07020.09
5.5.150.0000.04320.25
5.5.140.0030.04020.25
5.5.130.0070.04020.24
5.5.120.0000.03720.28
5.5.110.0000.04720.28
5.5.100.0070.03720.08
5.5.90.0030.04020.02
5.5.80.0000.04720.02
5.5.70.0030.04719.92
5.5.60.0030.04020.07
5.5.50.0100.03720.16
5.5.40.0030.03719.94
5.5.30.0000.03720.14
5.5.20.0100.06320.10
5.5.10.0030.03720.10
5.5.00.0030.03320.04
5.4.450.0030.05319.38
5.4.440.0070.05719.38
5.4.430.0070.07019.45
5.4.420.0030.04019.27
5.4.410.0070.05019.10
5.4.400.0070.03719.24
5.4.390.0070.04019.09
5.4.380.0000.05719.23
5.4.370.0000.04719.16
5.4.360.0000.03719.05
5.4.350.0030.03319.16
5.4.340.0030.03719.24
5.4.320.0100.03719.05
5.4.310.0000.03319.21
5.4.300.0030.03719.04
5.4.290.0000.04019.20
5.4.280.0030.03719.19
5.4.270.0100.05719.12
5.4.260.0030.03319.09
5.4.250.0070.03019.07
5.4.240.0000.04019.04
5.4.230.0000.03719.04
5.4.220.0030.05318.87
5.4.210.0030.05719.17
5.4.200.0030.05719.23
5.4.190.0100.02319.20
5.4.180.0030.07018.86
5.4.170.0030.04018.86
5.4.160.0070.03719.07
5.4.150.0030.03318.93
5.4.140.0100.06716.51
5.4.130.0000.04016.38
5.4.120.0030.03016.46
5.4.110.0000.03316.54
5.4.100.0170.06716.42
5.4.90.0070.07016.55
5.4.80.0070.07316.54
5.4.70.0100.05716.43
5.4.60.0070.05716.25
5.4.50.0170.06016.45
5.4.40.0100.07316.37
5.4.30.0170.06316.44
5.4.20.0130.07016.49
5.4.10.0030.07316.36
5.4.00.0070.04715.94
5.3.290.0100.03014.79
5.3.280.0000.04014.70
5.3.270.0070.06314.63
5.3.260.0130.04014.67
5.3.250.0070.07014.75
5.3.240.0000.04714.54
5.3.230.0030.03714.63
5.3.220.0030.03714.63
5.3.210.0000.04014.70
5.3.200.0070.04314.57
5.3.190.0100.07014.70
5.3.180.0000.05714.56
5.3.170.0030.06314.62
5.3.160.0070.07314.58
5.3.150.0000.08714.62
5.3.140.0130.05014.67
5.3.130.0100.07714.58
5.3.120.0030.06314.60
5.3.110.0100.07714.55
5.3.100.0100.07314.11
5.3.90.0000.08314.06
5.3.80.0130.07314.09
5.3.70.0030.07313.92
5.3.60.0070.08014.06
5.3.50.0070.07013.89
5.3.40.0030.06313.97
5.3.30.0170.06713.80
5.3.20.0070.04313.82
5.3.10.0070.07013.68
5.3.00.0000.07713.68
5.2.170.0170.05311.08
5.2.160.0100.05311.15
5.2.150.0070.05711.21
5.2.140.0030.06711.09
5.2.130.0170.05011.20
5.2.120.0070.06011.16
5.2.110.0070.03711.16
5.2.100.0000.06011.19
5.2.90.0130.05010.96
5.2.80.0000.06310.96
5.2.70.0100.06011.16
5.2.60.0030.06311.18
5.2.50.0070.06711.13
5.2.40.0000.06011.06
5.2.30.0070.03310.85
5.2.20.0070.05710.98
5.2.10.0030.02710.77
5.2.00.0030.04310.67
5.1.60.0070.05010.09
5.1.50.0030.05710.00
5.1.40.0100.04710.08
5.1.30.0030.05710.36
5.1.20.0100.05010.50
5.1.10.0030.05310.18
5.1.00.0030.03710.09
5.0.50.0030.0478.68
5.0.40.0070.0408.45
5.0.30.0070.0508.22
5.0.20.0030.0208.29
5.0.10.0030.0378.27
5.0.00.0000.0608.16
4.4.90.0030.0377.07
4.4.80.0100.0207.07
4.4.70.0000.0377.07
4.4.60.0030.0207.07
4.4.50.0030.0207.07
4.4.40.0030.0507.07
4.4.30.0030.0337.07
4.4.20.0030.0377.07
4.4.10.0030.0337.07
4.4.00.0030.0537.07
4.3.110.0000.0377.07
4.3.100.0030.0337.07
4.3.90.0030.0337.07
4.3.80.0070.0277.07
4.3.70.0030.0337.07
4.3.60.0030.0207.07
4.3.50.0000.0207.07
4.3.40.0030.0537.07
4.3.30.0070.0237.07
4.3.20.0030.0337.07
4.3.10.0000.0277.07
4.3.00.0000.0277.07

preferences:
37.11 ms | 401 KiB | 5 Q