3v4l.org

run code in 300+ PHP versions simultaneously
<?php function unicode2utf8($c) { $output=""; if($c < 0x80) { return chr($c); } else if($c < 0x800) { return chr( 0xc0 | ($c >> 6) ).chr( 0x80 | ($c & 0x3f) ); } else if($c < 0x10000) { return chr( 0xe0 | ($c >> 12) ).chr( 0x80 | (($c >> 6) & 0x3f) ).chr( 0x80 | ($c & 0x3f) ); } else if($c < 0x200000) { return chr(0xf0 | ($c >> 18)).chr(0x80 | (($c >> 12) & 0x3f)).chr(0x80 | (($c >> 6) & 0x3f)).chr(0x80 | ($c & 0x3f)); } return false; } echo unicode2utf8("http\u00253A\u00252F\u00252Fwww.splicecommunity.com\u00252Fmedia\u00252F5735709\u00252Fadbne_hero-1.jpg");

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.0070.00718.27
8.3.50.0160.00521.09
8.3.40.0080.00818.63
8.3.30.0100.01019.06
8.3.20.0080.00020.20
8.3.10.0080.00021.92
8.3.00.0040.00422.39
8.2.180.0070.00716.38
8.2.170.0100.00722.96
8.2.160.0060.00919.04
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00019.77
8.2.110.0030.00722.25
8.2.100.0110.00017.90
8.2.90.0050.00219.05
8.2.80.0000.00818.03
8.2.70.0060.00317.50
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0040.00419.88
8.2.30.0070.00418.08
8.2.20.0040.00417.68
8.2.10.0080.00017.71
8.2.00.0080.00017.57
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0030.00526.35
8.1.250.0050.00228.09
8.1.240.0070.00323.83
8.1.230.0070.00419.02
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0070.00417.13
8.1.190.0000.00817.51
8.1.180.0040.00418.71
8.1.170.0040.00418.38
8.1.160.0000.00722.14
8.1.150.0040.00418.57
8.1.140.0030.00617.47
8.1.130.0040.00417.84
8.1.120.0000.00717.48
8.1.110.0080.00017.52
8.1.100.0000.00717.46
8.1.90.0030.00317.41
8.1.80.0000.00717.47
8.1.70.0030.00317.44
8.1.60.0060.00317.54
8.1.50.0070.00017.57
8.1.40.0080.00017.56
8.1.30.0000.00717.66
8.1.20.0080.00017.57
8.1.10.0070.00017.53
8.1.00.0000.00717.36
8.0.300.0050.00218.77
8.0.290.0000.00717.16
8.0.280.0000.00718.38
8.0.270.0030.00317.13
8.0.260.0030.00316.84
8.0.250.0030.00317.02
8.0.240.0030.00517.02
8.0.230.0030.00316.86
8.0.220.0000.00716.98
8.0.210.0040.00416.80
8.0.200.0030.00316.93
8.0.190.0060.00316.88
8.0.180.0040.00416.82
8.0.170.0030.00516.98
8.0.160.0000.00816.97
8.0.150.0000.00916.75
8.0.140.0070.00016.79
8.0.130.0030.00313.34
8.0.120.0030.00616.84
8.0.110.0030.00516.91
8.0.100.0040.00416.93
8.0.90.0040.00416.89
8.0.80.0090.00616.81
8.0.70.0040.00416.97
8.0.60.0040.00417.03
8.0.50.0040.00416.91
8.0.30.0090.00917.12
8.0.20.0180.00017.40
8.0.10.0040.00416.99
8.0.00.0080.01016.73
7.4.330.0050.00015.00
7.4.320.0040.00416.54
7.4.300.0060.00016.54
7.4.290.0030.00316.54
7.4.280.0030.00316.59
7.4.270.0030.00316.47
7.4.260.0000.00716.59
7.4.250.0040.00416.52
7.4.240.0040.00316.48
7.4.230.0070.00016.70
7.4.220.0140.01016.49
7.4.210.0050.01116.56
7.4.200.0000.00716.57
7.4.190.0050.00216.59
7.4.160.0110.00516.41
7.4.150.0120.00417.40
7.4.140.0130.00817.86
7.4.130.0090.00916.72
7.4.120.0050.01116.46
7.4.110.0090.00916.75
7.4.100.0120.01216.66
7.4.90.0070.01016.63
7.4.80.0040.01519.39
7.4.70.0160.01016.45
7.4.60.0070.01316.55
7.4.50.0040.00416.30
7.4.40.0040.01522.77
7.4.30.0070.01016.38
7.4.00.0060.00315.14
7.3.330.0050.00013.11
7.3.320.0000.00513.30
7.3.310.0030.00316.43
7.3.300.0030.00316.34
7.3.290.0060.00916.29
7.3.280.0090.00816.30
7.3.270.0070.01017.40
7.3.260.0110.00716.41
7.3.250.0120.00616.51
7.3.240.0110.00716.64
7.3.230.0110.01116.57
7.3.210.0120.00416.55
7.3.200.0070.01719.39
7.3.190.0120.00616.59
7.3.180.0150.00616.45
7.3.170.0030.01816.69
7.3.160.0120.00316.68
7.3.120.0090.00614.87
7.2.330.0100.00716.55
7.2.320.0170.00016.79
7.2.310.0070.01016.62
7.2.300.0080.00816.51
7.2.290.0090.01316.34
7.2.00.0090.00919.36
7.1.100.0040.01118.10
7.1.70.0000.01017.13
7.1.60.0090.01619.82
7.1.50.0100.01417.02
7.1.00.0030.06722.36
7.0.200.0050.00216.78
7.0.140.0100.06322.09
7.0.60.0130.07320.07
7.0.50.0070.04017.83
7.0.40.0070.05020.13
7.0.30.0300.06720.16
7.0.20.0330.07020.25
7.0.10.0070.08320.26
7.0.00.0070.05320.20
5.6.280.0030.07321.11
5.6.210.0070.06720.62
5.6.200.0130.04318.16
5.6.190.0170.05320.41
5.6.180.0300.08020.63
5.6.170.0330.05320.50
5.6.160.0030.07020.39
5.6.150.0170.04718.29
5.6.140.0000.04718.23
5.6.130.0100.06718.14
5.6.120.0030.05721.02
5.6.110.0070.07021.02
5.6.100.0070.07321.10
5.6.90.0070.08720.99
5.6.80.0030.06720.39
5.6.70.2730.03320.39
5.5.350.0030.08720.43
5.5.340.0100.07317.96
5.5.330.0070.08320.47
5.5.320.0200.05720.24
5.5.310.0300.07320.27
5.5.300.0170.06317.96
5.5.290.0070.04318.04
5.5.280.0030.05720.88
5.5.270.0070.07720.80
5.5.260.0000.04320.66
5.5.250.0070.08020.70
5.5.240.0130.07020.37
5.4.450.0700.06319.63
5.4.440.0700.06019.61
5.4.430.1830.07019.52
5.4.420.0630.05719.41
5.4.410.0800.06019.38
5.4.400.1200.06018.83
5.4.390.0930.06318.50
5.4.380.0270.06718.47
5.4.370.0100.05718.78
5.4.360.0170.04718.51
5.4.350.0130.05018.57
5.4.340.0200.04718.79
5.4.320.0040.04512.51
5.4.310.0090.04012.51
5.4.300.0060.04012.52
5.4.290.0100.03812.51
5.4.280.0050.04312.41
5.4.270.0060.03912.41
5.4.260.0040.04912.40
5.4.250.0130.04718.72
5.4.240.0100.08019.09
5.4.230.0070.05318.72
5.4.220.0030.05718.82
5.4.210.0100.06318.83
5.4.200.0100.05018.93
5.4.190.0070.06018.62
5.4.180.0100.05718.72
5.4.170.0100.05718.86
5.4.160.0070.05318.79
5.4.150.0130.05318.70
5.4.140.0100.05316.36
5.4.130.0070.04716.51
5.4.120.0100.05016.29
5.4.110.0100.05316.43
5.4.100.0130.04716.50
5.4.90.0170.04016.49
5.4.80.0130.05316.44
5.4.70.0100.05316.68
5.4.60.0030.05716.36
5.4.50.0170.04716.40
5.4.40.0100.05016.28
5.4.30.0070.05316.59
5.4.20.0170.04716.23
5.4.10.0170.06316.51
5.4.00.0230.06315.95
5.3.290.0070.04812.80
5.3.280.0100.05714.59
5.3.270.0030.05714.45
5.3.260.0070.05714.60
5.3.250.0170.06014.84
5.3.240.0030.06714.61
5.3.230.0030.05314.79
5.3.220.0100.05014.75
5.3.210.0100.06314.56
5.3.200.0130.04714.41
5.3.190.0070.05314.66
5.3.180.0170.04314.48
5.3.170.0170.06314.64
5.3.160.0070.05314.55
5.3.150.0030.08314.58
5.3.140.0030.05714.64
5.3.130.0100.05714.54
5.3.120.0100.06714.65
5.3.110.0030.07014.78
5.3.100.0100.05314.05
5.3.90.0100.06314.11
5.3.80.0130.06714.02
5.3.70.0100.05013.93
5.3.60.0170.06314.09
5.3.50.0170.05014.13
5.3.40.0130.04714.12
5.3.30.0230.05313.90
5.3.20.0030.06013.53
5.3.10.0030.07713.72
5.3.00.0100.07013.87
5.2.170.0170.04711.24
5.2.160.0030.05711.31
5.2.150.0070.05711.13
5.2.140.0130.05311.05
5.2.130.0030.06011.19
5.2.120.0030.05311.10
5.2.110.0000.04711.01
5.2.100.0030.04311.18
5.2.90.0070.06010.94
5.2.80.0130.05011.20
5.2.70.0100.05711.18
5.2.60.0030.04311.15
5.2.50.0130.03311.02
5.2.40.0100.03710.96
5.2.30.0130.04311.07
5.2.20.0000.06311.07
5.2.10.0030.05710.96
5.2.00.0100.04310.82
5.1.60.0030.0379.97
5.1.50.0030.03710.02
5.1.40.0100.0509.91
5.1.30.0170.03010.41
5.1.20.0100.04010.47
5.1.10.0070.03310.08
5.1.00.0130.04010.14
5.0.50.0070.0238.54
5.0.40.0000.0308.49
5.0.30.0000.0508.47
5.0.20.0070.0308.20
5.0.10.0000.0338.15
5.0.00.0070.0538.33
4.4.90.0000.0277.52
4.4.80.0030.0207.52
4.4.70.0000.0307.52
4.4.60.0070.0177.52
4.4.50.0070.0207.52
4.4.40.0070.0377.52
4.4.30.0030.0277.52
4.4.20.0000.0277.52
4.4.10.0030.0307.52
4.4.00.0070.0307.52
4.3.110.0070.0207.52
4.3.100.0070.0177.52
4.3.90.0000.0237.52
4.3.80.0000.0407.52
4.3.70.0030.0237.52
4.3.60.0070.0177.52
4.3.50.0000.0307.52
4.3.40.0070.0307.52
4.3.30.0000.0277.52
4.3.20.0000.0237.52
4.3.10.0070.0177.52
4.3.00.0030.0207.19

preferences:
49.6 ms | 401 KiB | 5 Q