3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(mb_convert_case("AあいうえおBBcC", MB_CASE_UPPER, "ISO-2022-JP")); var_dump(mb_strtoupper("AあいうえおBBcC", "ISO-2022-JP")); var_dump(mb_strtolower("AあいうえおBBcC", "ISO-2022-JP")); var_dump(mb_stripos("AあいうえおBBcC", "?", 0, "ISO-2022-JP")); var_dump(mb_strpos("AあいうえおBBcC", "?", 0, "ISO-2022-JP")); var_dump(mb_strpos("AあいうえおBBcC", "?", 0, "SJIS")); var_dump(mb_stripos("AあいうえおBBcC", "?", 0, "SJIS")); mb_substitute_character("none"); var_dump(mb_convert_case("AあいうえおBBcC", MB_CASE_UPPER, "ISO-2022-JP")); var_dump(mb_strtoupper("AあいうえおBBcC", "ISO-2022-JP")); var_dump(mb_strtolower("AあいうえおBBcC", "ISO-2022-JP")); var_dump(mb_stripos("AあいうえおBBcC", "?", 0, "ISO-2022-JP")); var_dump(mb_strpos("AあいうえおBBcC", "?", 0, "ISO-2022-JP")); var_dump(mb_strpos("AあいうえおBBcC", "?", 0, "SJIS")); var_dump(mb_stripos("AあいうえおBBcC", "?", 0, "SJIS"));

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.4.20.0070.01419.43
8.4.10.0060.00321.98
8.3.150.0140.00320.77
8.3.140.0030.00617.01
8.3.130.0060.00318.44
8.3.120.0060.00318.97
8.3.110.0030.00720.94
8.3.100.0050.00524.06
8.3.90.0120.00326.77
8.3.80.0030.00619.36
8.3.70.0070.01418.20
8.3.60.0150.00016.37
8.3.50.0000.01418.32
8.3.40.0140.00320.13
8.3.30.0090.00618.47
8.3.20.0040.00424.18
8.3.10.0100.00024.66
8.3.00.0040.00426.16
8.2.270.0140.00316.96
8.2.260.0030.00620.31
8.2.250.0080.00017.17
8.2.240.0110.00417.44
8.2.230.0050.00322.58
8.2.220.0040.00437.54
8.2.210.0070.01026.77
8.2.200.0070.00318.88
8.2.190.0100.01017.07
8.2.180.0160.00616.88
8.2.170.0070.00719.04
8.2.160.0110.01122.96
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00420.90
8.2.110.0030.00622.51
8.2.100.0090.00317.84
8.2.90.0050.00317.75
8.2.80.0000.00817.97
8.2.70.0050.00318.17
8.2.60.0000.00718.18
8.2.50.0000.01618.07
8.2.40.0040.00418.03
8.2.30.0040.00418.29
8.2.20.0000.00719.27
8.2.10.0050.00218.19
8.2.00.0000.00719.38
8.1.310.0040.00416.73
8.1.300.0030.00518.25
8.1.290.0070.00430.84
8.1.280.0110.00425.92
8.1.270.0040.01123.90
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.01623.93
8.1.230.0070.00419.22
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0060.00317.48
8.1.180.0030.00618.10
8.1.170.0060.00318.71
8.1.160.0030.00719.14
8.1.150.0000.00718.78
8.1.140.0040.00417.70
8.1.130.0040.00419.11
8.1.120.0000.00917.62
8.1.110.0070.00017.62
8.1.100.0060.00817.59
8.1.90.0110.00517.44
8.1.80.0120.00317.50
8.1.70.0120.00517.53
8.1.60.0120.00917.63
8.1.50.0160.00617.62
8.1.40.0150.00317.59
8.1.30.0190.00217.74
8.1.20.0120.00417.68
8.1.10.0160.00217.59
8.1.00.0090.00917.48
8.0.300.0060.00619.91
8.0.290.0000.00916.75
8.0.280.0050.00320.15
8.0.270.0030.00517.97
8.0.260.0040.00418.46
8.0.250.0000.00716.97
8.0.240.0040.00416.87
8.0.230.0050.01016.90
8.0.220.0130.00316.88
8.0.210.0140.00116.81
8.0.200.0110.00416.84
8.0.190.0130.00216.94
8.0.180.0140.00416.87
8.0.170.0080.00816.88
8.0.160.0100.00716.78
8.0.150.0100.00716.76
8.0.140.0100.00716.83
8.0.130.0100.00616.77
8.0.120.0140.00316.87
8.0.110.0060.01016.83
8.0.100.0110.00516.71
8.0.90.0150.00316.72
8.0.80.0070.00916.82
8.0.70.0060.01116.71
8.0.60.0120.00316.73
8.0.50.0080.00816.84
8.0.30.0110.00616.89
8.0.20.0100.00716.84
8.0.10.0140.00416.85
8.0.00.0000.01217.00
7.4.330.0030.00315.55
7.4.320.0000.00616.52
7.4.300.0130.00516.60
7.4.290.0080.00816.67
7.4.280.0160.00116.55
7.4.270.0140.00416.60
7.4.260.0180.00016.54
7.4.250.0090.00816.59
7.4.240.0090.00816.51
7.4.230.0180.00116.54
7.4.220.0060.01016.63
7.4.210.0110.00416.67
7.4.200.0100.00616.62
7.4.190.0130.00316.66
7.4.180.0100.00716.66
7.4.160.0110.00616.56
7.4.150.0110.00316.45
7.4.140.0060.00616.45
7.4.130.0040.00716.43
7.4.120.0070.00616.41
7.4.110.0060.00716.44
7.4.100.0070.00516.50
7.4.90.0080.00516.47
7.4.80.0070.00716.49
7.4.70.0040.01016.48
7.4.60.0120.00216.38
7.4.50.0100.00516.28
7.4.40.0080.00616.36
7.4.30.0130.00316.44
7.4.20.0080.00416.44
7.4.10.0100.00516.42
7.4.00.0070.00516.50
7.3.330.0150.00016.36
7.3.320.0150.00016.29
7.3.310.0140.00016.38
7.3.300.0090.00616.40
7.3.290.0150.00016.30
7.3.280.0130.00216.24
7.3.270.0100.00416.30
7.3.260.0080.00716.34
7.3.250.0150.00016.25
7.3.240.0140.00016.43
7.3.230.0110.00516.15
7.3.220.0160.00016.43
7.3.210.0160.00016.10
7.3.200.0080.00816.31
7.3.190.0060.01016.18
7.3.180.0140.00216.29
7.3.170.0170.00016.10
7.3.160.0150.00216.40
7.3.150.0120.00416.24
7.3.140.0130.00316.34
7.3.130.0100.00516.20
7.3.120.0150.00016.36
7.3.110.0000.01516.25
7.3.100.0090.00616.21
7.3.90.0100.00616.60
7.3.80.0160.00016.27
7.3.70.0130.00316.25
7.3.60.0090.00616.50
7.3.50.0110.00416.37
7.3.40.0130.00316.52
7.3.30.0080.00816.46
7.3.20.0130.00318.14
7.3.10.0140.00218.26
7.3.00.0100.00618.30
7.2.340.0160.00016.16
7.2.330.0140.00316.21
7.2.320.0130.00416.27
7.2.310.0130.00316.19
7.2.300.0110.00616.18
7.2.290.0140.00316.18
7.2.280.0100.00616.15
7.2.270.0140.00216.32
7.2.260.0110.00516.45
7.2.250.0120.00316.20
7.2.240.0140.00216.18
7.2.230.0150.00016.45
7.2.220.0130.00316.17
7.2.210.0050.01016.43
7.2.200.0130.00316.39
7.2.190.0050.01016.54
7.2.180.0090.00516.62
7.2.170.0090.00616.60
7.2.160.0100.00516.49
7.2.150.0120.00418.12
7.2.140.0090.00618.33
7.2.130.0100.00618.60
7.2.120.0080.00818.57
7.2.110.0120.00318.50
7.2.100.0110.00318.26
7.2.90.0110.00518.27
7.2.80.0110.00518.29
7.2.70.0130.00318.31
7.2.60.0100.00718.31
7.2.50.0130.00318.46
7.2.40.0110.00518.46
7.2.30.0120.00418.22
7.2.20.0160.00018.36
7.2.10.0060.01018.37
7.2.00.0120.00418.48
7.1.330.0120.00417.48
7.1.320.0080.00617.28
7.1.310.0100.00317.23
7.1.300.0130.00017.62
7.1.290.0090.00617.29
7.1.280.0140.00017.33
7.1.270.0000.01417.34
7.1.260.0050.00917.43
7.1.250.0110.00417.27
7.1.240.0140.00017.50
7.1.230.0140.00017.30
7.1.220.0060.00917.47
7.1.210.0110.00417.37
7.1.200.0080.00817.37
7.1.190.0110.00517.19
7.1.180.0150.00017.32
7.1.170.0100.00617.14
7.1.160.0120.00317.41
7.1.150.0140.00017.09
7.1.140.0100.00517.30
7.1.130.0150.00017.19
7.1.120.0140.00317.24
7.1.110.0150.00017.29
7.1.100.0110.00317.13
7.1.90.0070.00717.27
7.1.80.0090.00517.22
7.1.70.0110.00417.01
7.1.60.0110.00417.41
7.1.50.0060.00917.36
7.1.40.0110.00417.31
7.1.30.0110.00317.14
7.1.20.0050.00917.06
7.1.10.0080.00617.45
7.1.00.0100.00317.33
7.0.330.0140.00016.95
7.0.320.0070.00717.10
7.0.310.0070.00716.85
7.0.300.0050.00817.00
7.0.290.0090.00416.98
7.0.280.0070.00716.86
7.0.270.0100.00416.80
7.0.260.0140.00016.89
7.0.250.0080.00616.95
7.0.240.0110.00317.15
7.0.230.0140.00016.94
7.0.220.0050.01016.97
7.0.210.0140.00016.88
7.0.200.0130.00017.00
7.0.190.0050.00917.02
7.0.180.0080.00617.01
7.0.170.0130.00317.08
7.0.160.0140.00016.96
7.0.150.0090.00516.85
7.0.140.0110.00316.74
7.0.130.0060.00617.12
7.0.120.0140.00017.17
7.0.110.0140.00017.10
7.0.100.0080.00616.96
7.0.90.0090.00516.95
7.0.80.0110.00217.06
7.0.70.0140.00016.81
7.0.60.0140.00017.05
7.0.50.0110.00316.95
7.0.40.0040.00916.98
7.0.30.0090.00517.13
7.0.20.0110.00317.02
7.0.10.0090.00517.10
7.0.00.0140.00016.94
5.6.400.0100.00515.79
5.6.390.0110.00415.83
5.6.380.0120.00215.65
5.6.370.0130.00015.61
5.6.360.0090.00515.79
5.6.350.0110.00315.65
5.6.340.0110.00215.63
5.6.330.0070.00715.88
5.6.320.0110.00315.75
5.6.310.0140.00015.87
5.6.300.0090.00515.62
5.6.290.0110.00215.81
5.6.280.0060.00915.88
5.6.270.0140.00015.61
5.6.260.0130.00015.68
5.6.250.0100.00315.72
5.6.240.0130.00015.75
5.6.230.0060.00615.63
5.6.220.0140.00015.84
5.6.210.0110.00315.58
5.6.200.0100.00315.70
5.6.190.0090.00415.97
5.6.180.0090.00415.65
5.6.170.0130.00015.90
5.6.160.0090.00315.90
5.6.150.0110.00315.98
5.6.140.0060.00615.73
5.6.130.0110.00315.86
5.6.120.0040.00915.69
5.6.110.0000.01215.66
5.6.100.0100.00315.85
5.6.90.0140.00015.71
5.6.80.0130.00015.62
5.6.70.0100.00315.92
5.6.60.0100.00315.95
5.6.50.0050.00815.81
5.6.40.0110.00215.54
5.6.30.0090.00315.58
5.6.20.0130.00015.68
5.6.10.0130.00015.47
5.6.00.0100.00515.58
5.5.380.0130.00015.57
5.5.370.0060.00615.98
5.5.360.0110.00315.41
5.5.350.0130.00015.61
5.5.340.0140.00015.46
5.5.330.0100.00315.69
5.5.320.0130.00015.58
5.5.310.0090.00515.44
5.5.300.0140.00015.57
5.5.290.0140.00015.70
5.5.280.0090.00415.52
5.5.270.0050.00915.46
5.5.260.0110.00315.62
5.5.250.0140.00015.66
5.5.240.0110.00215.53
5.5.230.0000.01415.71
5.5.220.0130.00015.58
5.5.210.0130.00015.89
5.5.200.0080.00515.60
5.5.190.0090.00415.52
5.5.180.0040.00915.73
5.5.170.0140.00015.70
5.5.160.0080.00515.51
5.5.150.0060.00615.36
5.5.140.0080.00415.57
5.5.130.0090.00315.56
5.5.120.0130.00015.65
5.5.110.0100.00315.64
5.5.100.0080.00415.57
5.5.90.0110.00315.82
5.5.80.0110.00415.84
5.5.70.0090.00515.86
5.5.60.0080.00515.70
5.5.50.0090.00415.48
5.5.40.0090.00315.82
5.5.30.0130.00015.61
5.5.20.0040.00915.72
5.5.10.0070.00715.64
5.5.00.0100.00315.78
5.4.450.0050.00512.77
5.4.440.0110.00012.62
5.4.430.0070.00312.61
5.4.420.0110.00012.46
5.4.410.0040.00712.48
5.4.400.0080.00212.50
5.4.390.0110.00012.51
5.4.380.0060.00612.70
5.4.370.0080.00312.41
5.4.360.0110.00012.48
5.4.350.0080.00312.45
5.4.340.0050.00512.56
5.4.330.0000.01112.51
5.4.320.0100.00012.76
5.4.310.0110.00012.54
5.4.300.0110.00012.45
5.4.290.0110.00012.59
5.4.280.0070.00412.69
5.4.270.0070.00312.54
5.4.260.0110.00012.36
5.4.250.0070.00412.52
5.4.240.0060.00412.38
5.4.230.0030.00712.27
5.4.220.0080.00312.24
5.4.210.0000.01112.28
5.4.200.0000.01012.43
5.4.190.0110.00012.35
5.4.180.0080.00412.57
5.4.170.0080.00412.28
5.4.160.0100.00012.49
5.4.150.0090.00212.41
5.4.140.0080.00312.57
5.4.130.0060.00312.40
5.4.120.0100.00012.34
5.4.110.0110.00012.45
5.4.100.0050.00512.49
5.4.90.0070.00412.63
5.4.80.0030.00712.69
5.4.70.0100.00012.29
5.4.60.0050.00512.64
5.4.50.0100.00012.56
5.4.40.0100.00012.62
5.4.30.0070.00312.55
5.4.20.0100.00012.70
5.4.10.0070.00412.62
5.4.00.0070.00312.32
5.3.290.0040.00713.09
5.3.280.0070.00312.61
5.3.270.0080.00212.80
5.3.260.0070.00312.71
5.3.250.0030.00713.09
5.3.240.0110.00012.97
5.3.230.0070.00412.64
5.3.220.0100.00013.02
5.3.210.0110.00012.63
5.3.200.0000.01013.02
5.3.190.0050.00512.75
5.3.180.0050.00512.78
5.3.170.0070.00312.81
5.3.160.0080.00312.81
5.3.150.0070.00412.78
5.3.140.0030.00713.01
5.3.130.0040.00713.09
5.3.120.0050.00512.91
5.3.110.0080.00313.05
5.3.100.0030.00712.96
5.3.90.0100.00012.79
5.3.80.0070.00212.66
5.3.70.0100.00012.80
5.3.60.0040.00812.76
5.3.50.0050.00512.94
5.3.40.0070.00312.90
5.3.30.0050.00513.00
5.3.20.0000.01112.82
5.3.10.0050.00512.77
5.3.00.0070.00412.84
5.2.170.0050.00512.23
5.2.160.0070.00211.95
5.2.150.0080.00011.95
5.2.140.0060.00211.85
5.2.130.0080.00012.23
5.2.120.0090.00012.05
5.2.110.0050.00512.00
5.2.100.0070.00312.24
5.2.90.0080.00012.20
5.2.80.0020.00712.03
5.2.70.0100.00012.04
5.2.60.0070.00211.95
5.2.50.0060.00311.92
5.2.40.0080.00011.83
5.2.30.0050.00312.07
5.2.20.0060.00311.98
5.2.10.0060.00211.78
5.2.00.0000.00911.70
5.1.60.0070.00010.93
5.1.50.0050.00311.29
5.1.40.0000.00711.35
5.1.30.0080.00011.16
5.1.20.0030.00611.11
5.1.10.0040.00411.34
5.1.00.0050.00311.16
5.0.50.0040.00410.37
5.0.40.0050.00210.18
5.0.30.0050.0029.94
5.0.20.0000.00610.15
5.0.10.0060.0009.95
5.0.00.0030.0039.87
4.4.90.0000.0049.69
4.4.80.0020.0029.69
4.4.70.0040.0009.69
4.4.60.0040.0009.69
4.4.50.0040.0009.69
4.4.40.0040.0009.69
4.4.30.0000.0049.69
4.4.20.0000.0049.69
4.4.10.0020.0029.69
4.4.00.0030.0009.69
4.3.110.0000.0049.69
4.3.100.0040.0009.69
4.3.90.0040.0009.69
4.3.80.0000.0049.69
4.3.70.0040.0009.69
4.3.60.0030.0009.69
4.3.50.0020.0029.69
4.3.40.0000.0049.69
4.3.30.0030.0009.69
4.3.20.0020.0029.69
4.3.10.0030.0009.69
4.3.00.0000.0049.69

preferences:
41.09 ms | 402 KiB | 5 Q