3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '𠮟'; var_dump($a); $converted = mb_convert_encoding($a, 'SJIS', 'UTF-8'); var_dump($converted); $new_a = mb_convert_encoding($converted, 'UTF-8', 'SJIS'); var_dump($new_a);

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.130.0280.00717.51
8.4.120.0270.00618.96
8.4.110.0260.00820.21
8.4.100.0270.00817.58
8.4.90.0280.00620.04
8.4.80.0250.00917.44
8.4.70.0250.00917.39
8.4.60.0240.01117.89
8.4.50.0130.00618.23
8.4.40.0180.00717.57
8.4.30.0120.00418.88
8.4.20.0160.00618.66
8.4.10.0150.00318.59
8.3.260.0130.00616.51
8.3.250.0150.00517.53
8.3.240.0240.00416.38
8.3.230.0200.00416.56
8.3.220.0160.00317.84
8.3.210.0160.00516.57
8.3.200.0130.00316.46
8.3.190.0140.00717.64
8.3.180.0260.00716.49
8.3.170.0310.00316.42
8.3.160.0300.00717.40
8.3.150.0200.00416.78
8.3.140.0130.00618.61
8.3.130.0120.00517.23
8.3.120.0110.00517.66
8.3.110.0220.00318.78
8.3.100.0180.00516.58
8.3.90.0160.00521.63
8.3.80.0140.00416.39
8.3.70.0150.00617.35
8.3.60.0220.00717.39
8.3.50.0190.00418.16
8.3.40.0160.00817.95
8.3.30.0170.00717.84
8.3.20.0230.00520.67
8.3.10.0200.00421.02
8.3.00.0170.00721.78
8.2.290.0200.00518.66
8.2.280.0170.00817.39
8.2.270.0220.00916.48
8.2.260.0220.00917.67
8.2.250.0180.00417.58
8.2.240.0200.00716.77
8.2.230.0210.00519.42
8.2.220.0210.00820.37
8.2.210.0220.00321.59
8.2.200.0220.00516.50
8.2.190.0240.00816.66
8.2.180.0210.00721.19
8.2.170.0160.01218.43
8.2.160.0270.00520.27
8.2.150.0190.00421.57
8.2.140.0120.00521.21
8.2.130.0250.00421.88
8.2.120.0140.00521.85
8.2.110.0230.00419.40
8.2.100.0230.00517.71
8.2.90.0180.00818.03
8.2.80.0200.00318.75
8.2.70.0210.00417.59
8.2.60.0170.00817.48
8.2.50.0210.00617.61
8.2.40.0090.00617.76
8.2.30.0150.00617.59
8.2.20.0230.00418.97
8.2.10.0180.00417.67
8.2.00.0200.00418.39
8.1.330.0230.00717.25
8.1.320.0220.00916.18
8.1.310.0180.01016.52
8.1.300.0210.00416.07
8.1.290.0200.00623.44
8.1.280.0210.00820.89
8.1.270.0220.00520.61
8.1.260.0220.00821.78
8.1.250.0230.00522.71
8.1.240.0200.00819.14
8.1.230.0150.01019.19
8.1.220.0160.00717.43
8.1.210.0200.00517.95
8.1.200.0130.00417.28
8.1.190.0070.00617.27
8.1.180.0170.00517.76
8.1.170.0150.00817.49
8.1.160.0150.00918.18
8.1.150.0200.00318.15
8.1.140.0170.00617.44
8.1.130.0150.00818.80
8.1.120.0210.00317.51
8.1.110.0170.00617.42
8.1.100.0160.00817.54
8.1.90.0180.00617.46
8.1.80.0130.01017.42
8.1.70.0170.00817.46
8.1.60.0150.00617.58
8.1.50.0110.00417.27
8.1.40.0190.00817.57
8.1.30.0130.00317.70
8.1.20.0180.00517.74
8.1.10.0220.00717.50
8.1.00.0210.00317.42
8.0.300.0120.00218.29
8.0.290.0100.00716.66
8.0.280.0080.00417.39
8.0.270.0240.00416.73
8.0.260.0160.00617.64
8.0.250.0180.00716.88
8.0.240.0160.00616.92
8.0.230.0160.00616.65
8.0.220.0180.00516.76
8.0.210.0160.00616.72
8.0.200.0130.00516.58
8.0.190.0160.00916.70
8.0.180.0150.00816.81
8.0.170.0130.00816.71
8.0.160.0170.00716.87
8.0.150.0200.00416.82
8.0.140.0200.00516.72
8.0.130.0160.00816.77
8.0.120.0160.00716.77
8.0.110.0180.00616.78
8.0.100.0170.00516.79
8.0.90.0180.00616.76
8.0.80.0210.00716.75
8.0.70.0120.01116.78
8.0.60.0230.00416.78
8.0.50.0180.00616.72
8.0.30.0180.00516.80
8.0.20.0160.00816.79
8.0.10.0170.00517.04
7.4.330.0070.00415.96
7.4.320.0140.00216.55
7.4.300.0190.00416.34
7.4.290.0200.00216.44
7.4.280.0160.00616.44
7.4.270.0250.00216.50
7.4.260.0240.00516.53
7.4.250.0210.00716.57
7.4.240.0170.00616.60
7.4.230.0140.00616.56
7.4.220.0120.00416.61
7.4.210.0090.00616.58
7.4.200.0110.00616.63
7.4.190.0090.00716.61
7.4.180.0110.00516.63
7.4.160.0120.00716.55
7.4.150.0140.00816.51
7.4.140.0150.00616.47
7.4.130.0160.00616.47
7.4.120.0120.00816.45
7.4.110.0140.00716.34
7.4.100.0170.00516.55
7.4.90.0150.00616.45
7.4.80.0180.00616.45
7.4.70.0200.00516.36
7.4.60.0210.00516.45
7.4.50.0200.00316.29
7.4.40.0180.00616.24
7.4.30.0120.00616.37
7.4.20.0140.00916.34
7.4.10.0190.00516.43
7.4.00.0190.00416.30

preferences:
29.84 ms | 403 KiB | 5 Q