3v4l.org

run code in 300+ PHP versions simultaneously
<?php $crap = "{\"\u200e\u206a\u200f\u200e\u202d\u206f\u200c\u206a\u202c\u202b\u200f\u206f\u202b\u206e\u206e\u202b\u206e\u202e\u206c\u202b\u206d\u200e\u202a\u206d\u200b\u206c\u206a\u202e\u206b\u200b\u200f\u200b\u202d\u202d\u206f\u206b\u200c\u206a\u206f\u206b\u202e\":32526155,\"\u200c\u200b\u200f\u206c\u206f\u200c\u206f\u202e\u200e\u202c\u206c\u202c\u202a\u200f\u202d\u206b\u206d\u202a\u206b\u202a\u200e\u200c\u202a\u206e\u206e\u206a\u202c\u200b\u206e\u206d\u200f\u200b\u206a\u206c\u206b\u206d\u206c\u206c\u202b\u206c\u202e\":\"868259025153662\",\"\u202c\u200b\u206a\u202d\u202b\u202b\u202c\u202e\u200d\u200c\u202e\u206f\u202c\u206f\u206f\u206d\u202d\u202a\u200c\u206a\u206d\u200c\u202a\u206a\u206a\u200c\u206a\u202a\u206d\u206f\u200f\u202e\u202c\u202e\u200c\u202b\u206d\u206f\u206f\u202b\u202e\":\"25474220\"}"; function charset_decode_utf_8 ($string) { /* Only do the slow convert if there are 8-bit characters */ /* avoid using 0xA0 (\240) in ereg ranges. RH73 does not like that */ if (!preg_match("/[\200-\237]/", $string) && !preg_match("/[\241-\377]/", $string) ) { return $string; } // decode three byte unicode characters $string = preg_replace("/([\340-\357])([\200-\277])([\200-\277])/e", "'&#'.((ord('\\1')-224)*4096 + (ord('\\2')-128)*64 + (ord('\\3')-128)).';'", $string ); // decode two byte unicode characters $string = preg_replace("/([\300-\337])([\200-\277])/e", "'&#'.((ord('\\1')-192)*64+(ord('\\2')-128)).';'", $string ); return $string; } $str = charset_decode_utf_8($crap); echo $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.5.00.0150.00820.30
8.4.150.0020.00014.05
8.4.140.0090.01517.88
8.4.130.0120.00917.93
8.4.120.0030.00624.34
8.4.110.0090.00221.66
8.4.100.0030.00718.66
8.4.90.0110.00919.02
8.4.80.0120.00818.61
8.4.70.0140.00818.23
8.4.60.0060.00318.82
8.4.50.0110.01119.91
8.4.40.0100.00717.84
8.4.30.0060.01317.66
8.4.20.0060.00319.59
8.4.10.0000.01419.80
8.3.280.0130.00718.52
8.3.270.0110.00816.77
8.3.260.0110.00817.17
8.3.250.0090.01018.80
8.3.240.0070.01017.28
8.3.230.0110.00816.57
8.3.220.0090.00918.94
8.3.210.0070.01016.81
8.3.200.0050.00416.88
8.3.190.0100.00816.61
8.3.180.0120.00719.02
8.3.170.0140.00416.72
8.3.160.0120.00618.57
8.3.150.0100.01016.98
8.3.140.0070.01116.86
8.3.130.0100.00018.30
8.3.120.0060.00318.95
8.3.110.0030.00620.94
8.3.100.0080.00024.06
8.3.90.0080.01126.77
8.3.80.0060.00318.31
8.3.70.0110.00418.43
8.3.60.0070.00718.30
8.3.50.0030.01117.42
8.3.40.0150.00618.77
8.3.30.0070.00718.86
8.3.20.0080.00020.16
8.3.10.0040.00423.61
8.3.00.0150.00419.38
8.2.290.0100.00820.63
8.2.280.0090.00518.55
8.2.270.0110.00716.82
8.2.260.0120.00617.28
8.2.250.0070.00719.09
8.2.240.0060.00316.78
8.2.230.0050.00322.58
8.2.220.0100.00037.54
8.2.210.0050.00326.77
8.2.200.0090.00016.88
8.2.190.0070.01016.88
8.2.180.0090.00618.29
8.2.170.0100.00722.96
8.2.160.0130.00720.35
8.2.150.0060.00325.66
8.2.140.0060.00324.66
8.2.130.0050.00322.42
8.2.120.0100.00726.35
8.2.110.0030.00622.01
8.2.100.0060.01217.84
8.2.90.0000.00918.03
8.2.80.0000.00818.04
8.2.70.0000.00917.63
8.2.60.0080.00017.93
8.2.50.0000.00818.16
8.2.40.0060.00322.23
8.2.30.0070.00019.43
8.2.20.0000.00718.05
8.2.10.0080.00018.26
8.2.00.0000.00718.43
8.1.330.0100.00822.25
8.1.320.0130.00816.41
8.1.310.0030.01116.91
8.1.300.0000.00916.41
8.1.290.0030.00630.84
8.1.280.0070.01425.92
8.1.270.0000.00922.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00024.02
8.1.230.0080.00422.81
8.1.220.0000.00817.74
8.1.210.0060.00318.88
8.1.200.0030.00617.35
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0060.00318.70
8.1.160.0070.00018.90
8.1.150.0000.00718.90
8.1.140.0040.00417.75
8.1.130.0030.00619.00
8.1.120.0000.00717.66
8.1.110.0050.00517.62
8.1.100.0050.00317.64
8.1.90.0000.00717.68
8.1.80.0060.00617.51
8.1.70.0030.00517.63
8.1.60.0040.00417.72
8.1.50.0090.00017.71
8.1.40.0030.00617.57
8.1.30.0040.00417.85
8.1.20.0000.00817.68
8.1.10.0040.00417.73
8.1.00.0050.00317.64
8.0.300.0040.00421.80
8.0.290.0070.00017.00
8.0.280.0000.00818.54
8.0.270.0000.00716.96
8.0.260.0030.00319.00
8.0.250.0030.00317.14
8.0.240.0070.00017.08
8.0.230.0000.00717.09
8.0.220.0030.00317.05
8.0.210.0030.00317.10
8.0.200.0060.00017.14
8.0.190.0000.00817.14
8.0.180.0040.00417.10
8.0.170.0030.00617.15
8.0.160.0070.00016.95
8.0.150.0040.00417.00
8.0.140.0070.00017.01
8.0.130.0030.00313.52
8.0.120.0070.00317.04
8.0.110.0040.00417.07
8.0.100.0000.00717.04
8.0.90.0040.00417.04
8.0.80.0060.01316.95
8.0.70.0000.00716.91
8.0.60.0040.00317.06
8.0.50.0050.00317.18
8.0.30.0100.00817.31
8.0.20.0080.01217.43
8.0.10.0070.00017.03
8.0.00.0130.00716.91
7.4.330.0050.00015.55
7.4.320.0070.00016.75
7.4.300.0000.00616.84
7.4.290.0000.00816.75
7.4.280.0040.00416.81
7.4.270.0070.00016.88
7.4.260.0000.00716.78
7.4.250.0040.00416.76
7.4.240.0030.00316.86
7.4.230.0030.00516.75
7.4.220.0000.00716.74
7.4.210.0070.00716.87
7.4.200.0030.00316.83
7.4.160.0090.00916.71
7.4.150.0140.00417.40
7.4.140.0100.00917.86
7.4.130.0080.00816.56
7.4.120.0090.01116.70
7.4.110.0060.01216.71
7.4.100.0070.01116.79
7.4.90.0040.01316.72
7.4.80.0120.00619.39
7.4.70.0040.01416.79
7.4.60.0070.01316.40
7.4.50.0110.00716.69
7.4.40.0140.00316.63
7.4.00.0100.00315.34
7.3.330.0030.00713.29
7.3.320.0000.00513.47
7.3.310.0000.00716.47
7.3.300.0000.00716.33
7.3.290.0080.00816.47
7.3.280.0070.01116.41
7.3.270.0130.00717.40
7.3.260.0090.00916.48
7.3.250.0100.00816.69
7.3.240.0120.00916.47
7.3.230.0130.00416.57
7.3.210.0060.01116.66
7.3.200.0090.01216.65
7.3.190.0100.00716.86
7.3.180.0090.00616.28
7.3.170.0030.02016.90
7.3.160.0080.00916.58
7.3.120.0030.01314.71
7.3.110.0030.01615.33
7.3.100.0070.00714.99
7.3.90.0040.00715.03
7.3.80.0030.01015.34
7.3.70.0030.01015.13
7.3.60.0030.00914.99
7.3.50.0060.00614.75
7.3.40.0040.01115.11
7.3.30.0090.00914.85
7.3.20.0000.01616.90
7.3.10.0060.01016.51
7.3.00.0110.00416.67
7.2.330.0070.01016.83
7.2.320.0060.01516.73
7.2.310.0070.01016.83
7.2.300.0090.00616.82
7.2.290.0100.00716.86
7.2.250.0070.01114.91
7.2.240.0100.00615.06
7.2.230.0060.00915.39
7.2.220.0040.01115.14
7.2.210.0030.00615.24
7.2.200.0060.00315.41
7.2.190.0090.00015.28
7.2.180.0030.01015.22
7.2.170.0060.00915.00
7.2.60.0080.00617.03
7.2.10.0180.01918.07
7.2.00.0200.00818.13
7.1.330.0130.00315.79
7.1.320.0120.00316.04
7.1.310.0030.00616.01
7.1.300.0090.00015.65
7.1.290.0120.00616.03
7.1.280.0000.01615.63
7.1.270.0000.00815.89
7.1.260.0050.00516.09
7.1.200.0060.00616.00
7.1.130.0210.01216.57
7.1.120.0140.01116.82
7.1.110.0140.01216.36
7.1.100.0190.01216.49
7.1.90.0220.00616.40
7.1.80.0180.00916.50
7.1.70.0180.01115.59
7.1.60.0680.01633.28
7.1.50.0350.01533.06
7.1.40.0320.01532.77
7.1.30.0320.01832.86
7.1.20.0430.00932.92
7.1.10.0260.01215.02
7.1.00.0180.00915.10

preferences:
159.51 ms | 403 KiB | 5 Q