3v4l.org

run code in 300+ PHP versions simultaneously
<?php function conv($str): string { $res = ''; $res .= 'SJIS-win: ' . mb_convert_encoding($str, 'SJIS-win') . "\n"; return $res; } $res = ''; $res = conv('あ'); $res .= conv('~'); $res .= conv('\\'); $res .= conv('¥'); $res .= conv('‾'); echo $res;

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.0030.01218.06
8.4.10.0090.00022.27
8.3.150.0080.00019.04
8.3.140.0040.01116.75
8.3.130.0040.00418.49
8.3.120.0060.01218.95
8.3.110.0100.00620.94
8.3.100.0090.00024.06
8.3.90.0080.00026.77
8.3.80.0030.00616.50
8.3.70.0120.00318.56
8.3.60.0100.01018.30
8.3.50.0070.01120.25
8.3.40.0070.00718.89
8.3.30.0060.00918.96
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.260.0040.00417.16
8.2.250.0090.00618.79
8.2.240.0120.00318.76
8.2.230.0050.00522.58
8.2.220.0090.00037.54
8.2.210.0060.00926.77
8.2.200.0000.01216.50
8.2.190.0110.00716.88
8.2.180.0110.00725.92
8.2.170.0140.00019.20
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00821.25
8.2.110.0050.00521.11
8.2.100.0080.00418.30
8.2.90.0040.00417.88
8.2.80.0030.00518.98
8.2.70.0030.00617.75
8.2.60.0000.00918.18
8.2.50.0040.00418.07
8.2.40.0040.00418.41
8.2.30.0090.00318.29
8.2.20.0050.00320.59
8.2.10.0000.00718.38
8.2.00.0000.00819.41
8.1.310.0040.00418.66
8.1.300.0070.00416.38
8.1.290.0060.00330.84
8.1.280.0110.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.25
8.1.230.0070.00419.22
8.1.220.0080.00017.91
8.1.210.0080.00018.77
8.1.200.0060.00317.47
8.1.190.0000.00817.48
8.1.180.0030.00518.10
8.1.170.0030.00518.70
8.1.160.0070.00019.15
8.1.150.0040.00418.89
8.1.140.0040.00417.80
8.1.130.0050.00417.85
8.1.120.0050.00217.78
8.1.110.0030.00617.63
8.1.100.0000.00717.76
8.1.90.0030.00718.42
8.1.80.0020.00517.59
8.1.70.0070.00017.61
8.1.60.0090.00317.78
8.1.50.0110.00617.71
8.1.40.0160.00817.75
8.1.30.0190.00717.76
8.1.20.0110.00717.77
8.1.10.0170.00717.72
8.1.00.0100.00718.09
8.0.300.0090.00018.77
8.0.290.0030.00616.75
8.0.280.0000.00718.49
8.0.270.0030.00316.95
8.0.260.0000.00618.55
8.0.250.0000.00717.02
8.0.240.0030.00717.06
8.0.230.0040.00416.97
8.0.220.0070.00016.98
8.0.210.0000.00717.03
8.0.200.0030.00317.04
8.0.190.0050.00617.05
8.0.180.0100.00516.94
8.0.170.0130.00916.99
8.0.160.0090.01416.92
8.0.150.0190.00316.86
8.0.140.0140.00716.93
8.0.130.0110.00916.87
8.0.120.0130.01016.99
8.0.110.0080.01416.96
8.0.100.0110.01116.99
8.0.90.0160.00416.86
8.0.80.0150.00716.98
8.0.70.0150.00616.86
8.0.60.0240.00016.82
8.0.50.0190.00416.91
8.0.30.0180.00316.83
8.0.20.0140.00716.93
8.0.10.0130.01017.07
7.4.330.0000.00515.55
7.4.320.0010.00716.66
7.4.300.0030.00316.70
7.4.290.0060.00616.73
7.4.280.0180.00616.72
7.4.270.0240.00016.72
7.4.260.0200.00316.63
7.4.250.0190.00516.61
7.4.240.0210.00316.67
7.4.230.0090.00616.59
7.4.220.0150.00416.53
7.4.210.0140.00216.63
7.4.200.0090.00516.69
7.4.190.0080.00916.73
7.4.180.0180.00316.60
7.4.160.0150.00616.70
7.4.150.0170.00316.59
7.4.140.0160.00316.65
7.4.130.0190.00016.50
7.4.120.0180.00316.64
7.4.110.0150.00616.65
7.4.100.0220.00016.73
7.4.90.0210.00016.61
7.4.80.0120.00916.68
7.4.70.0120.00816.45
7.4.60.0140.00716.63
7.4.50.0150.00716.43
7.4.40.0150.00616.32
7.4.30.0140.00616.36
7.4.20.0120.00616.55
7.4.10.0150.00316.52
7.4.00.0100.00716.51
7.0.60.0040.00818.77
7.0.00.0060.00418.77
5.6.400.0070.00318.77
5.6.90.0050.00518.77

preferences:
54.35 ms | 403 KiB | 5 Q