3v4l.org

run code in 300+ PHP versions simultaneously
<?php // \u0130 $s = 'u\'ZENG\u0130N OL YADA U\u011eRUNDA \xd6L\''; if ( substr($s, 0, 2) == 'u\'' && substr($s, -1) == '\'' ) { $s = substr($s, 2, strlen($s) - 3); $s = preg_replace('/\u([0-9a-f]{4})/', '&#x;', $s); var_dump($s); } else { die('gestorben wegen: ' . $s); } var_dump(mb_convert_encoding('&#x0130;', 'UTF-8', 'HTML-ENTITIES') );

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.0150.00418.31
8.3.50.0080.01022.11
8.3.40.0130.00318.82
8.3.30.0070.00720.29
8.3.20.0040.00420.33
8.3.10.0040.00422.01
8.3.00.0050.00222.44
8.2.180.0120.00316.75
8.2.170.0110.00322.96
8.2.160.0070.00722.25
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0060.00320.75
8.2.110.0030.00622.23
8.2.100.0090.00317.78
8.2.90.0000.01019.22
8.2.80.0000.00919.44
8.2.70.0050.00317.75
8.2.60.0060.00317.80
8.2.50.0080.00018.07
8.2.40.0000.00818.15
8.2.30.0040.00419.35
8.2.20.0000.00817.71
8.2.10.0040.00417.78
8.2.00.0000.00917.85
8.1.270.0050.00323.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00423.87
8.1.230.0090.00419.02
8.1.220.0000.00817.77
8.1.210.0050.00318.77
8.1.200.0060.00317.36
8.1.190.0040.00417.28
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0080.00019.04
8.1.150.0070.00018.73
8.1.140.0100.00017.54
8.1.130.0070.00017.76
8.1.120.0000.00717.57
8.1.110.0040.00417.56
8.1.100.0000.00717.52
8.1.90.0030.00517.55
8.1.80.0000.00717.46
8.1.70.0060.00317.50
8.1.60.0080.00017.64
8.1.50.0000.00817.47
8.1.40.0030.00517.63
8.1.30.0040.00417.69
8.1.20.0040.00417.64
8.1.10.0060.00317.48
8.1.00.0030.00617.45
8.0.300.0040.00418.77
8.0.290.0080.00017.30
8.0.280.0070.00018.57
8.0.270.0040.00417.34
8.0.260.0000.00716.89
8.0.250.0000.00817.02
8.0.240.0000.00817.13
8.0.230.0070.00016.98
8.0.220.0070.00016.94
8.0.210.0000.00816.97
8.0.200.0000.00617.09
8.0.190.0000.00717.00
8.0.180.0000.00717.02
8.0.170.0040.00417.02
8.0.160.0070.00016.94
8.0.150.0030.00516.93
8.0.140.0040.00416.99
8.0.130.0000.00613.48
8.0.120.0040.00417.06
8.0.110.0050.00317.12
8.0.100.0040.00417.04
8.0.90.0050.00217.03
8.0.80.0040.01116.96
8.0.70.0070.00016.98
8.0.60.0000.00716.93
8.0.50.0070.00016.99
8.0.30.0110.00717.20
8.0.20.0140.00517.42
8.0.10.0070.00017.15
8.0.00.0120.00916.88
7.4.330.0000.00516.68
7.4.320.0000.00616.90
7.4.300.0060.00016.78
7.4.290.0070.00016.82
7.4.280.0000.00816.70
7.4.270.0000.00716.96
7.4.260.0030.00313.69
7.4.250.0080.00016.70
7.4.240.0050.00316.86
7.4.230.0030.00316.79
7.4.220.0100.01016.87
7.4.210.0080.00916.89
7.4.200.0000.00816.69
7.4.190.0030.00316.87
7.4.160.0130.00416.78
7.4.150.0040.01417.40
7.4.140.0160.00717.86
7.4.130.0070.01316.76
7.4.120.0090.00916.73
7.4.110.0140.00316.76
7.4.100.0100.01016.63
7.4.90.0150.00916.81
7.4.80.0070.01019.39
7.4.70.0120.00616.88
7.4.60.0100.00716.86
7.4.50.0020.00216.79
7.4.40.0040.00722.77
7.4.30.0100.00616.77
7.4.00.0070.00715.03
7.3.330.0000.00613.26
7.3.320.0030.00313.24
7.3.310.0030.00316.52
7.3.300.0070.00016.46
7.3.290.0070.00716.48
7.3.280.0080.00916.48
7.3.270.0130.00717.40
7.3.260.0080.00916.49
7.3.250.0110.00616.52
7.3.240.0130.00316.69
7.3.230.0130.00316.80
7.3.210.0110.00716.54
7.3.200.0150.00919.39
7.3.190.0040.01816.73
7.3.180.0070.01316.64
7.3.170.0080.00816.57
7.3.160.0030.01516.45
7.3.120.0070.01014.88
7.3.110.0030.00715.01
7.3.100.0070.00315.23
7.3.90.0040.01115.12
7.3.80.0060.00914.85
7.3.70.0060.00615.05
7.3.60.0040.01115.12
7.3.50.0110.00414.96
7.3.40.0040.01115.18
7.3.30.0080.00315.19
7.3.20.0070.01016.77
7.3.10.0100.00716.80
7.3.00.0070.01116.71
7.2.330.0100.00716.55
7.2.320.0160.00616.79
7.2.310.0100.00716.66
7.2.300.0110.00516.63
7.2.290.0060.01216.70
7.2.240.0030.01415.03
7.2.230.0060.00915.14
7.2.220.0060.00914.92
7.2.210.0040.00815.04
7.2.200.0120.00614.81
7.2.190.0030.01215.14
7.2.180.0070.00715.08
7.2.170.0030.01315.30
7.2.160.0040.01315.08
7.2.150.0130.00316.85
7.2.140.0030.01117.03
7.2.130.0120.00617.11
7.2.120.0040.01417.01
7.2.110.0060.00917.01
7.2.100.0070.01016.93
7.2.90.0030.01017.10
7.2.80.0060.01317.09
7.2.70.0060.01217.00
7.2.60.0070.01417.12
7.2.50.0070.01116.87
7.2.40.0140.00317.07
7.2.30.0070.01416.94
7.2.20.0170.00316.82
7.2.10.0090.00916.96
7.2.00.0100.00616.94
7.1.330.0060.00615.67
7.1.320.0050.00515.78
7.1.310.0090.00615.66
7.1.300.0070.01015.86
7.1.290.0030.01515.67
7.1.280.0100.00315.73
7.1.270.0070.00716.00
7.1.260.0150.00015.84
7.1.250.0110.00716.09
7.1.70.0000.01617.15
7.1.60.0070.01719.18
7.1.50.0070.00716.74
7.1.00.0070.07322.45
7.0.200.0150.01215.05
7.0.140.0070.07322.13
7.0.100.0270.04319.98
7.0.90.0230.07719.96
7.0.80.0200.06719.97
7.0.70.0270.07719.94
7.0.60.0130.07719.86
7.0.50.0100.08320.36
7.0.40.0070.08020.12
7.0.30.0070.08020.08
7.0.20.0070.07720.04
7.0.10.0000.05020.08
7.0.00.0130.08020.06
5.6.280.0100.06721.01
5.6.250.0070.07320.56
5.6.240.0030.07720.54
5.6.230.0100.07020.59
5.6.220.0100.05320.70
5.6.210.0100.05320.74
5.6.200.0200.07021.01
5.6.190.0100.07721.05
5.6.180.0030.05321.13
5.6.170.0170.07321.03
5.6.160.0000.05321.12
5.6.150.0000.08321.02
5.6.140.0130.08021.04
5.6.130.0100.08021.00
5.6.120.0070.06021.11
5.6.110.0030.04321.13
5.6.100.0100.03720.99
5.6.90.0000.04721.05
5.6.80.0070.05020.40
5.6.70.0030.04020.51
5.6.60.0070.03720.44
5.6.50.0070.04720.50
5.6.40.0070.03320.32
5.6.30.0030.05720.44
5.6.20.0170.02720.52
5.6.10.0000.04320.48
5.6.00.0000.04320.36
5.5.380.0100.07020.41
5.5.370.0100.07720.56
5.5.360.0130.04720.34
5.5.350.0130.07720.46
5.5.340.0070.05320.88
5.5.330.0130.05720.93
5.5.320.0070.08320.90
5.5.310.0070.08020.85
5.5.300.0130.07720.92
5.5.290.0100.08020.83
5.5.280.0000.08320.80
5.5.270.0070.05720.75
5.5.260.0070.04020.90
5.5.250.0030.04320.44
5.5.240.0030.04320.22
5.5.230.0030.04720.18
5.5.220.0100.03320.27
5.5.210.0000.04020.15
5.5.200.0000.04020.27
5.5.190.0100.03320.18
5.5.180.0030.03720.22
5.5.160.0030.03720.22
5.5.150.0030.04020.14
5.5.140.0070.04020.21
5.5.130.0070.04320.27
5.5.120.0070.03720.23
5.5.110.0130.03019.95
5.5.100.0070.03720.12
5.5.90.0000.04720.10
5.5.80.0070.04020.13
5.5.70.0100.03320.06
5.5.60.0030.04020.11
5.5.50.0100.04020.08
5.5.40.0030.04320.13
5.5.30.0100.04320.09
5.5.20.0070.03720.05
5.5.10.0100.03319.99
5.5.00.0100.03719.95
5.4.450.0070.08019.56
5.4.440.0130.07719.44
5.4.430.0070.05719.38
5.4.420.0030.04319.13
5.4.410.0100.03319.11
5.4.400.0100.03319.05
5.4.390.0030.03719.03
5.4.380.0000.05019.03
5.4.370.0100.07019.12
5.4.360.0030.05718.81
5.4.350.0000.04018.90
5.4.340.0070.04318.96
5.4.320.0070.03319.23
5.4.310.0030.03719.12
5.4.300.0000.04019.09
5.4.290.0000.04319.14
5.4.280.0000.04019.03
5.4.270.0030.04018.81
5.4.260.0000.04318.98
5.4.250.0000.04018.89
5.4.240.0070.03719.09
5.4.230.0130.03719.22
5.4.220.0030.03719.14
5.4.210.0000.04019.05
5.4.200.0030.03718.78
5.4.190.0030.07318.78
5.4.180.0030.03719.07
5.4.170.0030.04019.11
5.4.160.0070.03319.01
5.4.150.0000.05319.11
5.4.140.0100.06016.24
5.4.130.0070.03016.21
5.4.120.0100.06016.24
5.4.110.0130.06016.45
5.4.100.0100.07016.27
5.4.90.0100.06716.24
5.4.80.0100.07016.21
5.4.70.0100.07016.43
5.4.60.0070.07016.34
5.4.50.0070.06716.23
5.4.40.0070.06016.24
5.4.30.0000.07016.42
5.4.20.0070.06716.30
5.4.10.0030.07316.15
5.4.00.0130.07315.67
5.3.290.0000.04014.63
5.3.280.0070.03314.58
5.3.270.0030.03714.57
5.3.260.0030.06714.55
5.3.250.0070.03314.61
5.3.240.0030.07714.57
5.3.230.0030.07714.57
5.3.220.0030.08314.42
5.3.210.0030.07014.52
5.3.200.0030.08014.41
5.3.190.0070.06714.51
5.3.180.0030.08314.54
5.3.170.0100.06014.38
5.3.160.0100.07714.55
5.3.150.0100.07014.54
5.3.140.0100.07314.41
5.3.130.0100.06714.51
5.3.120.0000.05714.51
5.3.110.0130.07314.51
5.3.100.0100.07314.04
5.3.90.0100.03714.00
5.3.80.0130.06313.98
5.3.70.0070.07014.01
5.3.60.0030.07714.01
5.3.50.0000.04013.70
5.3.40.0000.05713.90
5.3.30.0070.07013.76
5.3.20.0030.05713.68
5.3.10.0070.06013.51
5.3.00.0100.02713.50
5.2.170.0030.05711.14
5.2.160.0000.04011.00
5.2.150.0070.05311.09
5.2.140.0030.06011.10
5.2.130.0100.05711.14
5.2.120.0030.06011.04
5.2.110.0030.06711.13
5.2.100.0000.06310.89
5.2.90.0000.06311.16
5.2.80.0000.05011.16
5.2.70.0070.03011.12
5.2.60.0000.04310.85
5.2.50.0070.04311.00
5.2.40.0070.03310.98
5.2.30.0000.05310.89
5.2.20.0030.05711.01
5.2.10.0030.03310.90
5.2.00.0070.03710.76
5.1.60.0000.05710.00
5.1.50.0030.0539.99
5.1.40.0030.03710.02
5.1.30.0000.04010.35
5.1.20.0100.03310.39
5.1.10.0000.0679.94
5.1.00.0030.0509.94
5.0.50.0030.0308.55
5.0.40.0030.0208.41
5.0.30.0000.0378.26
5.0.20.0000.0338.23
5.0.10.0000.0478.23
5.0.00.0030.0308.21
4.4.90.0000.0377.87
4.4.80.0030.0277.87
4.4.70.0030.0177.87
4.4.60.0030.0207.87
4.4.50.0070.0307.87
4.4.40.0000.0577.87
4.4.30.0000.0407.87
4.4.20.0030.0337.87
4.4.10.0030.0337.87
4.4.00.0000.0337.87
4.3.110.0030.0307.87
4.3.100.0000.0377.87
4.3.90.0000.0307.87
4.3.80.0070.0377.87
4.3.70.0000.0307.87
4.3.60.0030.0307.87
4.3.50.0070.0307.87
4.3.40.0030.0537.87
4.3.30.0000.0207.87
4.3.20.0000.0377.87
4.3.10.0030.0337.87
4.3.00.0000.0277.87

preferences:
41.32 ms | 400 KiB | 5 Q