3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( $conv = mb_convert_encoding( $bin = hex2bin("dc01d8020042"), "UTF-32", "UTF-16" ), mb_check_encoding($bin, "UTF-32"), bin2hex(mb_convert_encoding($conv, "UTF-16", "UTF-32")) );

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.3.60.0070.01016.50
8.3.50.0170.00320.14
8.3.40.0110.00420.14
8.3.30.0090.00618.58
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.180.0110.00725.92
8.2.170.0080.01118.95
8.2.160.0130.00322.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0000.00920.53
8.2.100.0080.00417.73
8.2.90.0060.00817.60
8.2.80.0050.00317.97
8.2.70.0000.00718.04
8.2.60.0040.00417.80
8.2.50.0030.00518.07
8.2.40.0030.00618.03
8.2.30.0070.00018.03
8.2.20.0030.00320.51
8.2.10.0000.00718.00
8.2.00.0000.00719.22
8.1.280.0070.00725.92
8.1.270.0040.00422.02
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00320.89
8.1.230.0110.00019.48
8.1.220.0030.00717.74
8.1.210.0030.00518.77
8.1.200.0000.00817.23
8.1.190.0050.00517.35
8.1.180.0040.00418.10
8.1.170.0060.00318.55
8.1.160.0040.00418.87
8.1.150.0040.00418.63
8.1.140.0060.00317.43
8.1.130.0000.00717.45
8.1.120.0050.00518.64
8.1.110.0100.00318.67
8.1.100.0070.00718.59
8.1.90.0130.00018.67
8.1.80.0000.01018.57
8.1.70.0080.00418.59
8.1.60.0060.00618.81
8.1.50.0120.00518.79
8.1.40.0090.00918.87
8.1.30.0150.00218.88
8.1.20.0170.00018.78
8.1.10.0140.00318.57
8.1.00.0120.00618.53
8.0.300.0040.00418.78
8.0.290.0080.00016.58
8.0.280.0070.00018.31
8.0.270.0040.00417.93
8.0.260.0070.00016.86
8.0.250.0140.00018.07
8.0.240.0030.01017.96
8.0.230.0100.00518.05
8.0.220.0110.00418.04
8.0.210.0060.00818.00
8.0.200.0110.00618.10
8.0.190.0110.00618.04
8.0.180.0150.00017.95
8.0.170.0120.00218.09
8.0.160.0100.00517.89
8.0.150.0030.01018.09
8.0.140.0090.00517.98
8.0.130.0090.00419.59
8.0.120.0140.00017.99
8.0.110.0000.01117.85
8.0.100.0080.00617.89
8.0.90.0100.00517.91
8.0.80.0120.00218.04
8.0.70.0070.00717.99
8.0.60.0100.00017.87
8.0.50.0040.00817.87
8.0.30.0050.00517.89
8.0.20.0050.00518.09
8.0.10.0110.00017.97
7.4.330.0090.00013.98
7.4.320.0090.00317.46
7.4.300.0090.00317.64
7.4.290.0090.00017.26
7.4.280.0090.00617.71
7.4.270.0160.00017.55
7.4.260.0130.00417.70
7.4.250.0040.01317.53
7.4.240.0150.00017.52
7.4.230.0120.00417.75
7.4.220.0120.00417.67
7.4.210.0150.00017.43
7.4.200.0090.00517.57
7.4.190.0110.00317.77
7.4.180.0040.00717.55
7.4.160.0000.01317.70
7.4.150.0110.00017.68
7.4.140.0040.00817.56
7.4.130.0050.00917.44
7.4.120.0070.00417.25
7.4.110.0060.00617.57
7.4.100.0070.00417.69
7.4.90.0050.00517.50
7.4.80.0120.00017.42
7.4.70.0140.00017.47
7.4.60.0070.00417.51
7.4.50.0050.00517.48
7.4.40.0100.00017.32
7.4.30.0090.00017.32
7.4.20.0000.00917.29
7.4.10.0030.00617.39
7.4.00.0050.00517.27

preferences:
45.25 ms | 401 KiB | 5 Q