3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = " \àèé°§]['\"'' \"%$<^>&||&amp;# a\x80b Ω ℧ ⽟ ぎ ﬥ 𦤞 𦤟"; $encoded = htmlentities($str, ENT_QUOTES | ENT_SUBSTITUTE, "UTF-8"); $decoded = html_entity_decode($encoded, ENT_QUOTES, "UTF-8"); var_dump($str); var_dump($decoded); var_dump($str === $decoded);

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.70.0140.00716.48
8.3.60.0070.00716.38
8.3.50.0160.00621.92
8.3.40.0070.00718.71
8.3.30.0070.00718.96
8.3.20.0040.00420.38
8.3.10.0040.00421.87
8.3.00.0090.00019.26
8.2.190.0080.00816.58
8.2.180.0070.01416.63
8.2.170.0120.00322.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0100.00626.16
8.2.120.0000.00819.52
8.2.110.0070.00322.04
8.2.100.0040.00819.51
8.2.90.0000.00817.63
8.2.80.0040.00418.79
8.2.70.0070.00317.80
8.2.60.0030.00618.04
8.2.50.0080.00319.22
8.2.40.0050.00219.05
8.2.30.0080.00017.93
8.2.20.0030.00517.62
8.2.10.0090.00018.04
8.2.00.0040.00417.77
8.1.280.0060.01525.92
8.1.270.0080.00020.63
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0040.00423.98
8.1.230.0040.00820.93
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0060.00317.00
8.1.180.0050.00518.10
8.1.170.0000.00818.48
8.1.160.0040.00418.72
8.1.150.0040.00418.70
8.1.140.0000.00717.38
8.1.130.0040.00417.73
8.1.120.0090.00017.36
8.1.110.0030.00617.27
8.1.100.0040.00417.27
8.1.90.0000.00717.42
8.1.80.0050.00217.41
8.1.70.0090.00017.35
8.1.60.0000.00917.54
8.1.50.0030.00917.43
8.1.40.0040.00417.36
8.1.30.0000.00817.57
8.1.20.0000.00817.58
8.1.10.0090.00017.35
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0070.00018.38
8.0.270.0050.00217.30
8.0.260.0030.00317.15
8.0.250.0000.00716.90
8.0.240.0000.00816.84
8.0.230.0000.00716.87
8.0.220.0030.00316.73
8.0.210.0030.00616.80
8.0.200.0030.00516.73
8.0.190.0040.00416.95
8.0.180.0040.00416.82
8.0.170.0050.00216.77
8.0.160.0000.00816.95
8.0.150.0050.00316.89
8.0.140.0000.00716.74
8.0.130.0000.00613.29
8.0.120.0080.00016.80
8.0.110.0000.00716.79
8.0.100.0070.00016.71
8.0.90.0040.00416.88
8.0.80.0100.00916.89
8.0.70.0000.00716.62
8.0.60.0080.00016.71
8.0.50.0040.00416.67
8.0.30.0130.00917.04
8.0.20.0120.01517.40
8.0.10.0000.00716.75
8.0.00.0110.00816.55
7.4.330.0050.00015.20
7.4.320.0030.00316.45
7.4.300.0030.00316.51
7.4.290.0030.00316.45
7.4.280.0040.00416.63
7.4.270.0040.00416.60
7.4.260.0030.00316.62
7.4.250.0000.00716.59
7.4.240.0020.00516.52
7.4.230.0070.00016.68
7.4.220.0120.00716.58
7.4.210.0140.00016.54
7.4.200.0030.00316.50
7.4.160.0100.00716.47
7.4.150.0150.00717.40
7.4.140.0080.01017.86
7.4.130.0100.00616.48
7.4.120.0070.01116.46
7.4.110.0140.01116.47
7.4.100.0100.01016.46
7.4.90.0060.01516.63
7.4.80.0110.00819.39
7.4.70.0140.00516.48
7.4.60.0090.00616.35
7.4.50.0040.00416.04
7.4.40.0100.00716.52
7.4.30.0140.00416.42
7.4.00.0060.00814.76
7.3.330.0000.00512.93
7.3.320.0070.00513.14
7.3.310.0030.00316.09
7.3.300.0060.00016.19
7.3.290.0110.00316.28
7.3.280.0120.00516.21
7.3.270.0110.00817.40
7.3.260.0080.01016.30
7.3.250.0100.00716.20
7.3.240.0000.02016.39
7.3.230.0040.01216.55
7.3.210.0070.01016.50
7.3.200.0060.01019.39
7.3.190.0100.00616.63
7.3.180.0120.00916.53
7.3.170.0130.00316.27
7.3.160.0160.00616.45
7.3.10.0180.00416.00
7.3.00.0140.00416.12
7.2.330.0090.00916.32
7.2.320.0170.00416.42
7.2.310.0030.01316.53
7.2.300.0100.00716.40
7.2.290.0150.00316.50
7.2.130.0190.00416.50
7.2.120.0100.01016.59
7.2.110.0190.01216.63
7.2.100.0100.00316.39
7.2.90.0110.00716.44
7.2.80.0040.01816.40
7.2.70.0100.01416.65
7.2.60.0150.00416.58
7.2.50.0140.00516.84
7.2.40.0140.00316.89
7.2.30.0100.00716.80
7.2.20.0060.01216.54
7.2.10.0070.01416.42
7.2.00.0130.00716.55
7.1.250.0180.00915.66
7.1.200.0060.00615.61
7.1.70.0100.00017.16
7.1.60.0090.01619.46
7.1.50.0150.00716.86
7.1.00.0070.07322.41
7.0.200.0190.00416.33
7.0.140.0070.07022.18
7.0.60.0170.07319.90
7.0.50.0130.07317.89
7.0.40.0100.08320.04
7.0.30.0230.08720.13
7.0.20.0300.08020.02
7.0.10.0300.07320.30
7.0.00.0130.08020.16
5.6.280.0100.06721.11
5.6.210.0170.06020.53
5.6.200.0030.04018.12
5.6.190.0030.04720.41
5.6.180.0300.04020.39
5.6.170.0270.04020.41
5.6.160.0030.06020.51
5.6.150.0100.03318.12
5.6.140.0100.07318.11
5.6.130.0030.05018.07
5.6.120.0100.03721.11
5.6.110.0170.05021.11
5.6.100.0000.07321.13
5.6.90.0070.03720.95
5.6.80.0070.04020.50
5.6.70.0130.04320.39
5.5.350.0100.08720.46
5.5.340.0130.06718.02
5.5.330.0100.08020.13
5.5.320.0070.04020.46
5.5.310.0330.08020.30
5.5.300.0130.05717.92
5.5.290.0100.08017.90
5.5.280.0070.08320.88
5.5.270.0000.05020.87
5.5.260.0170.06020.71
5.5.250.0130.08020.68
5.5.240.0030.08020.25
5.4.450.0530.05719.10
5.4.440.0700.05319.49
5.4.430.0670.05319.09
5.4.420.0400.07019.34
5.4.410.0730.07019.45
5.4.400.0300.05018.72
5.4.390.0300.05018.52
5.4.380.0170.05718.45
5.4.370.0170.06018.70
5.4.360.0130.06718.52
5.4.350.0100.07018.68
5.4.340.0300.05718.58
5.4.320.0200.05718.76
5.4.310.0330.06018.68
5.4.300.0230.05318.66
5.4.290.0230.04718.66
5.4.280.0270.04718.64
5.4.270.0300.06718.57
5.4.260.0070.07318.67
5.4.250.0300.04718.78
5.4.240.0070.07718.59
5.4.230.0170.05718.66
5.4.220.0230.05018.61
5.4.210.0270.05718.75
5.4.200.0230.05016.73
5.4.190.0100.05718.55
5.4.180.0170.06018.43
5.4.170.0200.07318.70
5.4.160.0300.06318.54
5.4.150.0230.05018.66
5.4.140.0130.05716.18
5.4.130.0130.05316.15
5.4.120.0130.06016.08
5.4.110.0170.05316.12
5.4.100.0170.06016.06
5.4.90.0200.06716.21
5.4.80.0130.05716.23
5.4.70.0200.07316.18
5.4.60.0300.05016.28
5.4.50.0270.05016.25
5.4.40.0130.06016.14
5.4.30.0230.06016.04
5.4.20.0170.06016.02
5.4.10.0270.04716.00
5.4.00.0170.05315.70
5.3.290.0200.07314.64
5.3.280.0130.05714.54
5.3.270.0130.06714.58
5.3.260.0270.06714.63
5.3.250.0270.06314.51
5.3.240.0170.05314.50
5.3.230.0100.06014.49
5.3.220.0170.05314.55
5.3.210.0030.06714.56
5.3.200.0270.04714.46
5.3.190.0230.05314.54
5.3.180.0130.06314.65
5.3.170.0170.05714.54
5.3.160.0130.07714.56
5.3.150.0230.06014.57
5.3.140.0370.04714.55
5.3.130.0230.06014.57
5.3.120.0230.05714.62
5.3.110.0170.06314.64
5.3.100.0170.06714.04
5.3.90.0200.07313.98
5.3.80.0200.07014.04
5.3.70.0230.04713.98
5.3.60.0100.06313.92
5.3.50.0130.05713.84
5.3.40.0170.06313.93
5.3.30.0130.06013.87
5.3.20.0130.06013.68
5.3.10.0200.04713.64
5.3.00.0070.06013.67
5.2.170.0070.05311.11
5.2.160.0170.04011.18
5.2.150.0130.04311.12
5.2.140.0100.04711.07
5.2.130.0130.04011.23
5.2.120.0130.04011.10
5.2.110.0130.05711.07
5.2.100.0030.06311.14
5.2.90.0170.05711.05
5.2.80.0200.05711.07
5.2.70.0230.04011.15
5.2.60.0270.04711.18
5.2.50.0200.04710.98
5.2.40.0100.04011.04
5.2.30.0170.03710.90
5.2.20.0130.05010.93
5.2.10.0130.04010.83
5.2.00.0130.05310.74
5.1.60.0070.0509.99
5.1.50.0200.02710.02
5.1.40.0070.04010.01
5.1.30.0130.03710.43
5.1.20.0130.03310.46
5.1.10.0230.03010.18
5.1.00.0200.04310.09
5.0.50.0100.0278.54
5.0.40.0000.0338.54
5.0.30.0100.0408.25
5.0.20.0030.0338.24
5.0.10.0130.0338.18
5.0.00.0100.0408.24
4.4.90.0100.0205.95
4.4.80.0200.0135.88
4.4.70.0200.0205.88
4.4.60.0100.0205.85
4.4.50.0100.0205.86
4.4.40.0130.0305.91
4.4.30.0100.0235.87
4.4.20.0170.0175.94
4.4.10.0130.0205.94
4.4.00.0030.0405.85
4.3.110.0170.0135.81
4.3.100.0100.0205.80
4.3.90.0070.0205.79
4.3.80.0070.0405.83
4.3.70.0070.0235.79
4.3.60.0030.0235.79
4.3.50.0030.0305.80
4.3.40.0170.0305.80
4.3.30.0030.0234.63
4.3.20.0130.0134.53
4.3.10.0100.0204.42
4.3.00.0100.0278.77

preferences:
50.33 ms | 401 KiB | 5 Q