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 => ""); var_dump($array); $json = json_encode($array); var_dump($json); $array2 = array($key); var_dump($array2, json_encode($array2)); var_dump(json_encode(array('hey now you’re dumb'))); /* $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')); var_dump(htmlentities($x, ENT_COMPAT | ENT_SUBSTITUTE, 'UTF-8')); */

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.0110.00418.31
8.3.50.0120.00522.84
8.3.40.0040.01118.68
8.3.30.0070.00718.96
8.3.20.0070.00020.04
8.3.10.0040.00423.65
8.3.00.0060.00319.15
8.2.180.0090.00618.54
8.2.170.0100.01022.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.98
8.2.110.0090.00020.47
8.2.100.0110.00018.19
8.2.90.0000.00819.21
8.2.80.0000.00917.97
8.2.70.0060.00317.75
8.2.60.0080.00018.05
8.2.50.0000.00818.07
8.2.40.0080.00018.16
8.2.30.0070.00018.09
8.2.20.0040.00417.78
8.2.10.0040.00418.03
8.2.00.0040.00417.73
8.1.280.0040.01125.92
8.1.270.0060.00323.87
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00623.75
8.1.230.0110.00018.80
8.1.220.0040.00417.78
8.1.210.0000.00918.77
8.1.200.0070.00317.23
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0080.00018.71
8.1.160.0070.00021.91
8.1.150.0070.00018.86
8.1.140.0050.00317.47
8.1.130.0000.00717.91
8.1.120.0030.00317.44
8.1.110.0070.00017.35
8.1.100.0000.00717.41
8.1.90.0040.00417.43
8.1.80.0030.00517.46
8.1.70.0030.00317.32
8.1.60.0060.00317.62
8.1.50.0080.00017.39
8.1.40.0070.00017.38
8.1.30.0000.00817.54
8.1.20.0040.00417.58
8.1.10.0000.00717.51
8.1.00.0000.00817.54
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0000.00718.43
8.0.270.0080.00017.24
8.0.260.0030.00317.28
8.0.250.0000.00716.84
8.0.240.0060.00316.82
8.0.230.0030.00316.92
8.0.220.0040.00416.78
8.0.210.0000.00716.91
8.0.200.0000.00616.85
8.0.190.0000.00816.95
8.0.180.0070.00016.98
8.0.170.0000.00716.88
8.0.160.0040.00316.81
8.0.150.0040.00416.90
8.0.140.0040.00416.73
8.0.130.0030.00313.24
8.0.120.0040.00416.72
8.0.110.0000.00816.89
8.0.100.0030.00516.93
8.0.90.0080.00016.82
8.0.80.0210.00016.91
8.0.70.0000.00716.68
8.0.60.0000.00716.69
8.0.50.0000.00816.69
8.0.30.0100.01017.11
8.0.20.0120.00717.40
8.0.10.0000.00717.03
8.0.00.0070.01016.64
7.4.330.0080.00015.00
7.4.320.0030.00316.59
7.4.300.0060.00016.48
7.4.290.0030.00516.57
7.4.280.0000.00816.48
7.4.270.0050.00316.63
7.4.260.0030.00316.51
7.4.250.0000.00816.52
7.4.240.0030.00316.43
7.4.230.0070.00016.54
7.4.220.0080.00916.47
7.4.210.0090.00816.54
7.4.200.0040.00416.59
7.4.160.0140.00316.42
7.4.150.0080.01217.40
7.4.140.0130.00817.86
7.4.130.0090.00816.49
7.4.120.0110.00616.52
7.4.110.0140.00416.38
7.4.100.0030.01316.36
7.4.90.0040.01216.31
7.4.80.0060.01019.39
7.4.70.0130.00416.50
7.4.60.0100.01316.43
7.4.50.0000.00516.49
7.4.40.0110.01116.55
7.4.30.0060.01016.40
7.4.00.0100.00714.83
7.3.330.0000.00513.17
7.3.320.0030.00313.14
7.3.310.0070.00016.29
7.3.300.0030.00316.10
7.3.290.0110.00316.29
7.3.280.0080.00916.22
7.3.270.0160.00317.40
7.3.260.0100.00716.27
7.3.250.0150.00216.35
7.3.240.0100.01316.56
7.3.230.0130.00316.43
7.3.210.0140.00316.34
7.3.200.0100.01319.39
7.3.190.0090.01316.16
7.3.180.0070.01016.63
7.3.170.0090.00916.36
7.3.160.0090.00616.24
7.2.330.0110.00716.48
7.2.320.0030.01316.77
7.2.310.0090.00816.70
7.2.300.0080.00816.71
7.2.290.0090.00916.65
7.2.60.0000.01516.95
7.2.00.0030.00618.96
7.1.200.0060.00615.80
7.1.100.0030.01017.73
7.1.70.0000.00817.09
7.1.60.0090.00317.33
7.1.50.0030.01716.66
7.1.00.0030.07722.44
7.0.200.0060.00316.90
7.0.140.0030.07322.07
7.0.90.0670.08019.92
7.0.80.0630.08319.86
7.0.70.0600.06319.85
7.0.60.0670.08019.88
7.0.50.0630.06020.34
7.0.40.0030.07020.11
7.0.30.0130.07720.19
7.0.20.0070.07720.11
7.0.10.0170.07020.16
7.0.00.0070.08020.16
5.6.280.0000.07721.02
5.6.240.0230.06720.70
5.6.230.0030.08020.60
5.6.220.0030.07020.49
5.6.210.0130.08020.61
5.6.200.0100.05321.10
5.6.190.0100.08021.02
5.6.180.0030.08321.04
5.6.170.0100.08021.03
5.6.160.0100.07021.03
5.6.150.0070.05021.07
5.6.140.0130.08021.06
5.6.130.0030.04721.00
5.6.120.0070.05321.09
5.6.110.0070.05321.02
5.6.100.0100.07321.09
5.6.90.0100.07721.08
5.6.80.0030.07720.33
5.6.70.0100.05020.46
5.6.60.0070.05320.30
5.6.50.0070.04020.55
5.6.40.0030.05320.29
5.6.30.0100.07320.45
5.6.20.0100.05320.28
5.6.10.0130.07320.35
5.6.00.0170.07320.29
5.5.380.0200.03720.29
5.5.370.0070.07320.48
5.5.360.0130.07320.38
5.5.350.0030.06720.39
5.5.340.0100.05020.77
5.5.330.0070.08320.88
5.5.320.0030.08320.80
5.5.310.0070.07020.81
5.5.300.0070.07320.87
5.5.290.0030.07720.76
5.5.280.0070.08720.72
5.5.270.0130.07320.87
5.5.260.0130.04320.87
5.5.250.0000.06020.57
5.5.240.0100.07020.25
5.5.230.0100.07020.25
5.5.220.0130.05720.14
5.5.210.0100.07720.20
5.5.200.0070.07319.98
5.5.190.0170.05720.27
5.5.180.0130.06720.27
5.5.160.0000.08320.23
5.5.150.0070.04720.26
5.5.140.0070.07320.25
5.5.130.0030.08320.22
5.5.120.0100.07020.09
5.5.110.0070.07320.09
5.5.100.0070.04320.11
5.5.90.0100.07319.97
5.5.80.0070.08020.06
5.5.70.0000.05020.10
5.5.60.0100.04719.93
5.5.50.0030.08020.05
5.5.40.0100.07319.88
5.5.30.0100.07720.13
5.5.20.0070.05720.02
5.5.10.0070.06320.07
5.5.00.0000.04319.96
5.4.450.0070.04019.53
5.4.440.0070.07719.39
5.4.430.0100.05719.27
5.4.420.0070.08319.11
5.4.410.0200.03319.01
5.4.400.0030.08319.08
5.4.390.0000.07319.13
5.4.380.0130.04018.96
5.4.370.0170.06319.05
5.4.360.0070.04319.03
5.4.350.0070.06319.03
5.4.340.0070.06319.07
5.4.320.0030.07019.13
5.4.310.0100.06719.02
5.4.300.0030.08318.96
5.4.290.0100.04018.96
5.4.280.0030.07019.02
5.4.270.0030.06719.04
5.4.260.0070.08019.14
5.4.250.0100.07319.11
5.4.240.0100.07319.12
5.4.230.0230.04018.78
5.4.220.0030.08019.11
5.4.210.0070.04319.14
5.4.200.0100.07319.12
5.4.190.0130.07019.05
5.4.180.0070.04718.89
5.4.170.0000.05319.04
5.4.160.0070.04019.01
5.4.150.0030.07719.02
5.4.140.0070.04316.13
5.4.130.0070.06316.23
5.4.120.0070.07016.21
5.4.110.0130.06716.21
5.4.100.0130.06016.25
5.4.90.0000.08016.30
5.4.80.0070.07016.41
5.4.70.0170.05716.24
5.4.60.0070.06716.24
5.4.50.0100.06316.34
5.4.40.0170.06016.24
5.4.30.0100.07016.24
5.4.20.0030.04716.41
5.4.10.0000.05016.23
5.4.00.0100.07315.68
5.3.290.0100.07714.66
5.3.280.0100.07314.55
5.3.270.0070.03714.54
5.3.260.0070.05714.44
5.3.250.0000.06314.54
5.3.240.0130.03714.61
5.3.230.0130.06314.41
5.3.220.0000.04314.53
5.3.210.0070.03314.40
5.3.200.0130.03714.56
5.3.190.0070.07714.56
5.3.180.0070.07714.55
5.3.170.0170.06014.57
5.3.160.0100.07714.52
5.3.150.0030.07014.55
5.3.140.0030.06014.52
5.3.130.0030.06714.51
5.3.120.0030.06314.46
5.3.110.0130.07314.53
5.3.100.0030.04713.96
5.3.90.0130.04014.00
5.3.80.0100.06313.95
5.3.70.0100.05313.96
5.3.60.0030.07013.86
5.3.50.0100.06713.95
5.3.40.0000.07713.95
5.3.30.0030.05313.86
5.3.20.0070.04313.60
5.3.10.0070.06313.60
5.3.00.0000.05013.63
5.2.170.0070.06011.14
5.2.160.0070.04311.13
5.2.150.0070.04011.06
5.2.140.0070.02711.17
5.2.130.0000.06711.13
5.2.120.0000.04710.89
5.2.110.0100.04010.93
5.2.100.0030.06011.14
5.2.90.0030.06311.09
5.2.80.0070.06310.95
5.2.70.0030.06310.96
5.2.60.0070.06311.11
5.2.50.0000.06711.00
5.2.40.0100.06010.99
5.2.30.0030.06310.96
5.2.20.0000.06010.75
5.2.10.0030.05010.89
5.2.00.0000.05310.71
5.1.60.0030.05310.04
5.1.50.0130.0239.83
5.1.40.0000.05710.04
5.1.30.0030.05310.39
5.1.20.0030.05710.26
5.1.10.0070.03710.10
5.1.00.0030.05310.09
5.0.50.0000.0508.53
5.0.40.0000.0478.41
5.0.30.0030.0608.21
5.0.20.0000.0308.27
5.0.10.0030.0478.27
5.0.00.0030.0338.14
4.4.90.0030.0236.86
4.4.80.0070.0306.86
4.4.70.0030.0306.86
4.4.60.0000.0376.86
4.4.50.0030.0336.86
4.4.40.0030.0506.86
4.4.30.0000.0206.86
4.4.20.0030.0336.86
4.4.10.0070.0276.86
4.4.00.0070.0536.86
4.3.110.0070.0306.86
4.3.100.0000.0236.86
4.3.90.0030.0136.86
4.3.80.0000.0576.86
4.3.70.0030.0306.86
4.3.60.0000.0376.86
4.3.50.0000.0306.86
4.3.40.0030.0476.86
4.3.30.0030.0376.86
4.3.20.0070.0306.86
4.3.10.0070.0306.86
4.3.00.0000.0176.86

preferences:
44.49 ms | 401 KiB | 5 Q