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'; //var_dump($GLOBALS); $_GET['GLOBALS'] = 'hi'; $_GET['ryat'] = 'hi'; unset_globals($_GET); var_dump($GLOBALS); 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.40.0070.01418.80
8.3.30.0150.00319.27
8.3.20.0040.00420.26
8.3.10.0030.00622.09
8.3.00.0000.00820.49
8.2.170.0090.00622.96
8.2.160.0070.00719.38
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00019.66
8.2.110.0060.00321.01
8.2.100.0060.00617.84
8.2.90.0040.00419.49
8.2.80.0040.00419.20
8.2.70.0030.00617.61
8.2.60.0080.00018.16
8.2.50.0050.00318.07
8.2.40.0060.00318.34
8.2.30.0080.00018.01
8.2.20.0000.00817.66
8.2.10.0030.00617.87
8.2.00.0030.00517.71
8.1.270.0060.00318.52
8.1.260.0060.00326.35
8.1.250.0030.00528.09
8.1.240.0060.00322.17
8.1.230.0060.00620.88
8.1.220.0000.00917.78
8.1.210.0090.00018.82
8.1.200.0100.00017.47
8.1.190.0030.00617.63
8.1.180.0030.00618.93
8.1.170.0030.00518.70
8.1.160.0050.00322.14
8.1.150.0000.00818.64
8.1.140.0040.00417.46
8.1.130.0030.00317.89
8.1.120.0030.00517.42
8.1.110.0060.00317.36
8.1.100.0000.00717.39
8.1.90.0070.00017.44
8.1.80.0040.00417.44
8.1.70.0000.00717.37
8.1.60.0030.00617.59
8.1.50.0000.00817.53
8.1.40.0060.00317.55
8.1.30.0040.00417.54
8.1.20.0030.00517.69
8.1.10.0040.00417.61
8.1.00.0040.00417.56
8.0.300.0000.00820.07
8.0.290.0000.00717.18
8.0.280.0030.00318.48
8.0.270.0050.00217.26
8.0.260.0030.00316.93
8.0.250.0030.00516.96
8.0.240.0060.00317.07
8.0.230.0000.00717.04
8.0.220.0030.00316.86
8.0.210.0000.00716.85
8.0.200.0030.00317.02
8.0.190.0040.00417.00
8.0.180.0040.00416.95
8.0.170.0020.00517.01
8.0.160.0050.00316.82
8.0.150.0040.00416.96
8.0.140.0000.00816.94
8.0.130.0050.00013.32
8.0.120.0040.00416.88
8.0.110.0000.00716.93
8.0.100.0060.00316.96
8.0.90.0040.00416.76
8.0.80.0130.00616.90
8.0.70.0000.00716.93
8.0.60.0030.00516.98
8.0.50.0040.00417.03
8.0.30.0100.00916.88
8.0.20.0080.01017.40
8.0.10.0000.00717.12
8.0.00.0100.00916.74
7.4.330.0050.00015.05
7.4.320.0030.00316.43
7.4.300.0000.00716.59
7.4.290.0040.00416.50
7.4.280.0000.00616.51
7.4.270.0030.00316.42
7.4.260.0110.00016.58
7.4.250.0050.00216.49
7.4.240.0070.00016.53
7.4.230.0000.00716.61
7.4.220.0110.00716.71
7.4.210.0070.01116.54
7.4.200.0040.00416.39
7.4.190.0000.00716.55
7.4.160.0040.01216.38
7.4.150.0070.01017.40
7.4.140.0130.00417.86
7.4.130.0100.01216.46
7.4.120.0080.00916.63
7.4.110.0140.00416.45
7.4.100.0120.00616.57
7.4.90.0060.01216.51
7.4.80.0070.01419.39
7.4.70.0120.00916.48
7.4.60.0100.00616.48
7.4.50.0000.00816.57
7.4.40.0100.00722.77
7.4.30.0050.01316.32
7.4.10.0100.00715.10
7.4.00.0100.00814.88
7.3.330.0000.00513.43
7.3.320.0020.00213.45
7.3.310.0030.00316.23
7.3.300.0040.00416.44
7.3.290.0140.00316.43
7.3.280.0080.01116.38
7.3.270.0090.00617.40
7.3.260.0130.00816.35
7.3.250.0070.01016.54
7.3.240.0070.01016.71
7.3.230.0190.00316.46
7.3.210.0120.00916.65
7.3.200.0080.00819.39
7.3.190.0120.00416.33
7.3.180.0090.00916.57
7.3.170.0070.00716.35
7.3.160.0030.01316.32
7.3.130.0030.00714.64
7.3.120.0100.00614.80
7.3.110.0120.00314.82
7.3.100.0100.00714.97
7.3.90.0000.01415.02
7.3.80.0070.00714.93
7.3.70.0030.00914.63
7.3.60.0070.01015.03
7.3.50.0050.00514.87
7.3.40.0080.00814.95
7.3.30.0070.00715.03
7.3.20.0080.00016.80
7.3.10.0060.00616.65
7.3.00.0090.00416.70
7.2.330.0140.00816.50
7.2.320.0100.00716.76
7.2.310.0070.01416.54
7.2.300.0030.01316.72
7.2.290.0000.01616.56
7.2.260.0070.01014.89
7.2.250.0040.01515.28
7.2.240.0000.01315.04
7.2.230.0070.00715.14
7.2.220.0030.01315.16
7.2.210.0100.00315.02
7.2.200.0110.00815.16
7.2.190.0090.00615.05
7.2.180.0000.01115.15
7.2.170.0080.00815.14
7.2.160.0030.01015.01
7.2.150.0090.00617.08
7.2.140.0100.00717.18
7.2.130.0070.00716.96
7.2.120.0100.00516.78
7.2.110.0080.00516.85
7.2.100.0000.00916.95
7.2.90.0080.00816.96
7.2.80.0050.00916.83
7.2.70.0100.00316.84
7.2.60.0060.00717.01
7.2.50.0040.00816.78
7.2.40.0070.00716.93
7.2.30.0030.00916.71
7.2.20.0020.01016.82
7.2.10.0100.00516.92
7.2.00.0090.00616.98
7.1.330.0040.01115.83
7.1.320.0070.01016.03
7.1.310.0040.00815.92
7.1.300.0060.00315.84
7.1.290.0030.01015.83
7.1.280.0000.01715.87
7.1.270.0030.00715.59
7.1.260.0060.00615.96
7.1.250.0080.00415.66
7.1.240.0050.00815.74
7.1.230.0060.00515.79
7.1.220.0060.00315.78
7.1.210.0020.01115.49
7.1.200.0040.00715.79
7.1.190.0030.00815.77
7.1.180.0100.00415.58
7.1.170.0030.01215.78
7.1.160.0060.01015.77
7.1.150.0060.00515.89
7.1.140.0060.00815.81
7.1.130.0060.00615.80
7.1.120.0030.01115.85
7.1.110.0060.01015.94
7.1.100.0070.00715.72
7.1.90.0070.00515.87
7.1.80.0100.00515.70
7.1.70.0040.00716.23
7.1.60.0100.00617.03
7.1.50.0060.00716.14
7.1.40.0050.00815.56
7.1.30.0070.00715.61
7.1.20.0050.00715.87
7.1.10.0030.00915.77
7.1.00.0040.01717.96
7.0.330.0040.00815.23
7.0.320.0050.00615.14
7.0.310.0040.00715.31
7.0.300.0050.00515.34
7.0.290.0050.00815.33
7.0.280.0040.00715.33
7.0.270.0050.00715.26
7.0.260.0080.00515.49
7.0.250.0070.00715.41
7.0.240.0060.00615.20
7.0.230.0060.00315.36
7.0.220.0070.00715.34
7.0.210.0060.01015.36
7.0.200.0030.00815.83
7.0.190.0040.00615.49
7.0.180.0050.00715.36
7.0.170.0090.00715.57
7.0.160.0020.01215.36
7.0.150.0050.00615.22
7.0.140.0040.02817.71
7.0.130.0050.00715.33
7.0.120.0090.00615.39
7.0.110.0030.00815.38
7.0.100.0030.00815.30
7.0.90.0060.00615.28
7.0.80.0030.00715.29
7.0.70.0050.00515.30
7.0.60.0070.02916.75
7.0.50.0050.03316.22
7.0.40.0030.02115.76
7.0.30.0110.02615.72
7.0.20.0110.02515.64
7.0.10.0150.03115.59
7.0.00.0090.02815.63
5.6.400.0030.01214.65
5.6.390.0030.01014.36
5.6.380.0050.00614.34
5.6.370.0070.00314.66
5.6.360.0050.01014.73
5.6.350.0050.00814.31
5.6.340.0060.00714.58
5.6.330.0080.00214.62
5.6.320.0050.00514.45
5.6.310.0060.00814.36
5.6.300.0050.00614.53
5.6.290.0090.00514.36
5.6.280.0050.02816.48
5.6.270.0080.00914.40
5.6.260.0090.00614.31
5.6.250.0000.01014.47
5.6.240.0030.01014.55
5.6.230.0030.00814.36
5.6.220.0040.01114.36
5.6.210.0060.03016.39
5.6.200.0070.03215.59
5.6.190.0060.01616.43
5.6.180.1480.01416.46
5.6.170.0090.02216.42
5.6.160.0030.02716.19
5.6.150.0030.02015.59
5.6.140.0050.02415.58
5.6.130.0050.02815.63
5.6.120.0090.02516.59
5.6.110.0070.03116.50
5.6.100.0090.03016.47
5.6.90.0070.03116.60
5.6.80.0080.02116.42
5.6.70.1430.01716.33
5.6.60.0040.00914.12
5.6.50.0060.00714.18
5.6.40.0110.00614.30
5.6.30.0080.00814.13
5.6.20.0060.01014.19
5.6.10.0050.00814.44
5.6.00.0090.00414.10
5.5.380.0060.00412.88
5.5.370.0050.00312.83
5.5.360.0000.01012.95
5.5.350.0110.02615.31
5.5.340.0040.02414.60
5.5.330.0060.01715.30
5.5.320.0140.02015.21
5.5.310.0140.02215.31
5.5.300.0060.02214.46
5.5.290.0060.02914.54
5.5.280.0070.02715.40
5.5.270.0050.03115.45
5.5.260.0100.03015.50
5.5.250.0030.02415.34
5.5.240.0070.02915.17
5.5.230.0100.00212.65
5.5.220.0040.00612.65
5.5.210.0050.00312.67
5.5.200.0100.00412.91
5.5.190.0050.00912.75
5.5.180.0060.00512.78
5.5.170.0030.01012.76
5.5.160.0080.00512.82
5.5.150.0030.00812.53
5.5.140.0070.00512.68
5.5.130.0020.01012.55
5.5.120.0050.00512.72
5.5.110.0030.00812.74
5.5.100.0030.00712.71
5.5.90.0010.00812.78
5.5.80.0040.00612.82
5.5.70.0040.00412.82
5.5.60.0070.00312.49
5.5.50.0030.00512.49
5.5.40.0030.00912.75
5.5.30.0030.00612.59
5.5.20.0070.00412.57
5.5.10.0030.00612.72
5.5.00.0050.00712.86
5.4.450.0130.02114.30
5.4.440.0360.02114.30
5.4.430.0070.03114.23
5.4.420.0080.01914.25
5.4.410.0090.01914.26
5.4.400.0050.02214.12
5.4.390.0050.02114.18
5.4.380.0030.02314.06
5.4.370.0040.01814.00
5.4.360.0080.01413.99
5.4.350.0040.02011.80
5.4.340.0050.01711.80
5.4.330.0060.00411.78
5.4.320.0050.01411.96
5.4.310.0050.01911.96
5.4.300.0050.01811.96
5.4.290.0060.01811.96
5.4.280.0040.01811.93
5.4.270.0040.01711.93
5.4.260.0050.01811.93
5.4.250.0050.02714.16
5.4.240.0090.01714.12
5.4.230.0040.02214.12
5.4.220.0010.02814.08
5.4.210.0040.02914.02
5.4.200.0070.02814.05
5.4.190.0090.02014.08
5.4.180.0060.02814.13
5.4.170.0050.02114.06
5.4.160.0030.02114.05
5.4.150.0040.02414.09
5.4.140.0030.02213.26
5.4.130.0080.01713.27
5.4.120.0040.02613.26
5.4.110.0080.01913.27
5.4.100.0070.01813.32
5.4.90.0050.01913.35
5.4.80.0100.02113.38
5.4.70.0040.02813.29
5.4.60.0040.02013.29
5.4.50.0060.01913.28
5.4.40.0040.01913.35
5.4.30.0060.01813.25
5.4.20.0030.02013.29
5.4.10.0050.02113.24
5.4.00.0090.01613.13
5.3.290.0050.01612.06
5.3.280.0030.02412.66
5.3.270.0030.02912.74
5.3.260.0040.02112.67
5.3.250.0060.02112.74
5.3.240.0020.02412.67
5.3.230.0020.02412.69
5.3.220.0070.02212.66
5.3.210.0020.02512.65
5.3.200.0030.02112.66
5.3.190.0070.02012.68
5.3.180.0130.01812.72
5.3.170.0040.02112.67
5.3.160.0030.02212.69
5.3.150.0040.02712.68
5.3.140.0040.02312.65
5.3.130.0020.02312.61
5.3.120.0050.03012.67
5.3.110.0070.02012.67
5.3.100.0040.02212.44
5.3.90.0030.02312.47
5.3.80.0080.02012.53
5.3.70.0020.02312.54
5.3.60.0110.01412.48
5.3.50.0030.02212.43
5.3.40.0030.02412.41
5.3.30.0040.02112.38
5.3.20.0040.01812.38
5.3.10.0020.02212.29
5.3.00.0060.02312.37
5.2.170.0040.02911.15
5.2.160.0020.02411.27
5.2.150.0050.02311.16
5.2.140.0030.02311.19
5.2.130.0030.02111.22
5.2.120.0030.02311.22
5.2.110.0050.02011.14
5.2.100.0030.02111.18
5.2.90.0030.02211.05
5.2.80.0020.02511.18
5.2.70.0030.03311.22
5.2.60.0070.02211.15
5.2.50.0080.02011.10
5.2.40.0030.02311.08
5.2.30.0020.02511.05
5.2.20.0050.02811.15
5.2.10.0080.02011.05
5.2.00.0060.01810.90
5.1.60.0020.02110.62
5.1.50.0050.01810.56
5.1.40.0050.02010.62
5.1.30.0070.02310.73
5.1.20.0020.03110.81
5.1.10.0050.01810.63
5.1.00.0010.02310.67
5.0.50.0020.0199.89
5.0.40.0030.0159.77
5.0.30.0010.0239.80
5.0.20.0060.0129.66
5.0.10.0030.0159.59
5.0.00.0040.0219.69
4.4.90.0050.0109.31
4.4.80.0050.0159.31
4.4.70.0040.0129.31
4.4.60.0040.0109.31
4.4.50.0000.0149.31
4.4.40.0030.0189.31
4.4.30.0000.0149.31
4.4.20.0030.0179.31
4.4.10.0010.0149.31
4.4.00.0000.0299.31
4.3.110.0000.0159.31
4.3.100.0000.0159.31
4.3.90.0020.0129.31
4.3.80.0030.0169.31
4.3.70.0070.0139.31
4.3.60.0050.0159.31
4.3.50.0000.0149.31
4.3.40.0020.0189.31
4.3.30.0000.0149.31
4.3.20.0030.0119.31
4.3.10.0000.0149.31
4.3.00.0060.00812.85

preferences:
47.67 ms | 400 KiB | 5 Q