3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Source: https://bugs.php.net/bug.php?id=63898 $key = "Foo " . chr(163); $array = array($key => ""); print_r($array); $json = json_encode($array); echo $json."\n"; print_r(json_decode($json)); $x = 'Audio Pass: Get live NFL game audio while you’re on the road with Audio Pass.'; var_dump(htmlentities($x)); var_dump(htmlentities($x, ENT_COMPAT | ENT_SUBSTITUTE, 'ISO-8859-1'));

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.0000.01416.50
8.3.50.0110.01122.83
8.3.40.0090.00918.55
8.3.30.0100.00319.17
8.3.20.0000.00720.20
8.3.10.0030.00623.57
8.3.00.0030.00619.13
8.2.180.0130.01018.26
8.2.170.0100.00322.96
8.2.160.0070.00719.29
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0020.00526.16
8.2.120.0080.00021.00
8.2.110.0000.00820.35
8.2.100.0120.00018.16
8.2.90.0080.00019.21
8.2.80.0090.00017.97
8.2.70.0030.00517.50
8.2.60.0000.00818.15
8.2.50.0030.00618.07
8.2.40.0110.00218.03
8.2.30.0050.00318.13
8.2.20.0000.00717.65
8.2.10.0000.00718.07
8.2.00.0000.00817.80
8.1.280.0040.01125.92
8.1.270.0060.00323.88
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00022.05
8.1.230.0070.00319.01
8.1.220.0090.00017.79
8.1.210.0060.00318.77
8.1.200.0000.01017.23
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0040.00421.95
8.1.150.0040.00418.87
8.1.140.0040.00417.30
8.1.130.0040.00417.73
8.1.120.0080.00017.40
8.1.110.0040.00417.44
8.1.100.0000.00717.38
8.1.90.0000.00817.36
8.1.80.0070.00017.33
8.1.70.0030.00317.28
8.1.60.0080.00017.35
8.1.50.0030.00617.47
8.1.40.0000.00917.33
8.1.30.0050.00317.56
8.1.20.0040.00417.63
8.1.10.0000.00717.52
8.1.00.0040.00417.55
8.0.300.0000.00818.77
8.0.290.0060.00316.75
8.0.280.0040.00418.38
8.0.270.0030.00717.36
8.0.260.0000.00818.50
8.0.250.0070.00016.91
8.0.240.0000.00916.82
8.0.230.0030.00316.96
8.0.220.0050.00316.88
8.0.210.0030.00516.95
8.0.200.0030.00316.97
8.0.190.0000.00716.92
8.0.180.0050.00316.91
8.0.170.0050.00316.82
8.0.160.0040.00416.76
8.0.150.0000.00716.83
8.0.140.0070.00016.76
8.0.130.0050.00013.28
8.0.120.0090.00016.89
8.0.110.0050.00316.88
8.0.100.0000.00716.79
8.0.90.0040.00416.88
8.0.80.0080.01516.91
8.0.70.0000.00716.91
8.0.60.0070.00016.71
8.0.50.0000.00716.88
8.0.30.0110.00817.00
8.0.20.0070.01217.40
8.0.10.0000.00716.96
8.0.00.0060.01516.75
7.4.330.0020.00315.00
7.4.320.0030.00316.43
7.4.300.0000.00716.53
7.4.290.0030.00316.53
7.4.280.0040.00416.34
7.4.270.0030.00316.51
7.4.260.0000.00716.44
7.4.250.0030.00516.54
7.4.240.0030.00316.50
7.4.230.0000.00716.44
7.4.220.0080.01116.43
7.4.210.0150.00316.61
7.4.200.0020.00516.42
7.4.160.0130.00316.29
7.4.150.0090.00917.40
7.4.140.0120.00517.86
7.4.130.0100.00716.52
7.4.120.0090.01216.51
7.4.110.0040.01716.24
7.4.100.0120.00616.28
7.4.90.0140.00316.58
7.4.80.0090.01519.39
7.4.70.0100.00716.50
7.4.60.0060.01016.33
7.4.50.0050.00016.36
7.4.40.0140.00516.41
7.4.30.0060.01016.43
7.4.00.0060.01114.80
7.3.330.0030.00313.18
7.3.320.0070.00013.09
7.3.310.0030.00316.29
7.3.300.0070.00016.32
7.3.290.0090.00516.24
7.3.280.0060.00916.22
7.3.270.0060.01517.40
7.3.260.0160.00316.35
7.3.250.0060.01216.46
7.3.240.0120.00916.37
7.3.230.0110.01016.39
7.3.210.0090.00616.33
7.3.200.0040.01219.39
7.3.190.0120.00416.54
7.3.180.0040.01616.22
7.3.170.0100.00716.43
7.3.160.0060.00916.31
7.3.120.0060.01214.50
7.3.110.0070.00714.87
7.3.100.0090.00314.84
7.3.90.0070.01014.96
7.3.80.0070.01014.93
7.3.70.0060.00614.80
7.3.60.0080.00014.96
7.3.50.0080.00414.89
7.3.40.0070.00714.70
7.3.30.0090.00614.86
7.3.20.0100.00316.64
7.3.10.0000.01416.59
7.3.00.0100.00616.45
7.2.330.0140.00616.71
7.2.320.0140.00316.39
7.2.310.0100.01416.39
7.2.300.0120.00616.47
7.2.290.0060.01016.59
7.2.250.0070.01015.21
7.2.240.0030.01614.82
7.2.230.0070.00714.86
7.2.220.0060.01015.10
7.2.210.0030.01214.95
7.2.200.0100.00714.74
7.2.190.0060.00614.73
7.2.180.0110.00414.77
7.2.170.0070.00714.66
7.2.60.0030.01016.86
7.1.330.0070.01015.96
7.1.320.0050.01215.93
7.1.310.0030.01015.73
7.1.300.0030.01015.90
7.1.290.0040.01115.68
7.1.280.0070.00715.82
7.1.270.0000.01015.81
7.1.260.0060.00815.69
7.1.200.0040.01115.80
7.1.70.0070.00317.30
7.1.60.0130.01019.46
7.1.50.0090.00916.98
7.1.00.0000.08022.40
7.0.200.0050.00216.89
7.0.140.0070.07021.95
7.0.90.0130.04320.02
7.0.80.0070.08319.87
7.0.70.0470.06719.85
7.0.60.0670.07719.88
7.0.50.0270.08020.28
7.0.40.0100.08020.13
7.0.30.0030.06320.09
7.0.20.0030.04319.95
7.0.10.0030.05720.02
7.0.00.0130.07720.07
5.6.280.0070.07021.02
5.6.240.0100.07020.70
5.6.230.0100.06020.50
5.6.220.0070.08320.66
5.6.210.0030.05720.45
5.6.200.0130.03321.04
5.6.190.0030.07721.11
5.6.180.0070.05321.17
5.6.170.0070.08721.00
5.6.160.0030.05321.05
5.6.150.0100.04721.13
5.6.140.0030.05720.95
5.6.130.0200.07721.07
5.6.120.0070.05721.11
5.6.110.0130.08021.03
5.6.100.0070.07721.12
5.6.90.0100.07020.98
5.6.80.0070.04720.40
5.6.70.0100.07020.54
5.6.60.0100.05020.50
5.6.50.0070.08320.52
5.6.40.0130.06020.37
5.6.30.0100.07020.43
5.6.20.0130.07720.30
5.6.10.0070.08720.42
5.6.00.0100.07720.50
5.5.380.0070.04320.41
5.5.370.0070.08720.51
5.5.360.0070.08720.36
5.5.350.0070.07720.34
5.5.340.0070.04720.90
5.5.330.0070.08720.87
5.5.320.0100.06320.79
5.5.310.0100.04320.88
5.5.300.0070.05720.91
5.5.290.0070.04320.63
5.5.280.0100.08020.91
5.5.270.0030.09020.74
5.5.260.0030.09020.77
5.5.250.0030.08720.60
5.5.240.0070.07320.27
5.5.230.0000.08720.30
5.5.220.0000.07720.30
5.5.210.0100.07320.17
5.5.200.0130.07720.26
5.5.190.0100.08320.08
5.5.180.0030.06720.18
5.5.160.0070.07019.99
5.5.150.0170.06320.10
5.5.140.0100.07020.16
5.5.130.0170.07320.22
5.5.120.0070.06720.21
5.5.110.0170.07020.16
5.5.100.0200.06320.16
5.5.90.0030.08320.02
5.5.80.0100.04719.97
5.5.70.0100.07720.06
5.5.60.0100.07720.11
5.5.50.0100.07720.09
5.5.40.0130.04020.09
5.5.30.0100.07320.04
5.5.20.0130.06719.92
5.5.10.0070.05019.95
5.5.00.0070.06319.95
5.4.450.0100.08019.29
5.4.440.0200.06719.23
5.4.430.0030.08319.35
5.4.420.0070.07719.35
5.4.410.0170.06319.22
5.4.400.0030.06018.95
5.4.390.0070.04718.79
5.4.380.0030.06018.98
5.4.370.0100.06018.94
5.4.360.0030.04319.03
5.4.350.0170.05019.10
5.4.340.0100.03719.14
5.4.320.0100.04719.03
5.4.310.0030.06318.81
5.4.300.0130.07018.94
5.4.290.0070.07018.79
5.4.280.0130.05718.78
5.4.270.0170.05319.11
5.4.260.0030.08319.04
5.4.250.0030.05019.02
5.4.240.0030.06018.97
5.4.230.0100.07718.80
5.4.220.0130.06719.09
5.4.210.0070.07718.99
5.4.200.0100.06718.89
5.4.190.0130.06719.02
5.4.180.0100.07019.13
5.4.170.0030.08019.11
5.4.160.0100.06719.05
5.4.150.0030.04319.10
5.4.140.0030.03716.22
5.4.130.0070.05016.09
5.4.120.0030.07316.21
5.4.110.0130.07016.27
5.4.100.0100.07016.33
5.4.90.0030.07716.45
5.4.80.0070.04716.20
5.4.70.0070.04316.29
5.4.60.0100.04316.21
5.4.50.0070.08016.42
5.4.40.0030.04716.46
5.4.30.0130.05016.30
5.4.20.0100.05016.30
5.4.10.0130.03016.20
5.4.00.0030.06315.52
5.3.290.0000.08714.52
5.3.280.0070.08014.60
5.3.270.0070.08014.55
5.3.260.0070.06014.60
5.3.250.0070.06314.49
5.3.240.0000.05714.59
5.3.230.0030.05714.61
5.3.220.0000.08314.57
5.3.210.0130.06714.52
5.3.200.0030.07314.39
5.3.190.0100.04714.53
5.3.180.0000.04714.50
5.3.170.0100.07314.56
5.3.160.0100.06314.55
5.3.150.0030.04714.43
5.3.140.0030.07714.51
5.3.130.0030.05714.51
5.3.120.0070.08014.38
5.3.110.0130.06314.41
5.3.100.0030.09714.03
5.3.90.0100.04013.99
5.3.80.0170.06713.93
5.3.70.0070.05014.00
5.3.60.0200.05713.95
5.3.50.0030.08013.93
5.3.40.0170.06313.94
5.3.30.0130.06313.87
5.3.20.0100.06713.60
5.3.10.0070.06313.52
5.3.00.0100.05013.62
5.2.170.0070.03311.16
5.2.160.0070.05710.93
5.2.150.0030.06710.98
5.2.140.0070.05711.18
5.2.130.0070.06310.93
5.2.120.0130.04011.12
5.2.110.0070.06011.13
5.2.100.0000.05710.89
5.2.90.0030.04311.17
5.2.80.0070.03011.09
5.2.70.0030.03310.93
5.2.60.0030.05711.04
5.2.50.0030.03310.84
5.2.40.0030.03010.81
5.2.30.0030.04310.80
5.2.20.0000.03311.01
5.2.10.0000.03310.78
5.2.00.0030.03010.72
5.1.60.0100.0239.82
5.1.50.0030.0239.87
5.1.40.0000.0309.82
5.1.30.0070.02310.40
5.1.20.0030.03010.35
5.1.10.0030.0209.94
5.1.00.0030.02310.02
5.0.50.0000.0308.59
5.0.40.0000.0278.43
5.0.30.0000.0308.20
5.0.20.0000.0208.29
5.0.10.0000.0238.28
5.0.00.0030.0338.27
4.4.90.0000.0237.32
4.4.80.0000.0277.32
4.4.70.0030.0177.32
4.4.60.0000.0177.32
4.4.50.0030.0137.32
4.4.40.0030.0277.32
4.4.30.0030.0137.32
4.4.20.0030.0137.32
4.4.10.0000.0137.32
4.4.00.0000.0237.32
4.3.110.0000.0177.32
4.3.100.0000.0137.32
4.3.90.0000.0137.32
4.3.80.0000.0277.32
4.3.70.0000.0137.32
4.3.60.0000.0137.32
4.3.50.0000.0237.32
4.3.40.0000.0507.32
4.3.30.0000.0277.32
4.3.20.0030.0277.32
4.3.10.0030.0337.32
4.3.00.0000.0277.32

preferences:
39.88 ms | 401 KiB | 5 Q