3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "<p>like it </p>"; $str = htmlspecialchars($str); echo $str. "<br>"; $str = htmlspecialchars_decode($str); echo $str. "<br>"; ?>

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.0100.00318.27
8.3.50.0090.00921.92
8.3.40.0140.00018.59
8.3.30.0100.00318.82
8.3.20.0000.00720.09
8.3.10.0040.00421.96
8.3.00.0040.00422.34
8.2.180.0040.01116.63
8.2.170.0170.00322.96
8.2.160.0140.00020.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00417.50
8.2.110.0100.00022.26
8.2.100.0040.00817.78
8.2.90.0040.00417.91
8.2.80.0100.00017.97
8.2.70.0070.00717.63
8.2.60.0050.00317.93
8.2.50.0000.00818.07
8.2.40.0040.00418.06
8.2.30.0040.00417.92
8.2.20.0040.00417.52
8.2.10.0040.00417.73
8.2.00.0000.00817.79
8.1.280.0140.00325.92
8.1.270.0080.00022.05
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0130.00320.77
8.1.230.0080.00420.97
8.1.220.0040.00417.78
8.1.210.0000.00819.03
8.1.200.0070.00317.23
8.1.190.0040.00417.51
8.1.180.0040.00418.10
8.1.170.0050.00318.58
8.1.160.0080.00021.95
8.1.150.0040.00418.48
8.1.140.0000.00717.36
8.1.130.0030.00317.75
8.1.120.0080.00017.23
8.1.110.0070.00017.34
8.1.100.0050.00317.28
8.1.90.0050.00317.32
8.1.80.0040.00417.42
8.1.70.0030.00317.38
8.1.60.0040.00417.52
8.1.50.0000.00717.31
8.1.40.0000.00917.29
8.1.30.0000.00817.43
8.1.20.0000.00917.41
8.1.10.0040.00417.51
8.1.00.0050.00217.50
8.0.300.0040.00419.92
8.0.290.0070.00017.28
8.0.280.0070.00018.47
8.0.270.0030.00317.25
8.0.260.0050.00218.43
8.0.250.0000.00716.97
8.0.240.0050.00316.96
8.0.230.0040.00417.03
8.0.220.0030.00316.86
8.0.210.0000.00716.91
8.0.200.0060.00016.98
8.0.190.0040.00416.84
8.0.180.0030.00616.88
8.0.170.0000.00816.91
8.0.160.0040.00416.74
8.0.150.0040.00416.69
8.0.140.0060.00316.80
8.0.130.0000.00613.26
8.0.120.0040.00416.79
8.0.110.0030.00516.87
8.0.100.0040.00416.89
8.0.90.0030.00316.73
8.0.80.0080.00616.92
8.0.70.0000.00716.78
8.0.60.0000.00716.75
8.0.50.0030.00416.92
8.0.30.0120.00617.11
8.0.20.0140.00517.40
8.0.10.0030.00316.83
8.0.00.0110.00816.68
7.4.330.0020.00215.00
7.4.320.0050.00216.36
7.4.300.0000.00616.32
7.4.290.0000.00616.53
7.4.280.0000.00616.56
7.4.270.0040.00416.53
7.4.260.0070.00016.38
7.4.250.0030.00316.54
7.4.240.0010.00616.40
7.4.230.0040.00416.55
7.4.220.0030.01316.46
7.4.210.0070.00916.40
7.4.200.0000.00716.32
7.4.190.0050.00216.34
7.4.160.0060.01016.58
7.4.150.0090.00817.40
7.4.140.0130.00717.86
7.4.130.0090.00916.53
7.4.120.0050.01216.46
7.4.110.0100.00716.62
7.4.100.0060.01216.59
7.4.90.0060.01316.52
7.4.80.0080.00819.39
7.4.70.0170.00016.50
7.4.60.0090.00616.51
7.4.50.0040.00416.39
7.4.40.0110.00722.77
7.4.30.0090.00616.40
7.4.00.0080.00814.93
7.3.330.0000.00712.92
7.3.320.0030.00312.96
7.3.310.0070.00016.18
7.3.300.0030.00316.08
7.3.290.0120.00316.13
7.3.280.0100.00816.23
7.3.270.0040.01417.40
7.3.260.0040.01816.35
7.3.250.0050.01216.30
7.3.240.0030.01416.35
7.3.230.0110.00616.39
7.3.210.0110.00616.37
7.3.200.0100.01619.39
7.3.190.0160.00616.47
7.3.180.0040.01216.23
7.3.170.0130.00716.34
7.3.160.0060.00916.25
7.3.120.0050.01114.78
7.3.110.0090.00614.51
7.3.100.0060.00814.64
7.3.90.0040.00714.54
7.3.80.0060.01014.77
7.3.70.0040.00414.70
7.3.60.0000.01214.80
7.3.50.0060.00314.80
7.3.40.0070.00714.54
7.3.30.0080.00314.89
7.3.20.0100.00316.42
7.3.10.0080.00316.55
7.3.00.0090.00616.58
7.2.330.0100.00716.84
7.2.320.0140.01416.70
7.2.310.0090.01216.64
7.2.300.0060.01316.39
7.2.290.0160.00016.68
7.2.250.0140.00414.95
7.2.240.0130.00314.96
7.2.230.0120.00615.13
7.2.220.0100.00315.12
7.2.210.0000.01415.13
7.2.200.0130.00015.08
7.2.190.0030.01315.08
7.2.180.0060.00615.09
7.2.170.0030.01215.14
7.2.00.0100.00619.50
7.1.330.0080.00815.57
7.1.320.0030.01015.66
7.1.310.0070.00715.77
7.1.300.0030.00615.55
7.1.290.0080.00515.73
7.1.280.0060.00315.80
7.1.270.0080.00815.76
7.1.260.0070.00715.74
7.1.100.0060.00618.16
7.1.70.0000.01116.89
7.1.60.0130.01019.82
7.1.50.0070.01417.05
7.1.00.0070.07322.54
7.0.200.0040.01116.46
7.0.140.0030.07322.21
7.0.60.0070.07320.07
7.0.50.0070.04017.80
7.0.40.0130.06720.03
7.0.30.0270.08020.16
7.0.20.0170.06720.04
7.0.10.0000.09020.18
7.0.00.0000.09320.33
5.6.280.0000.07720.86
5.6.210.0100.08320.45
5.6.200.0070.06718.11
5.6.190.0100.05020.47
5.6.180.0230.04720.36
5.6.170.0230.05020.71
5.6.160.0030.04720.37
5.6.150.0100.06318.22
5.6.140.0130.07318.20
5.6.130.0070.08018.11
5.6.120.0100.04021.11
5.6.110.0100.07720.96
5.6.100.0100.08020.97
5.6.90.0170.07721.02
5.6.80.0030.05720.51
5.6.70.4370.03720.49
5.5.350.0200.07320.32
5.5.340.0030.08717.91
5.5.330.0030.07020.19
5.5.320.0170.04320.24
5.5.310.0200.03720.30
5.5.300.0100.08317.92
5.5.290.0070.05017.98
5.5.280.0070.03720.87
5.5.270.0100.06320.75
5.5.260.0070.06020.71
5.5.250.0130.04320.57
5.5.240.0070.07720.27
5.4.450.0600.06019.41
5.4.440.0600.05319.15
5.4.430.0170.05019.25
5.4.420.0100.05319.31
5.4.410.0230.04319.15
5.4.400.0830.00018.75
5.4.390.0800.00018.68
5.4.380.0200.06018.62
5.4.370.0230.05718.73
5.4.360.0200.05018.75
5.4.350.0270.06018.74
5.4.340.0470.05018.70
5.4.320.0060.03912.45
5.4.310.0070.05012.45
5.4.300.0070.03612.45
5.4.290.0080.04912.45
5.4.280.0060.03512.35
5.4.270.0200.06318.88
5.4.260.0030.06018.88
5.4.250.0100.06718.99
5.4.240.0170.05018.70
5.4.230.0070.05718.70
5.4.220.0070.07318.77
5.4.210.0070.05318.86
5.4.200.0070.05718.88
5.4.190.0000.07019.02
5.4.180.0070.05718.74
5.4.170.0170.06718.77
5.4.160.0270.06318.64
5.4.150.0070.07318.71
5.4.140.0130.05316.29
5.4.130.0130.04716.23
5.4.120.0070.05016.44
5.4.110.0200.04016.45
5.4.100.0100.06716.42
5.4.90.0030.05716.49
5.4.80.0100.06016.28
5.4.70.0000.05316.41
5.4.60.0130.04316.48
5.4.50.0170.04316.46
5.4.40.0130.05316.26
5.4.30.0100.05716.42
5.4.20.0070.05016.32
5.4.10.0130.06016.45
5.4.00.0130.06315.68
5.3.290.0050.05812.80
5.3.280.0130.04714.47
5.3.270.0070.07014.44
5.3.260.0130.05714.59
5.3.250.0130.04714.29
5.3.240.0030.06014.61
5.3.230.0130.07314.61
5.3.220.0200.06014.71
5.3.210.0130.07314.48
5.3.200.0200.05714.71
5.3.190.0100.07714.40
5.3.180.0100.06714.57
5.3.170.0100.05714.43
5.3.160.0100.05314.46
5.3.150.0070.05314.51
5.3.140.0170.04714.32
5.3.130.0070.07014.41
5.3.120.0070.08014.43
5.3.110.0100.05314.55
5.3.100.0100.05713.90
5.3.90.0070.05313.85
5.3.80.0030.05714.17
5.3.70.0130.05713.86
5.3.60.0100.06313.77
5.3.50.0030.05713.94
5.3.40.0070.05313.96
5.3.30.0030.05714.05
5.3.20.0170.05713.70
5.3.10.0070.06713.70
5.3.00.0070.05013.57
5.2.170.0100.04011.14
5.2.160.0130.05311.14
5.2.150.0100.03711.06
5.2.140.0170.03311.24
5.2.130.0130.04311.20
5.2.120.0170.03311.02
5.2.110.0030.05311.01
5.2.100.0070.05311.11
5.2.90.0100.05311.11
5.2.80.0100.05711.09
5.2.70.0100.03711.10
5.2.60.0100.04010.97
5.2.50.0130.04011.03
5.2.40.0130.03310.99
5.2.30.0070.04010.90
5.2.20.0130.04310.84
5.2.10.0070.05310.93
5.2.00.0030.04310.78
5.1.60.0070.04710.04
5.1.50.0000.04010.18
5.1.40.0100.0439.99
5.1.30.0030.04010.51
5.1.20.0130.05010.52
5.1.10.0100.04010.12
5.1.00.0070.04010.12
5.0.50.0070.0238.63
5.0.40.0100.0338.55
5.0.30.0100.0408.30
5.0.20.0070.0308.11
5.0.10.0000.0338.12
5.0.00.0000.0608.20
4.4.90.0070.0306.29
4.4.80.0070.0176.29
4.4.70.0070.0236.29
4.4.60.0030.0206.29
4.4.50.0100.0236.29
4.4.40.0070.0336.29
4.4.30.0130.0176.29
4.4.20.0070.0306.29
4.4.10.0030.0306.29
4.4.00.0070.0376.29
4.3.110.0030.0306.29
4.3.100.0000.0336.29
4.3.90.0030.0276.29
4.3.80.0030.0336.29
4.3.70.0100.0176.29
4.3.60.0030.0276.29
4.3.50.0100.0176.29
4.3.40.0030.0336.29
4.3.30.0070.0236.29
4.3.20.0030.0276.29
4.3.10.0000.0236.29
4.3.00.0000.0236.11

preferences:
32.66 ms | 401 KiB | 5 Q