3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "a\x80b"; $encoded = htmlentities($str, ENT_QUOTES, "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.0100.01016.63
8.3.60.0050.00916.50
8.3.50.0070.01222.06
8.3.40.0110.00418.56
8.3.30.0100.00318.92
8.3.20.0050.00220.25
8.3.10.0060.00321.78
8.3.00.0080.00019.00
8.2.190.0130.00616.58
8.2.180.0150.00616.50
8.2.170.0060.00922.96
8.2.160.0030.01020.50
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00819.55
8.2.110.0060.00319.32
8.2.100.0120.00017.50
8.2.90.0000.00719.24
8.2.80.0040.00417.97
8.2.70.0000.00817.34
8.2.60.0030.00517.93
8.2.50.0050.00318.07
8.2.40.0000.00817.87
8.2.30.0000.00817.86
8.2.20.0000.00817.67
8.2.10.0050.00318.08
8.2.00.0040.00417.65
8.1.280.0140.00725.92
8.1.270.0000.00820.52
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0030.00623.84
8.1.230.0080.00317.42
8.1.220.0060.00317.79
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0000.00820.36
8.1.160.0040.00421.98
8.1.150.0040.00418.75
8.1.140.0040.00417.37
8.1.130.0000.00717.79
8.1.120.0070.00317.46
8.1.110.0070.00017.45
8.1.100.0000.00717.23
8.1.90.0070.00017.27
8.1.80.0080.00017.30
8.1.70.0030.00517.44
8.1.60.0080.00017.52
8.1.50.0060.00617.33
8.1.40.0020.00517.48
8.1.30.0080.00017.49
8.1.20.0000.00817.48
8.1.10.0030.00617.54
8.1.00.0030.00517.37
8.0.300.0000.00718.77
8.0.290.0030.00616.63
8.0.280.0070.00018.36
8.0.270.0070.00017.18
8.0.260.0030.00317.23
8.0.250.0030.00316.91
8.0.240.0040.00416.92
8.0.230.0040.00416.92
8.0.220.0040.00416.84
8.0.210.0030.00516.72
8.0.200.0030.00616.85
8.0.190.0080.00016.91
8.0.180.0040.00416.84
8.0.170.0040.00416.80
8.0.160.0080.00016.87
8.0.150.0050.00516.66
8.0.140.0030.00516.82
8.0.130.0030.00313.33
8.0.120.0040.00416.71
8.0.110.0000.00816.84
8.0.100.0080.00016.88
8.0.90.0040.00416.77
8.0.80.0040.01816.79
8.0.70.0000.00716.69
8.0.60.0050.00216.85
8.0.50.0000.00716.71
8.0.30.0130.01116.82
8.0.20.0120.01917.40
8.0.10.0070.00016.79
8.0.00.0100.00816.67
7.4.330.0000.00515.03
7.4.320.0000.00616.58
7.4.300.0020.00516.63
7.4.290.0070.00016.50
7.4.280.0040.00416.49
7.4.270.0070.00016.51
7.4.260.0030.00316.55
7.4.250.0000.00716.54
7.4.240.0050.00216.50
7.4.230.0070.00016.60
7.4.220.0130.01016.60
7.4.210.0060.00916.69
7.4.200.0030.00316.33
7.4.160.0140.00316.60
7.4.150.0040.01317.40
7.4.140.0090.00917.86
7.4.130.0090.01016.37
7.4.120.0100.00716.43
7.4.110.0100.01316.58
7.4.100.0110.00616.17
7.4.90.0090.01216.57
7.4.80.0130.00619.39
7.4.70.0060.01216.52
7.4.60.0030.01716.55
7.4.50.0060.00016.30
7.4.40.0070.01116.62
7.4.30.0120.00816.38
7.4.00.0000.01314.53
7.3.330.0000.00512.94
7.3.320.0140.00013.07
7.3.310.0030.00516.13
7.3.300.0000.00716.18
7.3.290.0090.00716.19
7.3.280.0070.01116.21
7.3.270.0100.01417.40
7.3.260.0080.00916.61
7.3.250.0090.00916.25
7.3.240.0130.01016.31
7.3.230.0090.00916.39
7.3.210.0060.01016.42
7.3.200.0080.00819.39
7.3.190.0000.01616.57
7.3.180.0060.01016.31
7.3.170.0090.00916.27
7.3.160.0130.00316.32
7.3.10.0120.00815.74
7.3.00.0070.00716.35
7.2.330.0100.00616.61
7.2.320.0140.01016.41
7.2.310.0030.01316.51
7.2.300.0080.00816.61
7.2.290.0060.01616.35
7.2.130.0110.00716.24
7.2.120.0140.00316.10
7.2.110.0000.01416.90
7.2.100.0060.00616.48
7.2.90.0040.01116.80
7.2.80.0140.00316.21
7.2.70.0100.00716.46
7.2.60.0100.00716.41
7.2.50.0100.01016.50
7.2.40.0060.00816.24
7.2.30.0070.00716.88
7.2.20.0100.01015.84
7.2.10.0070.01516.35
7.2.00.0060.00917.82
7.1.250.0110.00715.76
7.1.100.0030.00917.70
7.1.70.0060.00316.87
7.1.60.0070.01719.46
7.1.50.0120.01216.83
7.1.00.0030.07722.40
7.0.200.0150.00416.62
7.0.140.0030.07022.21
7.0.60.0200.04319.93
7.0.50.0030.08317.80
7.0.40.0030.09320.30
7.0.30.0330.07020.17
7.0.20.0370.07320.18
7.0.10.0270.08320.18
7.0.00.0070.08720.16
5.6.280.0070.07020.80
5.6.210.0100.08320.53
5.6.200.0030.04018.22
5.6.190.0070.06020.47
5.6.180.0230.08320.68
5.6.170.0370.06320.52
5.6.160.0070.04720.70
5.6.150.0070.03718.19
5.6.140.0070.08018.18
5.6.130.0000.04318.20
5.6.120.0070.08020.98
5.6.110.0130.07720.99
5.6.100.0200.07321.08
5.6.90.0100.05020.92
5.6.80.0000.04320.35
5.6.70.0070.07720.41
5.5.350.0170.05020.36
5.5.340.0030.04717.93
5.5.330.0000.06020.47
5.5.320.0070.04320.57
5.5.310.0370.06020.13
5.5.300.0100.08317.98
5.5.290.0070.07318.02
5.5.280.0200.05720.96
5.5.270.0070.08720.75
5.5.260.0270.07020.71
5.5.250.0070.08020.77
5.5.240.0100.06020.15
5.4.450.0870.06319.12
5.4.440.0770.06019.10
5.4.430.0700.05319.13
5.4.420.0700.05019.48
5.4.410.0230.06019.46
5.4.400.0070.06318.76
5.4.390.0230.04718.59
5.4.380.0200.05018.71
5.4.370.0170.05718.52
5.4.360.0270.04718.62
5.4.350.0170.05718.79
5.4.340.0200.06718.70
5.4.320.0270.04718.66
5.4.310.0170.05718.49
5.4.300.0200.05718.72
5.4.290.0170.05318.64
5.4.280.0230.07018.51
5.4.270.0230.06318.45
5.4.260.0270.04318.75
5.4.250.0100.06318.56
5.4.240.0230.06318.65
5.4.230.0200.05318.57
5.4.220.0100.07318.55
5.4.210.0100.06318.71
5.4.200.0270.03716.66
5.4.190.0170.05018.66
5.4.180.0100.05718.75
5.4.170.0170.05318.43
5.4.160.0200.04718.66
5.4.150.0170.05718.64
5.4.140.0230.05016.30
5.4.130.0200.05016.12
5.4.120.0170.04716.25
5.4.110.0300.03316.23
5.4.100.0170.05716.40
5.4.90.0200.04716.31
5.4.80.0070.05716.29
5.4.70.0200.05016.23
5.4.60.0300.03316.13
5.4.50.0200.04716.03
5.4.40.0100.05716.19
5.4.30.0200.04716.03
5.4.20.0200.04316.13
5.4.10.0170.05016.28
5.4.00.0200.04715.60
5.3.290.0200.07714.56
5.3.280.0130.05714.64
5.3.270.0130.06014.68
5.3.260.0200.05014.69
5.3.250.0070.07314.63
5.3.240.0300.06314.70
5.3.230.0170.06014.48
5.3.220.0270.05014.65
5.3.210.0270.05314.54
5.3.200.0200.05014.51
5.3.190.0200.05014.65
5.3.180.0200.05314.46
5.3.170.0130.05314.48
5.3.160.0200.04714.52
5.3.150.0170.05714.53
5.3.140.0170.05314.45
5.3.130.0170.06314.64
5.3.120.0100.06014.59
5.3.110.0170.05714.47
5.3.100.0100.06014.01
5.3.90.0130.05713.96
5.3.80.0200.05014.04
5.3.70.0200.05713.98
5.3.60.0230.05013.96
5.3.50.0130.05313.89
5.3.40.0270.04313.87
5.3.30.0030.06013.82
5.3.20.0170.04713.73
5.3.10.0070.06013.58
5.3.00.0170.05313.54
5.2.170.0170.03711.07
5.2.160.0130.04311.28
5.2.150.0130.05311.07
5.2.140.0230.03311.18
5.2.130.0170.04311.27
5.2.120.0130.04011.05
5.2.110.0130.04311.01
5.2.100.0130.04011.09
5.2.90.0070.04711.14
5.2.80.0100.05011.04
5.2.70.0100.04711.07
5.2.60.0100.04711.20
5.2.50.0170.03710.94
5.2.40.0100.04310.95
5.2.30.0230.03311.01
5.2.20.0070.04711.11
5.2.10.0100.04010.95
5.2.00.0170.03710.76
5.1.60.0130.03010.02
5.1.50.0100.03710.02
5.1.40.0100.03710.00
5.1.30.0170.04710.30
5.1.20.0370.03710.32
5.1.10.0170.03310.11
5.1.00.0030.04310.12
5.0.50.0100.0278.57
5.0.40.0130.0308.47
5.0.30.0030.0508.32
5.0.20.0100.0308.29
5.0.10.0100.0338.25
5.0.00.0130.0408.33
4.4.90.0000.0305.89
4.4.80.0130.0175.94
4.4.70.0100.0275.88
4.4.60.0030.0275.85
4.4.50.0070.0235.87
4.4.40.0100.0305.82
4.4.30.0070.0235.91
4.4.20.0100.0205.91
4.4.10.0030.0306.00
4.4.00.0070.0335.92
4.3.110.0070.0235.75
4.3.100.0030.0275.81
4.3.90.0100.0275.77
4.3.80.0130.0305.88
4.3.70.0170.0175.78
4.3.60.0170.0175.82
4.3.50.0070.0205.77
4.3.40.0100.0305.73
4.3.30.0000.0304.55
4.3.20.0070.0234.64
4.3.10.0070.0234.42
4.3.00.0100.0209.19

preferences:
65.56 ms | 401 KiB | 5 Q