3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "French for French is fran&ccedil;ais"; $str = html_entity_decode($str); $str = substr($str, 0, 27); echo htmlentities($str); //$str contains "French for French is frança"; //example 2 $str = "the en dash looks like &#8211;"; $str = html_entity_decode($str); $str = substr($str, 0, 25); echo htmlentities($str);

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.40.0060.01018.71
8.3.30.0070.00719.04
8.3.20.0040.00420.33
8.3.10.0060.00921.85
8.3.00.0030.00619.19
8.2.170.0070.01322.96
8.2.160.0140.00420.39
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00419.54
8.2.110.0040.00721.07
8.2.100.0080.00417.78
8.2.90.0070.00217.96
8.2.80.0000.00918.03
8.2.70.0000.00817.63
8.2.60.0020.00518.21
8.2.50.0000.00818.10
8.2.40.0030.00621.07
8.2.30.0030.00519.23
8.2.20.0070.00317.67
8.2.10.0070.00018.11
8.2.00.0060.00317.72
8.1.270.0030.00618.91
8.1.260.0070.00426.35
8.1.250.0040.00428.09
8.1.240.0120.00622.49
8.1.230.0040.00720.79
8.1.220.0040.00417.78
8.1.210.0030.00518.84
8.1.200.0000.00917.23
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0060.00318.27
8.1.160.0020.00518.79
8.1.150.0040.00418.84
8.1.140.0070.00017.31
8.1.130.0000.00717.75
8.1.120.0030.00317.38
8.1.110.0000.00717.47
8.1.100.0070.00017.36
8.1.90.0000.00817.45
8.1.80.0040.00417.41
8.1.70.0050.00317.34
8.1.60.0080.00017.54
8.1.50.0040.00417.36
8.1.40.0060.00317.44
8.1.30.0080.00017.60
8.1.20.0080.00017.54
8.1.10.0030.00517.53
8.1.00.0000.00817.46
8.0.300.0030.00719.95
8.0.290.0050.00316.75
8.0.280.0030.00318.38
8.0.270.0000.00717.22
8.0.260.0060.00017.26
8.0.250.0070.00016.92
8.0.240.0030.00316.94
8.0.230.0030.00316.84
8.0.220.0030.00316.77
8.0.210.0000.00716.77
8.0.200.0000.00716.88
8.0.190.0040.00416.80
8.0.180.0030.00716.76
8.0.170.0050.00216.86
8.0.160.0040.00416.95
8.0.150.0040.00416.80
8.0.140.0080.00016.83
8.0.130.0030.00313.19
8.0.120.0040.00416.69
8.0.110.0000.00716.83
8.0.100.0000.00716.86
8.0.90.0020.00516.73
8.0.80.0100.00616.82
8.0.70.0000.00716.91
8.0.60.0040.00416.72
8.0.50.0050.00216.89
8.0.30.0130.00917.20
8.0.20.0080.01017.40
8.0.10.0070.00016.83
8.0.00.0120.01016.72
7.4.330.0000.00515.03
7.4.320.0000.00716.63
7.4.300.0030.00316.45
7.4.290.0000.00816.42
7.4.280.0040.00416.48
7.4.270.0000.00716.43
7.4.260.0040.00416.53
7.4.250.0070.00016.41
7.4.240.0020.00516.44
7.4.230.0070.00016.54
7.4.220.0130.00716.43
7.4.210.0090.00816.47
7.4.200.0000.00716.35
7.4.160.0070.01316.34
7.4.150.0180.00017.40
7.4.140.0090.01017.86
7.4.130.0050.01316.44
7.4.120.0060.01116.50
7.4.110.0140.00316.29
7.4.100.0060.01716.46
7.4.90.0090.00916.39
7.4.80.0080.01219.39
7.4.70.0100.00616.56
7.4.60.0100.01316.49
7.4.50.0030.00616.63
7.4.40.0100.00716.43
7.4.30.0130.00316.39
7.4.00.0090.00615.15
7.3.330.0000.00513.04
7.3.320.0000.00612.94
7.3.310.0000.00716.11
7.3.300.0030.00316.12
7.3.290.0040.01216.13
7.3.280.0040.01516.17
7.3.270.0030.01317.40
7.3.260.0130.00316.20
7.3.250.0110.00616.12
7.3.240.0030.01416.00
7.3.230.0170.00016.39
7.3.210.0140.00416.02
7.3.200.0110.01119.39
7.3.190.0060.01016.20
7.3.180.0090.00716.32
7.3.170.0070.01016.43
7.3.160.0070.01416.04
7.3.10.0210.01416.09
7.3.00.0080.00816.23
7.2.330.0100.00716.50
7.2.320.0100.00716.63
7.2.310.0110.00716.80
7.2.300.0090.00916.41
7.2.290.0070.01016.66
7.2.130.0180.00416.05
7.2.120.0170.00716.26
7.2.110.0130.00715.79
7.2.100.0100.01016.32
7.2.90.0200.01016.38
7.2.80.0220.00716.17
7.2.70.0100.01016.19
7.2.60.0090.00916.57
7.2.50.0130.00916.57
7.2.40.0150.00015.88
7.2.30.0130.00716.37
7.2.20.0170.01016.47
7.2.10.0160.01315.88
7.2.00.0100.00817.82
7.1.250.0150.00315.17
7.1.200.0060.00915.64
7.1.100.0070.00717.92
7.1.70.0040.00417.14
7.1.60.0100.01419.22
7.1.50.0150.00717.01
7.1.00.0070.07322.37
7.0.200.0040.00416.70
7.0.140.0000.03322.18
7.0.60.0070.08019.95
7.0.50.0070.08017.87
7.0.40.0030.07720.02
7.0.30.2000.04320.21
7.0.20.0170.06020.17
7.0.10.0070.04020.12
7.0.00.0130.03319.99
5.6.280.0070.07021.07
5.6.210.0130.03720.75
5.6.200.0030.04318.22
5.6.190.0170.08020.67
5.6.180.0330.07720.41
5.6.170.0200.07020.37
5.6.160.0030.05720.32
5.6.150.0030.08718.08
5.6.140.0070.07718.11
5.6.130.0100.07018.08
5.6.120.0130.05021.11
5.6.110.0030.04321.00
5.6.100.0100.05320.99
5.6.90.0030.07020.99
5.6.80.0030.04020.50
5.5.350.0370.06320.31
5.5.340.0170.06718.02
5.5.330.0100.03720.40
5.5.320.0200.04320.18
5.5.310.0270.07320.36
5.5.300.0130.07317.96
5.5.290.0130.06317.95
5.5.280.0070.03720.75
5.5.270.0030.09020.80
5.5.260.0000.08720.78
5.5.250.0030.05320.57
5.5.240.0030.05320.11
5.4.450.0670.06019.39
5.4.440.0570.05319.13
5.4.430.0730.04319.47
5.4.420.0130.05019.50
5.4.410.0570.06319.35
5.4.400.0730.04319.08
5.4.390.0600.05319.30
5.4.380.0170.06018.61
5.4.370.0130.05718.65
5.4.360.0230.05018.46
5.4.350.0230.05318.66
5.4.340.0170.06018.68
5.4.320.0270.05718.56
5.4.310.0170.06018.59
5.4.300.0230.05318.61
5.4.290.0170.05318.50
5.4.280.0130.06318.48
5.4.270.0270.07018.63
5.4.260.0130.06018.72
5.4.250.0200.06718.65
5.4.240.0270.05318.49
5.4.230.0200.04718.64
5.4.220.0130.06018.49
5.4.210.0100.06018.54
5.4.200.0170.05316.64
5.4.190.0230.05018.57
5.4.180.0300.04318.53
5.4.170.0230.05718.57
5.4.160.0170.05318.46
5.4.150.0400.04318.72
5.4.140.0230.07016.31
5.4.130.0270.04716.21
5.4.120.0300.06016.25
5.4.110.0400.04716.24
5.4.100.0270.04316.19
5.4.90.0170.05716.16
5.4.80.0130.05716.13
5.4.70.0100.06716.27
5.4.60.0170.05016.22
5.4.50.0230.04316.11
5.4.40.0230.04716.05
5.4.30.0300.05316.01
5.4.20.0200.06716.23
5.4.10.0170.05316.12
5.4.00.0230.04315.64
5.3.290.0200.05714.64
5.3.280.0130.06014.52
5.3.270.0200.05714.52
5.3.260.0100.06714.58
5.3.250.0230.05714.67
5.3.240.0330.05714.50
5.3.230.0230.04714.69
5.3.220.0130.05714.61
5.3.210.0200.06014.54
5.3.200.0200.04714.64
5.3.190.0200.05314.50
5.3.180.0200.05314.54
5.3.170.0200.05314.48
5.3.160.0270.04314.46
5.3.150.0230.05314.51
5.3.140.0300.05314.55
5.3.130.0200.05714.47
5.3.120.0230.05014.46
5.3.110.0270.05014.47
5.3.100.0270.04314.09
5.3.90.0200.05314.07
5.3.80.0170.06013.91
5.3.70.0230.05014.10
5.3.60.0230.06713.98
5.3.50.0200.05013.97
5.3.40.0170.06313.85
5.3.30.0170.05014.00
5.3.20.0170.05013.64
5.3.10.0200.04713.69
5.3.00.0130.05313.54
5.2.170.0130.04311.07
5.2.160.0230.03011.20
5.2.150.0130.04711.18
5.2.140.0100.05011.17
5.2.130.0170.03711.02
5.2.120.0100.04311.23
5.2.110.0130.04311.01
5.2.100.0130.04011.08
5.2.90.0170.04011.16
5.2.80.0270.03311.25
5.2.70.0130.04311.13
5.2.60.0100.04710.96
5.2.50.0070.04710.99
5.2.40.0170.03711.14
5.2.30.0170.04011.00
5.2.20.0100.04310.99
5.2.10.0200.03710.95
5.2.00.0130.04310.81
5.1.60.0170.0339.98
5.1.50.0100.03710.11
5.1.40.0200.04310.07
5.1.30.0200.03010.30
5.1.20.0030.04710.39
5.1.10.0130.03710.20
5.1.00.0170.03010.06
5.0.50.0130.0238.56
5.0.40.0070.0308.38
5.0.30.0070.0438.32
5.0.20.0030.0338.27
5.0.10.0070.0308.29
5.0.00.0070.0478.28
4.4.90.0130.0176.87
4.4.80.0030.0276.87
4.4.70.0070.0236.87
4.4.60.0170.0136.87
4.4.50.0070.0236.87
4.4.40.0170.0336.87
4.4.30.0030.0306.87
4.4.20.0030.0306.87
4.4.10.0070.0236.87
4.4.00.0130.0336.87
4.3.110.0200.0176.87
4.3.100.0030.0236.87
4.3.90.0000.0276.87
4.3.80.0070.0336.87
4.3.70.0030.0236.87
4.3.60.0100.0176.87
4.3.50.0070.0236.87
4.3.40.0030.0406.87
4.3.30.0000.0276.87
4.3.20.0170.0106.87
4.3.10.0070.0206.87
4.3.00.0100.0237.63

preferences:
55.03 ms | 400 KiB | 5 Q