3v4l.org

run code in 300+ PHP versions simultaneously
<?php $backslash_and_tilde = "~\\"; $sjis2004_backslash_and_tilde = mb_convert_encoding($backslash_and_tilde, "SJIS-2004", "UTF-8"); var_dump( bin2hex($sjis2004_backslash_and_tilde), $re_convert = mb_convert_encoding($sjis2004_backslash_and_tilde, "UTF-8", "SJIS-2004"), bin2hex($re_convert) );

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.10.0040.00421.97
8.5.00.0110.01121.97
8.4.150.0030.00014.05
8.4.140.0140.00717.90
8.4.130.0120.00819.05
8.4.120.0060.01023.94
8.4.110.0070.00618.70
8.4.100.0100.00917.70
8.4.90.0030.00617.91
8.4.80.0150.00519.39
8.4.70.0100.00917.96
8.4.60.0080.01322.36
8.4.50.0020.00620.50
8.4.40.0130.00617.99
8.4.30.0040.01518.92
8.4.20.0120.00617.96
8.4.10.0170.00322.11
8.3.280.0130.00718.51
8.3.270.0120.00716.81
8.3.260.0150.00516.91
8.3.250.0120.00718.66
8.3.240.0140.00518.85
8.3.230.0150.00416.74
8.3.220.0110.00516.81
8.3.210.0100.00918.59
8.3.200.0040.00516.93
8.3.190.0090.01017.02
8.3.180.0130.00817.04
8.3.170.0100.00017.21
8.3.160.0150.00418.76
8.3.150.0060.00316.68
8.3.140.0080.00019.15
8.3.130.0040.00418.67
8.3.120.0070.01118.99
8.3.110.0070.00720.94
8.3.100.0060.00618.41
8.3.90.0130.00626.77
8.3.80.0040.00416.63
8.3.70.0110.00316.88
8.3.60.0060.00918.55
8.3.50.0060.00920.30
8.3.40.0110.00420.34
8.3.30.0030.01418.79
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0040.00419.03
8.2.280.0130.00918.50
8.2.270.0110.00717.45
8.2.260.0000.00716.71
8.2.250.0030.00518.56
8.2.240.0040.01118.84
8.2.230.0050.00522.58
8.2.220.0070.00724.06
8.2.210.0040.00426.77
8.2.200.0060.00318.29
8.2.190.0180.00316.63
8.2.180.0100.01025.92
8.2.170.0120.00318.83
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.84
8.2.110.0060.00321.17
8.2.100.0030.00919.64
8.2.90.0050.00519.36
8.2.80.0080.00018.16
8.2.70.0060.00317.63
8.2.60.0030.00618.05
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0040.00418.20
8.2.20.0080.00019.41
8.2.10.0040.00418.06
8.2.00.0070.00019.48
8.1.330.0050.00421.88
8.1.320.0100.00916.32
8.1.310.0070.01118.41
8.1.300.0000.00918.04
8.1.290.0090.00030.84
8.1.280.0110.00725.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00019.09
8.1.230.0090.00322.25
8.1.220.0000.00917.74
8.1.210.0090.00018.77
8.1.200.0040.00417.22
8.1.190.0040.00417.48
8.1.180.0060.00318.10
8.1.170.0030.00518.62
8.1.160.0000.00718.97
8.1.150.0020.00518.62
8.1.140.0060.00317.57
8.1.130.0030.00518.95
8.1.120.0050.00217.51
8.1.110.0000.00717.52
8.1.100.0120.00417.42
8.1.90.0120.00517.43
8.1.80.0120.00517.44
8.1.70.0080.00417.47
8.1.60.0160.00217.55
8.1.50.0150.00317.51
8.1.40.0130.00517.55
8.1.30.0110.00817.65
8.1.20.0150.00217.53
8.1.10.0150.00317.56
8.1.00.0170.00217.49
8.0.300.0050.00318.77
8.0.290.0000.00716.75
8.0.280.0080.00018.52
8.0.270.0030.00318.08
8.0.260.0030.00318.51
8.0.250.0030.00317.05
8.0.240.0030.00316.93
8.0.230.0090.00316.95
8.0.220.0110.00416.95
8.0.210.0110.00416.91
8.0.200.0120.00316.91
8.0.190.0100.00516.92
8.0.180.0080.00716.89
8.0.170.0090.00616.94
8.0.160.0060.00916.88
8.0.150.0110.00516.92
8.0.140.0080.00816.83
8.0.130.0140.00116.79
8.0.120.0130.00316.93
8.0.110.0130.00116.98
8.0.100.0090.00516.93
8.0.90.0110.00316.83
8.0.80.0110.00416.88
8.0.70.0130.00116.85
8.0.60.0100.00516.90
8.0.50.0120.00416.92
8.0.30.0090.00516.81
8.0.20.0130.00316.94
8.0.10.0110.00416.92
8.0.00.0120.00417.00
7.4.330.0000.00515.55
7.4.320.0030.00316.68
7.4.300.0080.00316.42
7.4.290.0130.00516.63
7.4.280.0110.00416.62
7.4.270.0100.00516.64
7.4.260.0100.00316.65
7.4.250.0100.00216.52
7.4.240.0090.00516.63
7.4.230.0060.00916.48
7.4.220.0130.00216.60
7.4.210.0100.00516.51
7.4.200.0080.00616.57
7.4.190.0090.00316.69
7.4.180.0090.00316.40
7.4.160.0070.00716.48
7.4.150.0110.00416.42
7.4.140.0070.00516.53
7.4.130.0070.00516.13
7.4.120.0040.00716.40
7.4.110.0070.00416.28
7.4.100.0060.00616.35
7.4.90.0050.00616.24
7.4.80.0090.00216.37
7.4.70.0070.00516.26
7.4.60.0060.00616.29
7.4.50.0080.00315.97
7.4.40.0030.00916.37
7.4.30.0040.00816.34
7.4.20.0120.00016.11
7.4.10.0110.00016.31
7.4.00.0060.00616.24
7.3.330.0100.00716.16
7.3.320.0110.00616.22
7.3.310.0160.00016.32
7.3.300.0050.01016.25
7.3.290.0110.00716.40
7.3.280.0120.00516.26
7.3.270.0110.00516.23
7.3.260.0100.00716.34
7.3.250.0090.00916.11
7.3.240.0160.00016.35
7.3.230.0070.01016.25
7.3.220.0140.00316.36
7.3.210.0160.00016.36
7.3.200.0160.00016.07
7.3.190.0120.00416.09
7.3.180.0090.00816.23
7.3.170.0080.00816.31
7.3.160.0160.00016.29
7.3.150.0130.00316.22
7.3.140.0080.00816.38
7.3.130.0120.00416.10
7.3.120.0120.00316.21
7.3.110.0100.00516.12
7.3.100.0100.00516.09
7.3.90.0070.00716.47
7.3.80.0100.00616.04
7.3.70.0070.00716.07
7.3.60.0150.00016.22
7.3.50.0090.00616.33
7.3.40.0100.00516.22
7.3.30.0050.01016.30
7.3.20.0110.00517.95
7.3.10.0110.00418.16
7.3.00.0100.00517.95
7.2.340.0140.00016.34
7.2.330.0110.00416.41
7.2.320.0120.00316.42
7.2.310.0110.00416.26
7.2.300.0150.00016.32
7.2.290.0040.01116.39
7.2.280.0090.00516.20
7.2.270.0110.00316.26
7.2.260.0100.00416.28
7.2.250.0100.00516.39
7.2.240.0130.00216.27
7.2.230.0150.00016.24
7.2.220.0090.00616.21
7.2.210.0130.00316.24
7.2.200.0180.00016.61
7.2.190.0180.00016.46
7.2.180.0130.00316.43
7.2.170.0130.00216.36
7.2.160.0120.00416.38
7.2.150.0090.00918.39
7.2.140.0110.00618.32
7.2.130.0130.00818.52
7.2.120.0200.00318.52
7.2.110.0160.00418.40
7.2.100.0240.00018.36
7.2.90.0210.00018.28
7.2.80.0150.00418.44
7.2.70.0130.00418.32
7.2.60.0140.00518.23
7.2.50.0100.00718.42
7.2.40.0160.00018.44
7.2.30.0180.00018.55
7.2.20.0100.00718.35
7.2.10.0170.00018.41
7.2.00.0230.00318.47
7.1.330.0150.00417.41
7.1.320.0120.00417.33
7.1.310.0120.00417.41
7.1.300.0080.00817.43
7.1.290.0140.00317.54
7.1.280.0100.00717.43
7.1.270.0160.00017.52
7.1.260.0000.01617.32
7.1.250.0140.00317.15
7.1.240.0100.00617.29
7.1.230.0110.00517.39
7.1.220.0120.00317.37
7.1.210.0090.00517.39
7.1.200.0050.01017.32
7.1.190.0100.00517.37
7.1.180.0130.00517.31
7.1.170.0160.00017.29
7.1.160.0120.00617.23
7.1.150.0140.00517.35
7.1.140.0160.00017.31
7.1.130.0190.00317.27
7.1.120.0120.00517.20
7.1.110.0150.00317.35
7.1.100.0120.00417.32
7.1.90.0080.00817.37
7.1.80.0150.00317.20
7.1.70.0140.00317.32
7.1.60.0150.00217.39
7.1.50.0060.01117.20
7.1.40.0050.01117.25
7.1.30.0130.00317.41
7.1.20.0110.00517.47
7.1.10.0140.00417.41
7.1.00.0110.00717.28
7.0.330.0130.00516.83
7.0.320.0130.00417.02
7.0.310.0120.00417.11
7.0.300.0130.00416.89
7.0.290.0120.00417.11
7.0.280.0130.00316.89
7.0.270.0130.00316.93
7.0.260.0110.00617.11
7.0.250.0150.00317.27
7.0.240.0160.00017.14
7.0.230.0140.00717.12
7.0.220.0130.00216.90
7.0.210.0100.00616.96
7.0.200.0170.00016.93
7.0.190.0100.00516.98
7.0.180.0160.00016.98
7.0.170.0150.00516.99
7.0.160.0130.00317.06
7.0.150.0180.00016.77
7.0.140.0110.00516.77
7.0.130.0140.00317.23
7.0.120.0080.00717.10
7.0.110.0060.00916.74
7.0.100.0180.00016.82
7.0.90.0080.00816.78
7.0.80.0130.00416.82
7.0.70.0070.01016.66
7.0.60.0160.00016.96
7.0.50.0120.00316.79
7.0.40.0080.00816.95
7.0.30.0130.00317.18
7.0.20.0130.00217.12
7.0.10.0120.00217.04
7.0.00.0120.00416.95
5.6.400.0070.00715.73
5.6.390.0090.00415.92
5.6.380.0130.00015.86
5.6.370.0130.00415.95
5.6.360.0070.00715.90
5.6.350.0070.00715.92
5.6.340.0070.00715.66
5.6.330.0090.00515.66
5.6.320.0100.00315.72
5.6.310.0070.00715.71
5.6.300.0100.00315.66
5.6.290.0140.00015.73
5.6.280.0140.00015.89
5.6.270.0080.00615.66
5.6.260.0110.00315.72
5.6.250.0130.00015.65
5.6.240.0070.00715.83
5.6.230.0080.00515.85
5.6.220.0130.00015.69
5.6.210.0130.00015.71
5.6.200.0070.00715.84
5.6.190.0130.00016.00
5.6.180.0130.00015.93
5.6.170.0100.00315.91
5.6.160.0130.00015.96
5.6.150.0080.00515.82
5.6.140.0080.00515.90
5.6.130.0140.00015.70
5.6.120.0060.00615.89
5.6.110.0100.00315.77
5.6.100.0110.00315.81
5.6.90.0110.00215.73
5.6.80.0070.00715.82
5.6.70.0090.00516.02
5.6.60.0090.00416.07
5.6.50.0060.00615.73
5.6.40.0140.00015.77
5.6.30.0140.00015.62
5.6.20.0120.00215.51
5.6.10.0030.01015.73
5.6.00.0070.00715.74
5.5.380.0070.00715.84
5.5.370.0070.00715.76
5.5.360.0050.00915.80
5.5.350.0070.00715.34
5.5.340.0090.00415.74
5.5.330.0140.00015.40
5.5.320.0080.00515.57
5.5.310.0120.00315.73
5.5.300.0090.00515.59
5.5.290.0110.00215.59
5.5.280.0030.01015.46
5.5.270.0070.00715.41
5.5.260.0100.00515.48
5.5.250.0080.00415.61
5.5.240.0130.00015.92
5.5.230.0070.00715.68
5.5.220.0110.00315.81
5.5.210.0060.00615.97
5.5.200.0090.00515.78
5.5.190.0090.00415.52
5.5.180.0100.00315.75
5.5.170.0100.00315.51
5.5.160.0070.00715.55
5.5.150.0140.00015.49
5.5.140.0050.00815.37
5.5.130.0100.00315.40
5.5.120.0080.00415.55
5.5.110.0030.01015.40
5.5.100.0070.00715.66
5.5.90.0090.00415.68
5.5.80.0100.00315.51
5.5.70.0090.00315.91
5.5.60.0080.00615.63
5.5.50.0080.00415.43
5.5.40.0090.00415.64
5.5.30.0090.00515.91
5.5.20.0100.00315.80
5.5.10.0110.00215.39
5.5.00.0080.00515.77
5.4.450.0060.00612.49
5.4.440.0070.00512.52
5.4.430.0110.00012.55
5.4.420.0110.00012.77
5.4.410.0080.00312.57
5.4.400.0040.00812.64
5.4.390.0080.00512.77
5.4.380.0080.00412.57
5.4.370.0040.00812.46
5.4.360.0050.00512.56
5.4.350.0120.00012.57
5.4.340.0050.00512.61
5.4.330.0080.00312.55
5.4.320.0110.00012.68
5.4.310.0110.00012.66
5.4.300.0110.00012.82
5.4.290.0080.00312.75
5.4.280.0080.00312.51
5.4.270.0110.00012.52
5.4.260.0040.00812.46
5.4.250.0110.00012.58
5.4.240.0110.00012.44
5.4.230.0100.00012.43
5.4.220.0110.00012.50
5.4.210.0110.00012.26
5.4.200.0110.00012.27
5.4.190.0110.00012.57
5.4.180.0050.00512.28
5.4.170.0070.00412.42
5.4.160.0100.00012.63
5.4.150.0070.00312.31
5.4.140.0090.00212.44
5.4.130.0030.00712.50
5.4.120.0100.00012.72
5.4.110.0070.00412.57
5.4.100.0110.00012.61
5.4.90.0070.00412.60
5.4.80.0110.00012.57
5.4.70.0110.00012.53
5.4.60.0070.00412.59
5.4.50.0050.00512.38
5.4.40.0070.00412.59
5.4.30.0040.00812.48
5.4.20.0070.00412.52
5.4.10.0070.00412.63
5.4.00.0090.00312.30
5.3.290.0040.00713.13
5.3.280.0000.01013.02
5.3.270.0050.00512.86
5.3.260.0050.00512.76
5.3.250.0070.00412.87
5.3.240.0070.00413.02
5.3.230.0050.00513.08
5.3.220.0050.00513.07
5.3.210.0120.00012.69
5.3.200.0110.00013.04
5.3.190.0050.00512.90
5.3.180.0110.00013.11
5.3.170.0070.00412.97
5.3.160.0110.00013.14
5.3.150.0050.00513.11
5.3.140.0080.00412.85
5.3.130.0000.01113.10
5.3.120.0060.00612.78
5.3.110.0000.01213.05
5.3.100.0040.00813.13
5.3.90.0050.00712.85
5.3.80.0110.00012.77
5.3.70.0090.00312.78
5.3.60.0120.00013.12
5.3.50.0080.00412.68
5.3.40.0080.00412.68
5.3.30.0070.00312.70
5.3.20.0040.00712.97
5.3.10.0040.00812.68
5.3.00.0030.00712.63
5.2.170.0060.00312.22
5.2.160.0080.00012.00
5.2.150.0080.00012.27
5.2.140.0030.00512.14
5.2.130.0040.00412.09
5.2.120.0060.00312.32
5.2.110.0090.00012.26
5.2.100.0070.00312.37
5.2.90.0040.00412.09
5.2.80.0050.00512.16
5.2.70.0060.00312.15
5.2.60.0040.00411.84
5.2.50.0000.00912.02
5.2.40.0030.00612.20
5.2.30.0000.00812.17
5.2.20.0090.00011.75
5.2.10.0000.00811.64
5.2.00.0030.00511.67
5.1.60.0030.00511.20
5.1.50.0000.00710.98
5.1.40.0040.00411.09
5.1.30.0040.00411.36
5.1.20.0060.00211.34
5.1.10.0000.00711.27
5.1.00.0070.00010.99
5.0.50.0060.00010.33
5.0.40.0000.0079.95
5.0.30.0030.00310.15
5.0.20.0050.0029.91
5.0.10.0030.0039.96
5.0.00.0030.0039.70
4.4.90.0040.0009.32
4.4.80.0050.0009.32
4.4.70.0040.0009.32
4.4.60.0030.0009.32
4.4.50.0040.0009.32
4.4.40.0040.0009.32
4.4.30.0040.0009.32
4.4.20.0050.0009.32
4.4.10.0040.0009.32
4.4.00.0040.0009.32
4.3.110.0000.0049.32
4.3.100.0040.0009.32
4.3.90.0000.0049.32
4.3.80.0040.0009.32
4.3.70.0000.0049.32
4.3.60.0000.0049.32
4.3.50.0000.0059.32
4.3.40.0020.0029.32
4.3.30.0000.0039.32
4.3.20.0000.0039.32
4.3.10.0000.0039.32
4.3.00.0030.0009.32

preferences:
51.67 ms | 403 KiB | 5 Q