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 ' . chr(180) . ' 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.0120.00318.30
8.3.50.0110.00622.82
8.3.40.0080.00818.46
8.3.30.0090.00618.75
8.3.20.0080.00020.09
8.3.10.0000.00823.39
8.3.00.0030.00519.26
8.2.180.0140.00718.06
8.2.170.0130.00622.96
8.2.160.0070.00720.35
8.2.150.0000.00824.18
8.2.140.0050.00224.66
8.2.130.0160.00326.16
8.2.120.0000.00721.12
8.2.110.0030.00620.54
8.2.100.0040.00818.16
8.2.90.0040.00419.34
8.2.80.0060.00317.97
8.2.70.0090.00017.75
8.2.60.0000.00818.03
8.2.50.0000.00818.07
8.2.40.0000.00918.34
8.2.30.0040.00418.16
8.2.20.0040.00417.61
8.2.10.0000.00718.16
8.2.00.0040.00417.73
8.1.280.0070.00725.92
8.1.270.0040.00423.78
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0090.00023.68
8.1.230.0060.00619.22
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.01017.35
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0000.00918.59
8.1.160.0050.00221.95
8.1.150.0040.00418.92
8.1.140.0060.00317.35
8.1.130.0070.00017.73
8.1.120.0070.00017.39
8.1.110.0040.00417.48
8.1.100.0000.00717.32
8.1.90.0030.00317.35
8.1.80.0040.00417.44
8.1.70.0000.00617.32
8.1.60.0070.00017.62
8.1.50.0070.00017.34
8.1.40.0040.00417.52
8.1.30.0040.00417.51
8.1.20.0000.00817.59
8.1.10.0020.00517.46
8.1.00.0080.00017.50
8.0.300.0060.00318.77
8.0.290.0060.00316.75
8.0.280.0000.00818.34
8.0.270.0070.00017.23
8.0.260.0030.00317.23
8.0.250.0000.00716.83
8.0.240.0050.00216.85
8.0.230.0000.00716.95
8.0.220.0040.00416.84
8.0.210.0030.00316.86
8.0.200.0030.00316.97
8.0.190.0070.00016.89
8.0.180.0000.00716.90
8.0.170.0000.00816.89
8.0.160.0040.00416.86
8.0.150.0000.00816.78
8.0.140.0000.00716.79
8.0.130.0030.00313.30
8.0.120.0040.00416.86
8.0.110.0040.00416.90
8.0.100.0040.00416.70
8.0.90.0040.00416.70
8.0.80.0060.01016.89
8.0.70.0040.00416.75
8.0.60.0040.00416.74
8.0.50.0040.00416.75
8.0.30.0110.00817.23
8.0.20.0090.00917.40
8.0.10.0030.00616.90
8.0.00.0090.00916.62
7.4.330.0030.00315.00
7.4.320.0000.00616.47
7.4.300.0030.00316.63
7.4.290.0040.00416.48
7.4.280.0080.00016.57
7.4.270.0070.00016.42
7.4.260.0040.00416.46
7.4.250.0050.00316.45
7.4.240.0020.00516.59
7.4.230.0000.00716.33
7.4.220.0130.01016.65
7.4.210.0040.01116.41
7.4.200.0030.00316.70
7.4.160.0170.00016.40
7.4.150.0090.00917.40
7.4.140.0040.01517.86
7.4.130.0070.00916.49
7.4.120.0080.01016.56
7.4.110.0070.01016.48
7.4.100.0070.01016.33
7.4.90.0170.00016.38
7.4.80.0140.00619.39
7.4.70.0180.00016.37
7.4.60.0100.01016.41
7.4.50.0000.00816.55
7.4.40.0090.00916.63
7.4.30.0000.01616.49
7.4.00.0070.00915.05
7.3.330.0060.00013.05
7.3.320.0030.00313.22
7.3.310.0040.00416.36
7.3.300.0030.00316.30
7.3.290.0030.01616.24
7.3.280.0060.01016.35
7.3.270.0140.00417.40
7.3.260.0130.00916.44
7.3.250.0090.00916.54
7.3.240.0110.00616.35
7.3.230.0130.00316.39
7.3.210.0090.00916.37
7.3.200.0130.00419.39
7.3.190.0060.01616.38
7.3.180.0050.01116.55
7.3.170.0090.00616.58
7.3.160.0090.00616.34
7.3.120.0140.00414.89
7.3.110.0000.01914.64
7.3.100.0040.01614.77
7.3.90.0000.01315.02
7.3.80.0040.01114.85
7.3.70.0000.00814.75
7.3.60.0070.00715.03
7.3.50.0030.01014.52
7.3.40.0040.00714.84
7.3.30.0000.01514.74
7.3.20.0050.00516.45
7.3.10.0070.00816.43
7.3.00.0050.00816.48
7.2.330.0070.01016.75
7.2.320.0070.01016.74
7.2.310.0120.00616.51
7.2.300.0070.01016.57
7.2.290.0130.00716.61
7.2.250.0060.01214.68
7.2.240.0070.01114.61
7.2.230.0120.00315.07
7.2.220.0030.01415.21
7.2.210.0100.00714.59
7.2.200.0060.00614.82
7.2.190.0000.01014.89
7.2.180.0040.01114.88
7.2.170.0030.01015.00
7.2.160.0090.00614.71
7.2.150.0060.00616.97
7.2.140.0110.00316.88
7.2.130.0100.00616.87
7.2.120.0080.00616.73
7.2.110.0080.00616.84
7.2.100.0060.00816.73
7.2.90.0040.01216.83
7.2.80.0070.00516.75
7.2.70.0040.01016.76
7.2.60.0060.00716.88
7.2.50.0100.00416.99
7.2.40.0070.00516.82
7.2.30.0080.00816.88
7.2.20.0080.00616.72
7.2.10.0050.01016.78
7.2.00.0080.00817.67
7.1.330.0110.00615.87
7.1.320.0060.00915.86
7.1.310.0040.00815.53
7.1.300.0120.00015.84
7.1.290.0000.01515.77
7.1.280.0140.00015.88
7.1.270.0070.00715.91
7.1.260.0030.01315.54
7.1.250.0080.00615.65
7.1.240.0100.00315.60
7.1.230.0070.01115.88
7.1.220.0040.01115.82
7.1.210.0030.00715.78
7.1.200.0060.00515.78
7.1.190.0070.00715.95
7.1.180.0030.01015.84
7.1.170.0030.01015.69
7.1.160.0000.01115.62
7.1.150.0120.00315.94
7.1.140.0090.00015.62
7.1.130.0000.01415.63
7.1.120.0060.00615.88
7.1.110.0000.01115.66
7.1.100.0030.00817.00
7.1.90.0030.00715.88
7.1.80.0040.00915.89
7.1.70.0020.01116.54
7.1.60.0040.01017.53
7.1.50.0070.00916.37
7.1.40.0100.00616.03
7.1.30.0070.00715.91
7.1.20.0040.00815.57
7.1.10.0070.00716.05
7.1.00.0050.04419.14
7.0.330.0030.00615.05
7.0.320.0070.01015.38
7.0.310.0070.00715.61
7.0.300.0100.00315.39
7.0.290.0040.00815.29
7.0.280.0030.00715.30
7.0.270.0060.00615.36
7.0.260.0040.01115.33
7.0.250.0030.00715.63
7.0.240.0090.00615.33
7.0.230.0060.00615.53
7.0.220.0120.00615.34
7.0.210.0100.00215.52
7.0.200.0080.00416.15
7.0.190.0100.00515.45
7.0.180.0040.01115.54
7.0.170.0060.00315.31
7.0.160.0030.00715.18
7.0.150.0060.00615.41
7.0.140.0030.04118.75
7.0.130.0090.00315.56
7.0.120.0040.01115.29
7.0.110.0110.00315.24
7.0.100.0060.00315.44
7.0.90.0320.02717.71
7.0.80.0220.04617.59
7.0.70.0230.04617.54
7.0.60.0230.04517.63
7.0.50.0250.02017.80
7.0.40.0020.04716.71
7.0.30.0080.04416.85
7.0.20.0040.03016.78
7.0.10.0000.02816.70
7.0.00.0060.04616.69
5.6.400.0070.00714.38
5.6.390.0030.01314.07
5.6.380.0150.00014.49
5.6.370.0060.00814.17
5.6.360.0000.01314.52
5.6.350.0060.00914.60
5.6.340.0060.00614.30
5.6.330.0090.00314.46
5.6.320.0040.01514.31
5.6.310.0080.00814.24
5.6.300.0100.00014.52
5.6.290.0030.00614.29
5.6.280.0060.03917.72
5.6.270.0030.01314.16
5.6.260.0080.00414.35
5.6.250.0000.01514.34
5.6.240.0090.02817.52
5.6.230.0030.04417.26
5.6.220.0040.03517.58
5.6.210.0070.04417.52
5.6.200.0050.02217.58
5.6.190.0070.03917.66
5.6.180.0110.03017.60
5.6.170.0070.04317.71
5.6.160.0020.04217.67
5.6.150.0040.03117.67
5.6.140.0080.03717.73
5.6.130.0050.04717.56
5.6.120.0090.02717.63
5.6.110.0040.02017.75
5.6.100.0050.02817.63
5.6.90.0060.03117.74
5.6.80.0040.01917.40
5.6.70.0110.03817.44
5.6.60.0060.04617.21
5.6.50.0060.03217.29
5.6.40.0060.04517.25
5.6.30.0030.04117.20
5.6.20.0060.04517.31
5.6.10.0090.04217.28
5.6.00.0100.03717.24
5.5.380.0100.03817.36
5.5.370.0120.02517.32
5.5.360.0100.03217.36
5.5.350.0080.03717.16
5.5.340.0030.04317.38
5.5.330.0050.02217.50
5.5.320.0070.02217.56
5.5.310.0070.04917.52
5.5.300.0070.04217.49
5.5.290.0020.03917.45
5.5.280.0070.02017.56
5.5.270.0060.04617.45
5.5.260.0070.02317.60
5.5.250.0100.03717.31
5.5.240.0030.04417.17
5.5.230.0030.02517.22
5.5.220.0030.04617.11
5.5.210.0080.03417.03
5.5.200.0010.04617.10
5.5.190.0050.04517.18
5.5.180.0060.04817.34
5.5.170.0000.01314.13
5.5.160.0110.03417.12
5.5.150.0040.04417.13
5.5.140.0100.02217.22
5.5.130.0060.03117.20
5.5.120.0030.02317.23
5.5.110.0110.04017.29
5.5.100.0080.04017.13
5.5.90.0020.02517.09
5.5.80.0050.02416.94
5.5.70.0030.02717.13
5.5.60.0000.02317.02
5.5.50.0000.02817.04
5.5.40.0030.02317.17
5.5.30.0060.03017.00
5.5.20.0060.01817.07
5.5.10.0020.02517.10
5.5.00.0030.02316.81
5.4.450.0000.02516.16
5.4.440.0050.04216.18
5.4.430.0140.01216.18
5.4.420.0050.02216.11
5.4.410.0070.03016.13
5.4.400.0020.04216.04
5.4.390.0050.03615.94
5.4.380.0070.02716.02
5.4.370.0040.02515.98
5.4.360.0080.02016.04
5.4.350.0040.03616.02
5.4.340.0070.04015.98
5.4.330.0060.00612.93
5.4.320.0090.03715.98
5.4.310.0050.02716.03
5.4.300.0040.04015.99
5.4.290.0070.03916.00
5.4.280.0040.04215.86
5.4.270.0020.03516.04
5.4.260.0050.03815.95
5.4.250.0020.03515.98
5.4.240.0070.01816.00
5.4.230.0000.03215.99
5.4.220.0070.03215.98
5.4.210.0020.02315.87
5.4.200.0070.01716.03
5.4.190.0060.01515.98
5.4.180.0030.02015.94
5.4.170.0020.02516.02
5.4.160.0030.02015.98
5.4.150.0070.03316.02
5.4.140.0030.01714.58
5.4.130.0030.01814.47
5.4.120.0040.01914.62
5.4.110.0040.02614.68
5.4.100.0050.02014.62
5.4.90.0030.02514.57
5.4.80.0050.02014.57
5.4.70.0020.02014.68
5.4.60.0020.02314.69
5.4.50.0030.01514.62
5.4.40.0050.01714.66
5.4.30.0020.02514.71
5.4.20.0000.02114.55
5.4.10.0020.02414.61
5.4.00.0050.01914.35
5.3.290.0000.04014.62
5.3.280.0000.04314.55
5.3.270.0030.03714.44
5.3.260.0030.03714.56
5.3.250.0000.04014.61
5.3.240.0030.03314.46
5.3.230.0000.04014.55
5.3.220.0000.04014.40
5.3.210.0000.03714.44
5.3.200.0030.03014.43
5.3.190.0070.03314.59
5.3.180.0030.03714.43
5.3.170.0000.03714.52
5.3.160.0000.03314.41
5.3.150.0030.03014.55
5.3.140.0030.03714.54
5.3.130.0070.03014.41
5.3.120.0000.04714.52
5.3.110.0030.03014.54
5.3.100.0000.03314.02
5.3.90.0000.03314.02
5.3.80.0000.03314.03
5.3.70.0000.03314.02
5.3.60.0030.05713.99
5.3.50.0000.03313.80
5.3.40.0000.04013.94
5.3.30.0000.03013.81
5.3.20.0030.03013.64
5.3.10.0000.03313.51
5.3.00.0000.03013.63
5.2.170.0070.02310.98
5.2.160.0070.02310.96
5.2.150.0030.02310.98
5.2.140.0030.02710.97
5.2.130.0000.02311.02
5.2.120.0070.02311.02
5.2.110.0030.03010.89
5.2.100.0070.02311.08
5.2.90.0000.02711.09
5.2.80.0000.03311.09
5.2.70.0030.02310.96
5.2.60.0100.01711.04
5.2.50.0030.02311.07
5.2.40.0000.02710.94
5.2.30.0000.04710.89
5.2.20.0000.03310.82
5.2.10.0030.06310.88
5.2.00.0030.05710.63
5.1.60.0000.05010.07
5.1.50.0070.05010.05
5.1.40.0070.0539.81
5.1.30.0030.04010.23
5.1.20.0030.05710.35
5.1.10.0000.02310.04
5.1.00.0070.03710.07
5.0.50.0000.0308.61
5.0.40.0030.0208.43
5.0.30.0030.0638.06
5.0.20.0070.0238.27
5.0.10.0070.0408.24
5.0.00.0030.0608.14
4.4.90.0070.0237.03
4.4.80.0030.0137.03
4.4.70.0000.0407.03
4.4.60.0000.0407.03
4.4.50.0000.0377.03
4.4.40.0000.0537.03
4.4.30.0000.0137.03
4.4.20.0000.0307.03
4.4.10.0070.0077.03
4.4.00.0030.0407.03
4.3.110.0000.0377.03
4.3.100.0030.0207.03
4.3.90.0030.0337.03
4.3.80.0030.0537.03
4.3.70.0000.0177.03
4.3.60.0030.0177.03
4.3.50.0070.0277.03
4.3.40.0000.0407.03
4.3.30.0030.0337.03
4.3.20.0000.0307.03
4.3.10.0030.0337.03
4.3.00.0000.0237.03

preferences:
40.54 ms | 401 KiB | 5 Q