3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '\u00c3\u0096sterreich'; $str = preg_replace_callback('/\\\\u([0-9a-fA-F]{4})/', function ($match) { return utf8_decode(mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE')); }, $str); print_r( $str);

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.120.0100.01022.36
8.4.110.0060.01318.76
8.4.100.0040.00618.70
8.4.90.0130.00918.98
8.4.80.0060.00418.34
8.4.70.0080.00818.32
8.4.60.0130.00620.48
8.4.50.0150.00518.53
8.4.40.0170.00317.94
8.4.30.0060.01320.61
8.4.20.0060.00318.25
8.4.10.0060.00326.04
8.3.250.0120.00718.85
8.3.240.0110.00916.61
8.3.230.0140.00616.83
8.3.220.0120.00718.73
8.3.210.0110.00918.79
8.3.200.0040.00416.82
8.3.190.0130.00518.74
8.3.180.0100.00718.60
8.3.170.0030.00517.28
8.3.160.0030.00520.66
8.3.150.0120.00616.74
8.3.140.0100.00017.16
8.3.130.0060.00318.61
8.3.120.0120.00619.05
8.3.110.0000.00820.94
8.3.100.0180.00316.66
8.3.90.0160.00326.77
8.3.80.0050.00519.36
8.3.70.0060.00916.71
8.3.60.0100.01018.43
8.3.50.0120.00723.64
8.3.40.0070.01118.83
8.3.30.0110.00318.96
8.3.20.0080.00024.18
8.3.10.0070.00024.66
8.3.00.0050.00326.16
8.2.290.0100.00820.79
8.2.280.0150.00918.73
8.2.270.0140.00417.21
8.2.260.0130.00616.86
8.2.250.0000.00818.63
8.2.240.0030.00617.49
8.2.230.0110.00022.58
8.2.220.0060.00324.06
8.2.210.0110.00426.77
8.2.200.0060.00318.88
8.2.190.0070.01118.91
8.2.180.0100.01025.92
8.2.170.0100.01019.16
8.2.160.0130.00722.96
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0080.00026.35
8.2.110.0040.00719.37
8.2.100.0120.00017.97
8.2.90.0030.00517.88
8.2.80.0030.00517.97
8.2.70.0000.00918.00
8.2.60.0100.00617.75
8.2.50.0090.00417.81
8.2.40.0100.00419.54
8.2.30.0050.00419.41
8.2.20.0040.00817.86
8.2.10.0100.00318.38
8.2.00.0050.00818.48
8.1.330.0180.01219.14
8.1.320.0110.00916.34
8.1.310.0100.00718.45
8.1.300.0050.00318.31
8.1.290.0040.00730.84
8.1.280.0120.00625.92
8.1.270.0130.00722.13
8.1.260.0090.00028.09
8.1.250.0030.00628.09
8.1.240.0080.00022.68
8.1.230.0030.00917.89
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.60
8.1.190.0040.00417.47
8.1.180.0100.00217.74
8.1.170.0100.00218.10
8.1.160.0090.00218.28
8.1.150.0070.00618.11
8.1.140.0060.00218.25
8.1.130.0090.00417.59
8.1.120.0050.00617.49
8.1.110.0060.00617.53
8.1.100.0120.00217.56
8.1.90.0090.00417.56
8.1.80.0100.00317.59
8.1.70.0100.00317.56
8.1.60.0110.00417.68
8.1.50.0080.00717.63
8.1.40.0090.00617.59
8.1.30.0110.00417.73
8.1.20.0070.00817.84
8.1.10.0110.00417.62
8.1.00.0100.00417.61
8.0.300.0060.00318.77
8.0.290.0040.00416.88
8.0.280.0060.00418.27
8.0.270.0080.00417.04
8.0.260.0050.00717.09
8.0.250.0060.00717.17
8.0.240.0110.00217.18
8.0.230.0090.00417.12
8.0.220.0070.00517.01
8.0.210.0070.00617.00
8.0.200.0080.00517.08
8.0.190.0060.00617.14
8.0.180.0070.00617.04
8.0.170.0080.00417.10
8.0.160.0090.00417.11
8.0.150.0110.00317.35
8.0.140.0090.00517.04
8.0.130.0110.00216.14
8.0.120.0090.00517.10
8.0.110.0100.00317.07
8.0.100.0080.00517.02
8.0.90.0070.00717.02
8.0.80.0110.00417.10
8.0.70.0110.00317.10
8.0.60.0100.00517.03
8.0.50.0100.00417.04
8.0.30.0120.00617.11
8.0.20.0130.00317.13
8.0.10.0110.00817.17
8.0.00.0140.00517.09
7.4.330.0070.00316.39
7.4.320.0050.00817.07
7.4.300.0100.00416.93
7.4.290.0090.00516.88
7.4.280.0100.00516.92
7.4.270.0090.00616.88
7.4.260.0100.00416.10
7.4.250.0110.00416.90
7.4.240.0090.00516.87
7.4.230.0100.00416.84
7.4.220.0070.00516.92
7.4.210.0090.00716.87
7.4.200.0080.00516.94
7.4.190.0110.00416.93
7.4.180.0070.00816.94
7.4.160.0130.00316.95
7.4.150.0090.00516.90
7.4.140.0090.00716.88
7.4.130.0100.00716.84
7.4.120.0090.00616.79
7.4.110.0060.01016.67
7.4.100.0070.00916.88
7.4.90.0140.00316.85
7.4.80.0080.00716.79
7.4.70.0130.00316.77
7.4.60.0110.00416.64
7.4.50.0070.00916.75
7.4.40.0120.00416.71
7.4.30.0120.00616.77
7.4.20.0130.00516.76
7.4.10.0110.00516.79
7.4.00.0120.00516.73
7.3.330.0110.00416.58
7.3.320.0110.00315.88
7.3.310.0090.00516.65
7.3.300.0070.00716.61
7.3.290.0080.00816.58
7.3.280.0140.00416.73
7.3.270.0110.00616.71
7.3.260.0100.00816.62
7.3.250.0110.00816.67
7.3.240.0120.00416.58
7.3.230.0140.00416.67
7.3.220.0130.00516.60
7.3.210.0130.00416.64
7.3.200.0120.00716.69
7.3.190.0090.00916.62
7.3.180.0130.00416.61
7.3.170.0100.00816.72
7.3.160.0100.00716.66
7.3.150.0120.00516.72
7.3.140.0120.00616.62
7.3.130.0110.00616.58
7.3.120.0080.00716.61
7.3.110.0130.00316.64
7.3.100.0110.00516.64
7.3.90.0110.00516.76
7.3.80.0140.00216.67
7.3.70.0100.00716.64
7.3.60.0110.00516.71
7.3.50.0150.00416.70
7.3.40.0120.00516.72
7.3.30.0090.00816.67
7.3.20.0090.01016.91
7.3.10.0240.00616.75
7.3.00.0090.00916.80

preferences:
28.43 ms | 403 KiB | 5 Q