3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = get_magic_quotes_gpc(); $b = ini_get("magic_quotes_gpc"); var_dump($a); var_dump($b); echo "1) ".get_magic_quotes_gpc()." >> "; echo "2) ".ini_get("magic_quotes_gpc")." >> "; echo "1) ".get_magic_quotes_runtime()." >> "; echo "2) ".ini_get("magic_quotes_runtime")." >> "; @ini_set('magic_quotes_runtime', 1); echo "2) ".ini_get("magic_quotes_runtime")." >> "; $str = "'\""; $arr = array(); $arr[] = "string : ".$str; $arr[] = "addslashes : ".addslashes($str); $arr[] = "stripslashes : ".stripslashes($str); $arr[] = "htmlentities : ".htmlentities($str); $arr[] = "testing : '".$str."'"; print_r($arr);

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.0100.00316.88
8.3.50.0090.00917.51
8.3.40.0150.00018.88
8.3.30.0140.00318.88
8.3.20.0080.00018.96
8.3.10.0000.00820.50
8.3.00.0050.00517.48
8.2.180.0040.01816.63
8.2.170.0110.01118.65
8.2.160.0100.01022.96
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00419.83
8.2.110.0060.00320.57
8.2.100.0030.00917.72
8.2.90.0070.00019.09
8.2.80.0080.00017.97
8.2.70.0000.00817.59
8.2.60.0040.00417.92
8.2.50.0030.00618.07
8.2.40.0000.00718.22
8.2.30.0080.00017.91
8.2.20.0080.00017.54
8.2.10.0000.00819.57
8.2.00.0000.00817.61
8.1.280.0110.00725.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0130.00517.46
8.1.230.0060.00617.42
8.1.220.0040.00418.77
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00817.16
8.1.180.0100.00018.10
8.1.170.0030.00618.72
8.1.160.0040.00418.69
8.1.150.0050.00218.50
8.1.140.0080.00017.33
8.1.130.0000.00717.74
8.1.120.0040.00417.31
8.1.110.0040.00417.29
8.1.100.0000.00717.29
8.1.90.0000.00717.38
8.1.80.0030.00517.27
8.1.70.0070.00017.29
8.1.60.0030.00617.50
8.1.50.0040.00417.34
8.1.40.0040.00417.38
8.1.30.0060.00317.48
8.1.20.0030.00517.53
8.1.10.0030.00617.51
8.1.00.0000.00817.46
8.0.300.0000.00719.89
8.0.290.0030.00616.75
8.0.280.0000.00718.39
8.0.270.0040.00317.16
8.0.260.0030.00316.75
8.0.250.0070.00017.03
8.0.240.0040.00416.96
8.0.230.0040.00416.93
8.0.220.0040.00416.94
8.0.210.0000.00716.81
8.0.200.0050.00516.98
8.0.190.0060.00316.84
8.0.180.0000.00716.89
8.0.170.0000.00816.80
8.0.160.0000.00716.98
8.0.150.0050.00316.86
8.0.140.0060.00616.82
8.0.130.0060.00013.34
8.0.120.0000.00716.75
8.0.110.0050.00316.89
8.0.100.0040.00416.84
8.0.90.0000.00716.73
8.0.80.0090.00616.88
8.0.70.0020.00516.91
8.0.60.0030.00616.73
8.0.50.0050.00216.77
8.0.30.0090.01016.96
8.0.20.0130.00817.23
8.0.10.0040.00417.02
8.0.00.0110.00716.84
7.4.330.0030.00313.05
7.4.320.0000.00616.59
7.4.300.0000.00616.45
7.4.290.0000.00716.53
7.4.280.0030.00616.55
7.4.270.0030.00316.57
7.4.260.0050.00013.29
7.4.250.0000.00916.39
7.4.240.0030.00316.43
7.4.230.0000.00716.68
7.4.220.0100.00716.60
7.4.210.0080.00716.53
7.4.200.0000.00716.58
7.4.190.0040.00416.43
7.4.160.0030.01316.48
7.4.150.0130.00616.41
7.4.140.0080.00916.37
7.4.130.0090.01016.45
7.4.120.0060.01116.44
7.4.110.0140.00716.53
7.4.100.0080.00916.63
7.4.90.0070.01116.59
7.4.80.0080.00816.66
7.4.70.0140.00516.58
7.4.60.0030.01416.79
7.4.50.0060.00316.63
7.4.40.0070.00316.59
7.4.30.0060.01116.49
7.4.00.0030.01015.21
7.3.330.0000.00613.18
7.3.320.0050.00013.07
7.3.310.0030.00316.33
7.3.300.0000.00616.29
7.3.290.0000.01916.31
7.3.280.0060.01216.29
7.3.270.0060.01116.57
7.3.260.0100.01316.49
7.3.250.0100.00916.30
7.3.240.0140.00716.58
7.3.230.0030.01216.29
7.3.210.0060.01016.27
7.3.200.0090.00619.39
7.3.190.0150.00716.63
7.3.180.0000.01616.54
7.3.170.0130.00316.25
7.3.160.0120.00416.42
7.3.120.0070.01014.97
7.3.110.0040.00414.73
7.3.100.0040.00814.55
7.3.90.0070.00714.95
7.3.80.0030.01014.64
7.3.70.0080.00814.85
7.3.60.0030.01214.80
7.3.50.0100.00714.82
7.3.40.0060.00914.61
7.3.30.0070.00714.63
7.3.20.0070.01016.63
7.3.10.0100.00016.40
7.3.00.0060.00316.47
7.2.330.0160.00316.79
7.2.320.0110.00616.83
7.2.310.0140.00416.76
7.2.300.0030.01416.79
7.2.290.0100.01316.62
7.2.240.0030.00915.31
7.2.230.0060.00614.95
7.2.220.0060.00915.05
7.2.210.0000.01615.22
7.2.200.0100.00714.92
7.2.190.0040.01115.01
7.2.180.0080.00415.04
7.2.170.0030.01014.84
7.2.160.0030.00715.07
7.2.150.0030.01416.69
7.2.140.0040.01116.79
7.2.130.0040.01116.92
7.2.120.0000.00916.66
7.2.110.0030.01016.77
7.2.100.0120.00316.94
7.2.90.0070.00416.90
7.2.80.0030.01016.88
7.2.70.0030.01016.81
7.2.60.0030.00916.95
7.2.50.0070.01116.73
7.2.40.0000.01216.76
7.2.30.0070.01016.88
7.2.20.0040.01216.67
7.2.10.0030.00916.99
7.2.00.0030.01118.26
7.1.330.0070.00015.79
7.1.320.0030.00615.48
7.1.310.0070.00315.56
7.1.300.0040.00415.54
7.1.290.0090.00315.88
7.1.280.0000.00715.78
7.1.270.0070.00715.63
7.1.260.0090.00615.68
7.1.250.0040.00715.85
7.1.100.0030.00918.12
7.1.70.0000.00817.27
7.1.60.0190.00619.40
7.1.50.0060.01616.74
7.1.00.0030.07722.31
7.0.200.0000.00816.84
7.0.140.0070.07321.98
7.0.120.0070.07322.06
7.0.60.0100.03719.96
7.0.50.0030.04017.98
7.0.40.0100.05020.23
7.0.30.0300.05020.09
7.0.20.0230.05720.15
7.0.10.0070.05020.36
7.0.00.0030.08720.26
5.6.280.0030.07321.07
5.6.210.0070.07720.61
5.6.200.0070.04318.28
5.6.190.0070.04020.63
5.6.180.4230.03720.52
5.6.170.0230.05720.46
5.6.160.0030.07320.52
5.6.150.0030.04018.28
5.6.140.0100.07718.21
5.6.130.0100.07718.18
5.6.120.0030.04021.13
5.6.110.0170.07721.00
5.6.100.0070.07021.13
5.6.90.0030.04021.11
5.6.80.0070.06720.29
5.6.70.3870.03320.52
5.5.350.0330.06720.42
5.5.340.0170.07317.93
5.5.330.0070.05720.21
5.5.320.4100.03020.27
5.5.310.0230.08320.18
5.5.300.0030.08017.95
5.5.290.0000.04318.02
5.5.280.0100.06320.90
5.5.270.0030.04020.89
5.5.260.0070.04320.79
5.5.250.0100.07720.70
5.5.240.0170.04020.27
5.4.450.0030.04719.30
5.4.440.0000.05319.18
5.4.430.0070.04019.46
5.4.420.0000.04319.47
5.4.410.0030.04319.34
5.4.400.0070.03718.98
5.4.390.0070.03718.85
5.4.380.0100.05719.15
5.4.370.0070.07319.25
5.4.360.0170.06319.14
5.4.350.0230.06019.12
5.4.340.0130.05319.12
5.4.320.0100.05018.92
5.4.310.0100.06719.08
5.4.300.0070.04319.04
5.4.290.0070.07719.07
5.4.280.0030.08018.85
5.4.270.0070.05718.87
5.4.260.0000.04318.86
5.4.250.0070.06019.14
5.4.240.0000.04018.84
5.4.230.0070.06719.07
5.4.220.0030.04019.19
5.4.210.0070.06318.84
5.4.200.0100.03319.15
5.4.190.0000.04318.84
5.4.180.0000.04018.88
5.4.170.0030.03719.20
5.4.160.0100.03019.18
5.4.150.0000.04019.12
5.4.140.0000.03716.38
5.4.130.0000.04016.39
5.4.120.0100.03016.50
5.4.110.0000.03716.35
5.4.100.0000.03716.37
5.4.90.0000.04316.46
5.4.80.0030.04016.30
5.4.70.0000.03716.46
5.4.60.0070.03016.40
5.4.50.0030.03716.44
5.4.40.0000.03716.36
5.4.30.0000.03716.50
5.4.20.0030.03316.38
5.4.10.0000.03716.36
5.4.00.0000.03715.74
5.3.290.0100.06014.68
5.3.280.0030.04014.63
5.3.270.0030.04314.66
5.3.260.0070.03714.60
5.3.250.0070.03314.61
5.3.240.0000.04714.55
5.3.230.0030.03714.74
5.3.220.0030.03714.46
5.3.210.0070.03314.60
5.3.200.0070.03314.56
5.3.190.0100.03014.58
5.3.180.0100.03014.49
5.3.170.0000.04314.60
5.3.160.0030.03714.60
5.3.150.0000.04714.61
5.3.140.0070.03714.63
5.3.130.0030.03714.55
5.3.120.0030.03714.44
5.3.110.0070.03714.47
5.3.100.0030.03714.09
5.3.90.0000.03714.04
5.3.80.0030.03313.97
5.3.70.0000.03713.91
5.3.60.0070.05714.00
5.3.50.0100.02713.84
5.3.40.0000.03714.02
5.3.30.0030.03313.96
5.3.20.0100.02713.69
5.3.10.0030.03313.61
5.3.00.0030.03713.64
5.2.170.0000.03011.19
5.2.160.0000.03311.12
5.2.150.0100.02311.12
5.2.140.0000.03011.03
5.2.130.0070.02311.27
5.2.120.0070.02311.11
5.2.110.0000.03011.02
5.2.100.0030.03711.00
5.2.90.0030.02711.11
5.2.80.0070.02311.15
5.2.70.0100.03011.08
5.2.60.0030.05710.95
5.2.50.0030.03311.02
5.2.40.0000.05311.07
5.2.30.0070.05310.97
5.2.20.0030.06011.12
5.2.10.0030.05710.94
5.2.00.0030.02710.73
5.1.60.0030.0509.99
5.1.50.0030.03310.17
5.1.40.0100.03310.02
5.1.30.0030.05710.37
5.1.20.0030.05710.37
5.1.10.0070.05310.14
5.1.00.0070.05710.05
5.0.50.0070.0438.60
5.0.40.0070.0308.57
5.0.30.0030.0338.25
5.0.20.0030.0438.20
5.0.10.0030.0278.20
5.0.00.0030.0608.23
4.4.90.0030.0338.20
4.4.80.0000.0278.20
4.4.70.0000.0278.20
4.4.60.0070.0178.20
4.4.50.0030.0338.20
4.4.40.0000.0478.20
4.4.30.0000.0338.20
4.4.20.0000.0408.20
4.4.10.0070.0308.20
4.4.00.0000.0408.20
4.3.110.0000.0178.20
4.3.100.0000.0208.20
4.3.90.0070.0308.20
4.3.80.0000.0408.20
4.3.70.0030.0238.20
4.3.60.0070.0338.20
4.3.50.0030.0338.20
4.3.40.0000.0508.20
4.3.30.0030.0378.20
4.3.20.0000.0308.20
4.3.10.0000.0208.20
4.3.00.0030.0208.20

preferences:
36.84 ms | 400 KiB | 5 Q