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][0-9a-f][0-9a-f][0-9a-f])/', '', $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.0060.01218.43
8.3.50.0170.00517.32
8.3.40.0120.00318.94
8.3.30.0120.00618.68
8.3.20.0030.00518.76
8.3.10.0170.00318.89
8.3.00.0080.00019.38
8.2.180.0040.01218.43
8.2.170.0040.01122.96
8.2.160.0040.01121.05
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0080.00020.92
8.2.110.0080.00021.04
8.2.100.0110.00417.84
8.2.90.0040.00419.40
8.2.80.0000.00817.97
8.2.70.0080.00017.74
8.2.60.0000.00817.93
8.2.50.0080.00018.10
8.2.40.0060.00620.59
8.2.30.0040.00418.03
8.2.20.0040.00417.74
8.2.10.0070.00017.91
8.2.00.0000.00717.82
8.1.280.0060.00925.92
8.1.270.0040.00423.99
8.1.260.0110.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00622.10
8.1.230.0070.00317.70
8.1.220.0080.00017.78
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0090.00017.36
8.1.180.0030.00518.10
8.1.170.0060.00318.59
8.1.160.0050.00318.89
8.1.150.0030.00518.60
8.1.140.0040.00417.58
8.1.130.0050.00217.78
8.1.120.0040.00417.46
8.1.110.0000.00717.57
8.1.100.0040.00317.38
8.1.90.0000.00717.56
8.1.80.0030.00317.48
8.1.70.0000.00817.48
8.1.60.0040.00417.66
8.1.50.0050.00217.53
8.1.40.0000.00717.55
8.1.30.0040.00417.67
8.1.20.0000.00717.65
8.1.10.0080.00017.55
8.1.00.0040.00717.54
8.0.300.0090.00018.77
8.0.290.0040.00416.88
8.0.280.0000.00718.58
8.0.270.0030.00317.41
8.0.260.0070.00016.94
8.0.250.0000.00717.12
8.0.240.0030.00317.00
8.0.230.0000.00717.08
8.0.220.0070.00017.04
8.0.210.0000.00717.07
8.0.200.0060.00017.07
8.0.190.0000.00717.08
8.0.180.0070.00016.96
8.0.170.0030.00517.10
8.0.160.0050.00317.11
8.0.150.0020.00517.04
8.0.140.0000.00816.89
8.0.130.0030.00313.43
8.0.120.0050.00316.98
8.0.110.0080.00017.07
8.0.100.0070.00016.93
8.0.90.0000.00716.96
8.0.80.0030.01217.00
8.0.70.0000.00716.99
8.0.60.0080.00017.08
8.0.50.0040.00417.01
8.0.30.0100.00917.23
8.0.20.0050.01317.11
8.0.10.0080.00017.14
8.0.00.0090.01016.99
7.4.330.0000.00613.27
7.4.320.0000.00616.95
7.4.300.0040.00416.93
7.4.290.0070.00016.85
7.4.280.0060.00316.91
7.4.270.0030.00516.70
7.4.260.0000.00513.59
7.4.250.0030.00616.90
7.4.240.0040.00316.81
7.4.230.0050.00316.76
7.4.220.0120.00916.95
7.4.210.0090.00716.92
7.4.200.0070.00017.00
7.4.190.0080.00016.97
7.4.160.0150.00616.75
7.4.150.0070.01116.70
7.4.140.0100.00816.62
7.4.130.0100.00716.74
7.4.120.0060.01116.72
7.4.110.0100.00716.88
7.4.100.0120.00616.82
7.4.90.0070.01116.73
7.4.80.0100.00716.90
7.4.70.0090.00916.67
7.4.60.0030.01216.74
7.4.50.0050.00816.64
7.4.40.0040.00716.78
7.4.30.0070.01016.76
7.4.00.0000.01314.97
7.3.330.0030.00313.28
7.3.320.0050.00213.39
7.3.310.0030.00316.37
7.3.300.0000.00716.50
7.3.290.0040.01216.46
7.3.280.0080.00816.47
7.3.270.0140.00916.64
7.3.260.0070.01016.68
7.3.250.0120.00916.52
7.3.240.0110.00916.67
7.3.230.0040.01216.51
7.3.210.0070.01016.71
7.3.200.0160.00719.39
7.3.190.0130.00916.68
7.3.180.0090.00616.48
7.3.170.0060.00916.63
7.3.160.0080.00816.58
7.3.120.0130.00314.89
7.2.330.0100.00716.66
7.2.320.0120.00616.69
7.2.310.0060.01316.70
7.2.300.0070.01216.73
7.2.290.0060.01116.54
7.2.00.0000.01019.58
7.1.100.0060.00618.46
7.1.70.0030.01017.30
7.1.60.0090.01619.40
7.1.50.0100.01317.11
7.1.00.0030.06022.48
7.0.200.0060.01017.07
7.0.140.0130.06722.00
7.0.120.0030.03322.02
7.0.60.0170.07319.99
7.0.50.0030.08317.80
7.0.40.0100.08020.09
7.0.30.0300.04720.09
7.0.20.0400.08320.16
7.0.10.0230.04020.00
7.0.00.0100.05020.00
5.6.210.0030.04020.71
5.6.200.0030.04018.21
5.6.190.0130.04720.77
5.6.180.0270.05720.61
5.6.170.0100.04720.38
5.6.160.0030.05320.50
5.6.150.0100.07718.19
5.6.140.0070.04018.18
5.6.130.0070.03718.23
5.6.120.0100.06021.14
5.6.110.0100.05320.98
5.6.100.0130.07721.00
5.6.90.0100.08721.01
5.6.80.0100.07720.53
5.6.70.0230.03320.50
5.5.350.0170.05320.38
5.5.340.0070.04317.96
5.5.330.0070.04320.07
5.5.320.0000.04320.29
5.5.310.0130.04320.17
5.5.300.0070.08017.98
5.5.290.0100.05017.95
5.5.280.0070.07720.86
5.5.270.0070.08320.76
5.5.260.0070.04020.84
5.5.250.0000.08020.70
5.5.240.0200.04720.26
5.4.450.1830.04719.32
5.4.440.0000.04019.12
5.4.430.0000.04719.04
5.4.420.0770.06319.37
5.4.410.1400.04319.19
5.4.400.1530.03318.71
5.4.390.1630.04018.99
5.4.380.1670.03719.12
5.4.370.1730.05018.98
5.4.360.1770.04019.12
5.4.350.1470.04019.13
5.4.340.1470.04018.79
5.4.320.1700.04319.25
5.4.310.1800.03718.84
5.4.300.1730.04318.69
5.4.290.0600.06018.84
5.4.280.0000.04718.68
5.4.270.0030.03719.01
5.4.260.0870.03718.82
5.4.250.1730.03719.15
5.4.240.1530.03318.98
5.4.230.1470.03718.83
5.4.220.1570.03319.10
5.4.210.1830.03718.73
5.4.200.1500.04018.96
5.4.190.1630.03718.99
5.4.180.1430.04319.10
5.4.170.1830.03719.00
5.4.160.1700.04718.77
5.4.150.1600.04719.18
5.4.140.0030.05316.43
5.4.130.0100.03316.27
5.4.120.0670.03316.32
5.4.110.1830.04716.45
5.4.100.1530.03716.30
5.4.90.1670.03716.46
5.4.80.1500.03316.39
5.4.70.1430.04016.21
5.4.60.1630.05016.37
5.4.50.1500.03316.36
5.4.40.1770.04316.20
5.4.30.1770.03716.36
5.4.20.1730.04016.36
5.4.10.1630.04316.20
5.4.00.0030.03315.68
5.3.290.0000.08714.52
5.3.280.0700.04014.45
5.3.270.1700.03314.59
5.3.260.1670.04714.62
5.3.250.1730.04314.43
5.3.240.1700.04714.55
5.3.230.1630.03714.43
5.3.220.1870.05314.52
5.3.210.1730.04014.39
5.3.200.1600.04014.40
5.3.190.1770.04314.41
5.3.180.1500.04014.43
5.3.170.1600.03714.44
5.3.160.0100.04714.44
5.3.150.0000.04014.40
5.3.140.0070.03714.54
5.3.130.1500.03314.39
5.3.120.1870.03714.49
5.3.110.1800.03714.49
5.3.100.1600.04013.98
5.3.90.1600.03313.95
5.3.80.1870.03713.92
5.3.70.1570.03313.88
5.3.60.1530.03713.80
5.3.50.1730.04313.82
5.3.40.1570.04313.78
5.3.30.2070.01713.77
5.3.20.1600.03313.68
5.3.10.1500.03713.51
5.3.00.1530.03713.43
5.2.170.1300.02711.05
5.2.160.1570.03311.10
5.2.150.1330.02710.98
5.2.140.1430.02711.00
5.2.130.1670.03011.12
5.2.120.1500.02711.04
5.2.110.1430.04011.11
5.2.100.1500.03311.15
5.2.90.1400.03710.95
5.2.80.1300.02311.11
5.2.70.1530.03310.94
5.2.60.1400.03311.13
5.2.50.1500.03310.83
5.2.40.1270.03010.84
5.2.30.1100.04010.86
5.2.20.1070.02310.89
5.2.10.1200.04010.86
5.2.00.1270.03710.79
5.1.60.1100.0239.96
5.1.50.0970.0279.89
5.1.40.1000.0279.84
5.1.30.1230.02710.30
5.1.20.1070.02310.35
5.1.10.0930.03310.11
5.1.00.0070.02710.11
5.0.50.0030.0208.42
5.0.40.0030.0338.53
5.0.30.0030.0278.27
5.0.20.0000.0278.27
5.0.10.0030.0308.25
5.0.00.0230.0478.39
4.4.90.0670.0207.79
4.4.80.0030.0177.79
4.4.70.0070.0277.79
4.4.60.0000.0207.79
4.4.50.0030.0177.79
4.4.40.0030.0537.79
4.4.30.0000.0207.79
4.4.20.0000.0207.79
4.4.10.0000.0377.79
4.4.00.0000.0307.79
4.3.110.0870.0207.79
4.3.100.0730.0137.79
4.3.90.0770.0237.79
4.3.80.0400.0237.79
4.3.70.0000.0237.79
4.3.60.0000.0307.79
4.3.50.0000.0237.79
4.3.40.0000.0307.79
4.3.30.0030.0137.79
4.3.20.0070.0237.79
4.3.10.0030.0207.79
4.3.00.0000.0377.79

preferences:
48.62 ms | 400 KiB | 5 Q