3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = mb_convert_encoding('\\', 'UTF-8', 'SJIS-win'); var_dump(bin2hex($s)); // string(2) "5c" $s = iconv('Shift_JIS', 'utf-8', '\\'); var_dump(bin2hex($s)); // string(4) "c2a5" $s = iconv('windows-31j', 'utf-8', '\\'); var_dump(bin2hex($s)); // string(2) "5c" $s = iconv('cp932', 'utf-8', '\\'); var_dump(bin2hex($s)); // string(2) "5c" $s = mb_convert_encoding('~', 'UTF-8', 'SJIS-win'); var_dump(bin2hex($s)); // string(2) "5c" $s = iconv('Shift_JIS', 'utf-8', '~'); var_dump(bin2hex($s)); // string(4) "c2a5" $s = iconv('windows-31j', 'utf-8', '~'); var_dump(bin2hex($s)); // string(2) "5c" $s = iconv('cp932', 'utf-8', '~'); var_dump(bin2hex($s)); // string(2) "5c"

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.0100.01018.30
8.3.50.0100.00521.94
8.3.40.0070.00718.71
8.3.30.0070.00718.92
8.3.20.0080.00020.34
8.3.10.0040.00423.30
8.3.00.0080.00020.77
8.2.180.0110.00716.75
8.2.170.0090.00622.96
8.2.160.0060.00920.66
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0000.00926.16
8.2.120.0000.00819.38
8.2.110.0030.00722.51
8.2.100.0120.00018.03
8.2.90.0050.00318.03
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0060.00618.03
8.2.50.0060.00318.07
8.2.40.0060.00320.07
8.2.30.0030.00618.20
8.2.20.0060.00317.70
8.2.10.0020.00518.22
8.2.00.0050.00319.52
8.1.280.0100.00725.92
8.1.270.0080.00024.00
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.65
8.1.230.0090.00321.16
8.1.220.0050.00317.91
8.1.210.0050.00518.96
8.1.200.0060.00317.36
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0000.00918.76
8.1.160.0000.00722.08
8.1.150.0000.00718.89
8.1.140.0060.00317.60
8.1.130.0030.00517.83
8.1.120.0000.00717.46
8.1.110.0040.00417.51
8.1.100.0000.00817.68
8.1.90.0030.00517.58
8.1.80.0000.00717.64
8.1.70.0030.00317.57
8.1.60.0030.00617.74
8.1.50.0000.00917.58
8.1.40.0000.00717.64
8.1.30.0000.00817.79
8.1.20.0040.00417.65
8.1.10.0040.00417.63
8.1.00.0030.00517.54
8.0.300.0000.00820.08
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0030.00317.34
8.0.260.0030.00317.24
8.0.250.0000.00716.98
8.0.240.0000.00817.14
8.0.230.0030.00317.10
8.0.220.0070.00017.04
8.0.210.0070.00016.91
8.0.200.0030.00316.95
8.0.190.0000.00816.93
8.0.180.0050.00317.10
8.0.170.0040.00416.95
8.0.160.0030.00517.13
8.0.150.0030.00317.06
8.0.140.0000.00717.03
8.0.130.0030.00313.45
8.0.120.0000.01017.18
8.0.110.0060.00317.22
8.0.100.0020.00717.16
8.0.90.0000.01017.16
8.0.80.0040.01917.25
8.0.70.0000.00917.29
8.0.60.0000.00917.25
8.0.50.0020.00717.10
8.0.30.0090.01317.32
8.0.20.0150.01017.41
8.0.10.0000.01017.13
8.0.00.0100.01317.12
7.4.330.0020.00215.06
7.4.320.0050.00316.73
7.4.300.0070.00016.57
7.4.290.0000.00716.47
7.4.280.0000.00816.58
7.4.270.0030.00316.65
7.4.260.0040.00416.68
7.4.250.0000.00917.00
7.4.240.0030.00616.88
7.4.230.0040.00416.88
7.4.220.0040.01816.85
7.4.210.0090.00917.11
7.4.200.0030.00616.80
7.4.160.0100.01016.70
7.4.150.0140.00717.40
7.4.140.0090.01317.86
7.4.130.0070.01417.00
7.4.120.0080.01316.91
7.4.110.0090.01216.75
7.4.100.0090.01217.00
7.4.90.0130.01316.85
7.4.80.0160.01319.39
7.4.70.0090.01416.88
7.4.60.0140.01116.81
7.4.50.0050.01116.74
7.4.40.0100.01216.68
7.4.30.0060.01716.93
7.4.20.0180.00916.82
7.4.10.0100.01416.01
7.4.00.0100.01015.66
7.3.330.0000.00513.30
7.3.320.0000.00513.20
7.3.310.0000.00816.75
7.3.300.0040.00416.46
7.3.290.0070.01416.63
7.3.280.0070.01216.59
7.3.270.0160.00417.40
7.3.260.0180.00716.86
7.3.250.0090.01416.76
7.3.240.0060.01716.70
7.3.230.0150.01116.54
7.3.210.0060.01316.77
7.3.200.0120.01516.59
7.3.190.0100.01616.78
7.3.180.0060.01416.70
7.3.170.0100.01916.75
7.3.160.0130.00816.73
7.3.150.0040.01716.84
7.3.140.0060.01316.64
7.3.130.0110.01015.87
7.3.120.0080.01215.65
7.3.110.0140.01215.72
7.3.100.0090.00915.85
7.3.90.0100.01615.78
7.3.80.0080.01215.72
7.3.70.0080.00815.78
7.3.60.0080.01215.83
7.3.50.0080.01115.88
7.3.40.0110.00715.85
7.3.30.0130.00815.86
7.3.20.0030.01516.94
7.3.10.0110.01216.63
7.3.00.0120.00816.86
7.2.330.0110.01117.00
7.2.320.0090.01817.08
7.2.310.0120.01217.04
7.2.300.0110.01016.88
7.2.290.0100.01416.96
7.2.280.0090.01216.64
7.2.270.0100.01916.99
7.2.260.0120.01016.19
7.2.250.0080.01215.95
7.2.240.0080.01116.14
7.2.230.0160.00916.04
7.2.220.0000.02416.07
7.2.210.0110.01116.13
7.2.200.0120.01016.21
7.2.190.0100.01215.94
7.2.180.0090.01015.96
7.2.170.0130.00515.90
7.2.160.0060.01116.11
7.2.150.0410.00817.02
7.2.140.0090.01116.93
7.2.130.0110.01016.80
7.2.120.0030.01516.90
7.2.110.0110.00716.97
7.2.100.0090.01216.95
7.2.90.0150.00816.93
7.2.80.0100.01116.88
7.2.70.0100.01216.95
7.2.60.0080.01017.04
7.2.50.0110.01016.98
7.2.40.0090.01216.91
7.2.30.0080.01217.10
7.2.20.0200.00916.84
7.2.10.0130.00816.92
7.2.00.0080.01117.74
7.1.330.0600.01016.06
7.1.320.0250.01316.04
7.1.310.0130.01116.07
7.1.300.0150.01116.20
7.1.290.0120.01016.17
7.1.280.0150.00916.13
7.1.270.0150.01115.92
7.1.260.0100.00816.01
7.1.250.0140.01015.96
7.1.240.0160.00716.02
7.1.230.0120.01216.07
7.1.220.0110.01415.95
7.1.210.0110.01516.04
7.1.200.0120.01016.07
7.1.190.0140.01015.89
7.1.180.0100.01516.09
7.1.170.0130.01115.85
7.1.160.0080.01216.14
7.1.150.0150.01115.78
7.1.140.0160.00915.97
7.1.130.0090.01315.95
7.1.120.0120.01116.05
7.1.110.0140.01015.98
7.1.100.0240.00816.11
7.1.90.0160.01216.05
7.1.80.0160.01016.06
7.1.70.0090.00916.38
7.1.60.0260.00816.56
7.1.50.0150.00916.55
7.1.40.0120.01316.07
7.1.30.0170.01215.95
7.1.20.0180.00715.96
7.1.10.0110.01316.03
7.1.00.0100.03818.23
7.0.330.0130.01215.73
7.0.320.0120.01515.64
7.0.310.0130.01415.61
7.0.300.0170.00615.62
7.0.290.0130.00915.73
7.0.280.0130.01115.73
7.0.270.0120.01315.39
7.0.260.0160.00715.53
7.0.250.0100.01915.79
7.0.240.0130.01315.78
7.0.230.0120.01015.80
7.0.220.0130.01215.78
7.0.210.0080.01515.58
7.0.200.0110.00816.08
7.0.190.0160.00515.74
7.0.180.0170.01015.75
7.0.170.0080.01615.87
7.0.160.0100.01415.59
7.0.150.0150.01015.79
7.0.140.0090.03517.92
7.0.130.0180.00915.49
7.0.120.0130.00815.62
7.0.110.0240.03217.05
7.0.100.0250.02117.16
7.0.90.0240.02817.19
7.0.80.0200.02017.24
7.0.70.0190.02917.05
7.0.60.0230.03317.15
7.0.50.0250.03117.12
7.0.40.0110.03416.43
7.0.30.0150.02616.46
7.0.20.0090.03116.34
7.0.10.0060.02616.45
7.0.00.0110.02916.46
5.6.400.0080.01315.52
5.6.390.0160.01415.42
5.6.380.0170.01315.39
5.6.370.0100.01215.25
5.6.360.0160.01115.31
5.6.350.0100.01015.46
5.6.340.0080.01515.52
5.6.330.0150.00815.50
5.6.320.0070.01915.36
5.6.310.0110.01715.58
5.6.300.0080.01515.60
5.6.290.0160.01015.43
5.6.280.0100.03717.29
5.6.270.0170.00815.33
5.6.260.0110.03317.23
5.6.250.0160.03217.18
5.6.240.0130.01917.12
5.6.230.0110.02617.13
5.6.220.0140.02817.19
5.6.210.0070.03617.19
5.6.200.0100.02417.10
5.6.190.0080.02417.23
5.6.180.0110.03417.20
5.6.170.0110.03217.15
5.6.160.0050.03617.14
5.6.150.0110.03417.03
5.6.140.0110.02217.15
5.6.130.0100.02317.24
5.6.120.0080.03617.11
5.6.110.0070.02617.11
5.6.100.0100.02517.10
5.6.90.0090.02217.16
5.6.80.0100.01916.88
5.6.70.0150.02816.89
5.6.60.0110.03416.85
5.6.50.0140.02717.02
5.6.40.0070.02316.89
5.6.30.0110.01816.85
5.6.20.0100.03416.89
5.6.10.0130.02816.85
5.6.00.0130.02716.77
5.5.380.0080.04016.06
5.5.370.0100.02216.15
5.5.360.0150.02315.98
5.5.350.0120.03016.12
5.5.340.0110.03316.25
5.5.330.0150.03116.40
5.5.320.0140.02816.07
5.5.310.0100.03516.17
5.5.300.0120.01716.26
5.5.290.0130.02316.18
5.5.280.0110.03516.23
5.5.270.0090.03416.17
5.5.260.0080.03116.30
5.5.250.0080.02616.08
5.5.240.0090.03216.16
5.5.230.0070.02516.02
5.5.220.0110.01816.13
5.5.210.0090.02015.93
5.5.200.0080.03516.00
5.5.190.0140.02816.00
5.5.180.0090.02516.13
5.5.170.0110.01215.18
5.5.160.0060.03115.93
5.5.150.0180.01516.06
5.5.140.0100.02816.06
5.5.130.0100.01916.18
5.5.120.0140.03816.01
5.5.110.0070.02516.10
5.5.100.0070.03116.05
5.5.90.0110.02315.83
5.5.80.0140.02016.01
5.5.70.0130.01916.06
5.5.60.0160.02315.92
5.5.50.0120.01916.07
5.5.40.0130.01715.98
5.5.30.0070.03515.91
5.5.20.0140.02715.95
5.5.10.0140.03115.98
5.5.00.0090.03215.92
5.4.450.0070.03114.41
5.4.440.0050.02914.54
5.4.430.0120.02914.49
5.4.420.0070.02814.44
5.4.410.0100.03014.35
5.4.400.0080.01914.31
5.4.390.0060.01914.32
5.4.380.0040.01914.24
5.4.370.0100.02914.27
5.4.360.0040.02814.32
5.4.350.0100.02414.29
5.4.340.0080.01914.28
5.4.330.0120.00711.78
5.4.320.0100.01714.31
5.4.310.0100.03014.28
5.4.300.0070.01814.26
5.4.290.0130.02514.30
5.4.280.0100.03214.26
5.4.270.0070.01714.30
5.4.260.0060.02514.37
5.4.250.0100.03014.41
5.4.240.0060.02214.33
5.4.230.0070.02014.31
5.4.220.0100.02914.29
5.4.210.0060.02414.26
5.4.200.0080.01814.31
5.4.190.0070.01714.24
5.4.180.0070.02814.32
5.4.170.0080.03614.27
5.4.160.0060.03714.31
5.4.150.0110.02514.42
5.4.140.0060.01813.44
5.4.130.0050.01913.43
5.4.120.0070.01713.45
5.4.110.0120.01513.45
5.4.100.0060.01913.40
5.4.90.0050.02613.42
5.4.80.0080.01913.52
5.4.70.0070.02813.46
5.4.60.0100.01513.45
5.4.50.0100.01513.42
5.4.40.0070.01913.33
5.4.30.0090.02013.42
5.4.20.0090.01213.42
5.4.10.0080.02813.43
5.4.00.0060.01713.16
5.3.290.0120.02613.10
5.3.280.0100.01712.95
5.3.270.0070.02213.00
5.3.260.0110.03213.15
5.3.250.0110.02013.07
5.3.240.0040.02213.10
5.3.230.0080.01813.02
5.3.220.0100.01713.01
5.3.210.0070.02112.98
5.3.200.0040.02212.97
5.3.190.0110.01812.99
5.3.180.0080.02413.08
5.3.170.0070.02512.98
5.3.160.0100.02513.03
5.3.150.0110.01713.03
5.3.140.0080.01712.95
5.3.130.0110.01513.01
5.3.120.0110.02613.01
5.3.110.0080.03412.93
5.3.100.0040.02312.81
5.3.90.0120.02912.77
5.3.80.0040.03212.89
5.3.70.0110.02812.73
5.3.60.0120.02912.84
5.3.50.0100.03312.81
5.3.40.0090.02112.77
5.3.30.0060.02912.73
5.3.20.0060.03312.69
5.3.10.0080.03012.61
5.3.00.0110.02312.70
5.2.170.0080.03512.19
5.2.160.0090.03012.27
5.2.150.0140.03112.26
5.2.140.0120.02912.18
5.2.130.0100.03912.19
5.2.120.0080.04012.25
5.2.110.0070.02512.26
5.2.100.0070.03912.29
5.2.90.0050.04012.18
5.2.80.0120.03712.20
5.2.70.0070.04112.16
5.2.60.0080.02212.16
5.2.50.0080.03012.15
5.2.40.0050.02512.18
5.2.30.0140.03312.20
5.2.20.0050.03812.11
5.2.10.0070.02512.11
5.2.00.0100.03312.14
5.1.60.0090.03211.93
5.1.50.0110.02411.93
5.1.40.0070.03511.93
5.1.30.0090.01511.93
5.1.20.0100.01611.93
5.1.10.0090.03011.93
5.1.00.0130.01311.93
5.0.50.0070.03411.93
5.0.40.0040.03011.93
5.0.30.0070.03511.93
5.0.20.0030.03211.93
5.0.10.0020.02411.93
5.0.00.0070.03011.93
4.4.90.0040.01211.93
4.4.80.0030.02111.93
4.4.70.0050.01511.93
4.4.60.0030.01611.93
4.4.50.0060.01611.93
4.4.40.0080.02311.93
4.4.30.0040.01611.93
4.4.20.0060.01911.93
4.4.10.0030.02111.93
4.4.00.0050.02211.93
4.3.110.0020.02111.93
4.3.100.0030.01811.93
4.3.90.0040.01411.93
4.3.80.0040.01811.93
4.3.70.0030.01511.93
4.3.60.0030.01911.93
4.3.50.0050.01811.93
4.3.40.0040.01911.93
4.3.30.0040.01511.93
4.3.20.0000.01211.93
4.3.10.0020.01211.93
4.3.00.0040.01011.93

preferences:
41.33 ms | 401 KiB | 5 Q