3v4l.org

run code in 300+ PHP versions simultaneously
<?php function unset_globals($array) { if(!is_array($array)) { return; } foreach(array_keys($array) as $key) { unset($GLOBALS[$key]); unset($GLOBALS[$key]); // Double unset to circumvent the zend_hash_del_key_or_index hole in PHP <4.4.3 and <5.1.4 } } $ryat = 'haha'; $_GET['GLOBALS'] = 'hi'; //$_GET['ryat'] = 'hi'; unset_globals($_GET); echo $ryat;

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.0120.00318.43
8.3.50.0100.01221.27
8.3.40.0070.01018.79
8.3.30.0110.00319.02
8.3.20.0030.00520.34
8.3.10.0050.00322.09
8.3.00.0040.00420.68
8.2.180.0190.00316.75
8.2.170.0140.00022.96
8.2.160.0110.00419.24
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0050.00319.90
8.2.110.0050.00522.04
8.2.100.0120.00019.41
8.2.90.0000.00719.17
8.2.80.0000.00818.04
8.2.70.0000.00817.63
8.2.60.0120.00417.54
8.2.50.0040.00418.07
8.2.40.0000.00718.34
8.2.30.0040.00418.11
8.2.20.0050.00317.82
8.2.10.0050.00317.82
8.2.00.0020.00517.67
8.1.280.0110.00325.92
8.1.270.0040.00418.57
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0100.00023.72
8.1.230.0060.00619.11
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0050.00317.63
8.1.180.0050.00320.52
8.1.170.0060.00318.52
8.1.160.0030.00422.14
8.1.150.0040.00418.63
8.1.140.0040.00417.45
8.1.130.0030.00317.75
8.1.120.0000.00717.31
8.1.110.0050.00317.46
8.1.100.0000.00717.36
8.1.90.0070.00017.41
8.1.80.0030.00517.37
8.1.70.0000.00817.44
8.1.60.0050.00317.61
8.1.50.0000.00717.41
8.1.40.0040.00417.57
8.1.30.0000.00717.57
8.1.20.0040.00417.61
8.1.10.0000.00817.51
8.1.00.0050.00317.50
8.0.300.0040.00418.77
8.0.290.0040.00417.16
8.0.280.0000.00718.44
8.0.270.0000.00717.17
8.0.260.0060.00016.88
8.0.250.0000.00716.95
8.0.240.0060.00317.02
8.0.230.0000.00716.98
8.0.220.0000.00717.02
8.0.210.0030.00316.82
8.0.200.0000.00716.92
8.0.190.0050.00316.84
8.0.180.0050.00316.84
8.0.170.0030.00616.97
8.0.160.0040.00416.89
8.0.150.0000.00716.90
8.0.140.0000.00816.80
8.0.130.0050.00013.46
8.0.120.0050.00316.94
8.0.110.0050.00216.93
8.0.100.0050.00516.82
8.0.90.0040.00416.94
8.0.80.0060.01016.93
8.0.70.0040.00416.81
8.0.60.0050.00316.94
8.0.50.0040.00417.02
8.0.30.0070.01117.06
8.0.20.0050.01417.40
8.0.10.0070.00016.85
8.0.00.0110.00616.88
7.4.330.0060.00016.67
7.4.320.0070.00016.44
7.4.300.0030.00316.52
7.4.290.0100.00016.60
7.4.280.0060.00016.63
7.4.270.0070.00016.60
7.4.260.0030.00316.41
7.4.250.0080.00016.45
7.4.240.0040.00316.55
7.4.230.0000.00716.41
7.4.220.0040.01416.58
7.4.210.0100.00516.52
7.4.200.0070.00016.41
7.4.190.0040.00216.74
7.4.160.0150.00716.50
7.4.150.0100.00717.40
7.4.140.0070.01217.86
7.4.130.0120.00716.55
7.4.120.0090.00916.53
7.4.110.0100.00716.49
7.4.100.0100.01016.41
7.4.90.0110.00716.64
7.4.80.0140.01719.39
7.4.70.0030.01316.57
7.4.60.0120.00316.53
7.4.50.0030.00516.39
7.4.40.0120.00422.77
7.4.30.0050.01216.53
7.4.00.0040.01215.05
7.3.330.0000.00513.43
7.3.320.0000.00513.34
7.3.310.0000.00716.47
7.3.300.0070.00016.42
7.3.290.0030.01216.35
7.3.280.0100.00816.44
7.3.270.0100.00617.40
7.3.260.0070.01316.38
7.3.250.0110.00616.48
7.3.240.0130.00616.66
7.3.230.0140.00716.39
7.3.210.0110.00716.36
7.3.200.0090.00619.39
7.3.190.0000.01616.44
7.3.180.0180.00416.44
7.3.170.0080.00916.35
7.3.160.0060.00916.41
7.3.120.0030.01315.10
7.3.10.0140.00016.64
7.3.00.0140.00016.72
7.2.330.0110.00716.77
7.2.320.0190.00516.68
7.2.310.0060.01116.68
7.2.300.0100.00616.88
7.2.290.0140.00316.38
7.2.130.0030.01216.64
7.2.120.0040.01216.75
7.2.110.0040.01116.84
7.2.100.0070.01016.99
7.2.90.0140.00316.63
7.2.80.0030.01017.01
7.2.70.0060.01216.67
7.2.60.0070.00716.68
7.2.50.0000.01417.02
7.2.40.0060.01017.14
7.2.30.0030.01316.70
7.2.20.0100.00316.54
7.2.10.0070.00716.61
7.2.00.0040.00718.16
7.1.250.0000.01315.67
7.1.100.0060.00618.14
7.1.70.0040.00717.00
7.1.60.0090.01519.82
7.1.50.0060.01516.99
7.1.00.0070.07322.31
7.0.200.0030.00716.85
7.0.140.0000.07721.95
7.0.120.0270.07322.04
7.0.110.0070.07322.01
7.0.100.0030.05022.02
7.0.90.0070.05722.02
7.0.80.0000.08321.92
7.0.70.0070.03322.16
7.0.60.0030.03722.09
7.0.50.0200.04322.06
7.0.40.0070.05720.05
7.0.30.0030.03720.16
7.0.20.0000.04720.00
7.0.10.0070.06720.07
7.0.00.0070.05320.14
5.6.280.0030.07320.78
5.6.270.0000.08020.82
5.6.260.0030.07720.91
5.6.250.0000.08020.93
5.6.240.0130.06320.99
5.6.230.0030.07020.82
5.6.220.0030.07320.96
5.6.210.0070.04020.86
5.6.200.0030.04720.75
5.6.190.0000.05020.83
5.6.180.0070.05320.98
5.6.170.0070.08020.88
5.6.160.0070.04720.86
5.6.150.0000.05020.95
5.6.140.0030.06720.85
5.6.130.0070.03320.95
5.6.120.0100.07020.75
5.6.110.0070.04020.93
5.6.100.0030.04720.89
5.6.90.0030.03320.98
5.6.80.0070.03320.42
5.6.70.0000.04320.36
5.6.60.0030.04320.31
5.6.50.0070.03720.07
5.6.40.0030.07720.23
5.6.30.0030.04020.33
5.6.20.0100.03320.36
5.6.10.0070.03320.05
5.6.00.0030.03720.29
5.5.380.0000.04317.70
5.5.370.0000.04317.55
5.5.360.0070.03717.54
5.5.350.0030.04317.63
5.5.340.0030.04017.83
5.5.330.0000.04017.96
5.5.320.0100.06718.25
5.5.310.0100.06718.10
5.5.300.0070.07717.82
5.5.290.0070.06318.09
5.5.280.0030.05317.92
5.5.270.0030.04317.92
5.5.260.0100.03318.07
5.5.250.0000.04317.72
5.5.240.0000.04017.64
5.5.230.0000.04017.47
5.5.220.0030.03717.48
5.5.210.0000.04317.31
5.5.200.0130.02717.49
5.5.190.0000.03317.41
5.5.180.0030.03717.26
5.5.160.0000.03717.50
5.5.150.0030.03717.43
5.5.140.0000.03317.28
5.5.130.0030.03317.43
5.5.120.0000.03317.28
5.5.110.0070.02717.26
5.5.100.0000.04017.49
5.5.90.0000.03717.35
5.5.80.0000.03017.34
5.5.70.0000.03717.15
5.5.60.0070.03017.37
5.5.50.0030.04317.16
5.5.40.0000.03317.49
5.5.30.0000.03017.46
5.5.20.0000.03017.16
5.5.10.0000.03717.31
5.5.00.0030.03317.46
5.4.450.0100.04019.28
5.4.440.0100.05719.37
5.4.430.0000.04319.28
5.4.420.0030.04019.36
5.4.410.0030.03319.37
5.4.400.0070.03019.29
5.4.390.0000.04019.28
5.4.380.0030.06018.96
5.4.370.0030.03319.12
5.4.360.0000.04019.29
5.4.350.0030.02718.93
5.4.340.0070.03719.13
5.4.320.0030.03719.04
5.4.310.0000.03719.13
5.4.300.0070.03318.96
5.4.290.0000.03019.17
5.4.280.0000.04019.28
5.4.270.0000.03319.11
5.4.260.0030.03019.09
5.4.250.0030.03019.29
5.4.240.0030.02719.13
5.4.230.0000.03718.96
5.4.220.0070.02718.93
5.4.210.0000.03319.09
5.4.200.0030.02718.95
5.4.190.0000.03019.12
5.4.180.0030.03018.95
5.4.170.0000.03319.27
5.4.160.0030.03719.11
5.4.150.0030.03018.95
5.4.140.0030.03016.29
5.4.130.0100.05316.27
5.4.120.0000.04316.52
5.4.110.0070.04316.52
5.4.100.0070.04716.37
5.4.90.0000.06316.52
5.4.80.0030.03316.59
5.4.70.0000.06316.34
5.4.60.0030.05016.29
5.4.50.0070.06316.42
5.4.40.0000.04016.54
5.4.30.0000.06016.23
5.4.20.0030.06316.57
5.4.10.0030.04016.49
5.4.00.0070.02315.85
5.3.290.0000.04014.75
5.3.280.0000.03314.63
5.3.270.0000.04014.61
5.3.260.0000.03014.61
5.3.250.0100.02714.61
5.3.240.0030.02714.60
5.3.230.0030.05314.60
5.3.220.0070.05314.69
5.3.210.0000.06014.58
5.3.200.0070.03314.59
5.3.190.0030.03014.64
5.3.180.0000.06714.52
5.3.170.0000.03314.69
5.3.160.0100.05314.61
5.3.150.0070.03314.58
5.3.140.0030.03014.55
5.3.130.0000.04014.40
5.3.120.0070.06714.58
5.3.110.0100.02714.53
5.3.100.0000.05314.18
5.3.90.0030.03714.04
5.3.80.0000.07314.24
5.3.70.0070.06014.08
5.3.60.0070.06314.09
5.3.50.0000.03713.80
5.3.40.0030.05714.00
5.3.30.0070.06713.92
5.3.20.0030.04013.54
5.3.10.0030.05313.80
5.3.00.0030.06713.78
5.2.170.0070.04311.16
5.2.160.0000.03011.15
5.2.150.0070.02711.10
5.2.140.0030.03011.15
5.2.130.0030.05311.09
5.2.120.0030.03011.09
5.2.110.0000.06311.22
5.2.100.0030.04711.10
5.2.90.0030.06311.12
5.2.80.0030.04311.18
5.2.70.0070.02311.07
5.2.60.0000.03011.03
5.2.50.0000.05011.09
5.2.40.0070.02311.00
5.2.30.0030.03710.99
5.2.20.0030.04710.98
5.2.10.0030.02710.86
5.2.00.0070.03010.70
5.1.60.0000.0339.98
5.1.50.0000.0239.96
5.1.40.0000.0279.91
5.1.30.0000.02710.46
5.1.20.0000.03010.37
5.1.10.0030.02010.04
5.1.00.0000.02010.32
5.0.50.0000.0179.68
5.0.40.0000.0179.68
5.0.30.0030.0309.68
5.0.20.0030.0209.68
5.0.10.0030.0339.68
5.0.00.0000.0309.68
4.4.90.0000.0279.68
4.4.80.0000.0239.68
4.4.70.0030.0379.68
4.4.60.0030.0279.68
4.4.50.0000.0209.68
4.4.40.0000.0239.68
4.4.30.0000.0139.68
4.4.20.0000.0179.68
4.4.10.0000.0209.68
4.4.00.0000.0239.68
4.3.110.0000.0139.68
4.3.100.0000.0279.68
4.3.90.0000.0179.68
4.3.80.0000.0479.68
4.3.70.0030.0239.68
4.3.60.0000.0209.68
4.3.50.0000.0279.68
4.3.40.0000.0539.68
4.3.30.0000.0379.68
4.3.20.0000.0139.68
4.3.10.0000.0139.68
4.3.00.0000.0339.68

preferences:
64.73 ms | 401 KiB | 5 Q