3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( $conv = mb_convert_encoding( $bin = hex2bin("7e0a"), "HZ", "ASCII" ), mb_check_encoding($bin, "ASCII"), bin2hex(mb_convert_encoding($conv, "ASCII", "HZ")) );

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.0160.00618.43
8.3.50.0080.00820.36
8.3.40.0140.00020.21
8.3.30.0150.00018.61
8.3.20.0050.00224.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.180.0150.00425.92
8.2.170.0120.00322.96
8.2.160.0030.01022.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00020.44
8.2.110.0060.00320.77
8.2.100.0040.00817.97
8.2.90.0000.00818.00
8.2.80.0040.00417.97
8.2.70.0080.00017.88
8.2.60.0060.00217.75
8.2.50.0040.00418.07
8.2.40.0030.00518.33
8.2.30.0000.00718.23
8.2.20.0040.00420.86
8.2.10.0020.00518.13
8.2.00.0040.00419.41
8.1.280.0060.00925.92
8.1.270.0080.00024.66
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0100.00022.67
8.1.230.0040.00721.20
8.1.220.0030.00618.77
8.1.210.0030.00519.22
8.1.200.0080.00017.48
8.1.190.0050.00317.47
8.1.180.0050.00318.10
8.1.170.0000.00719.03
8.1.160.0070.00018.98
8.1.150.0070.00018.80
8.1.140.0000.00817.60
8.1.130.0090.00917.56
8.1.120.0130.00317.59
8.1.110.0000.01517.61
8.1.100.0120.00417.63
8.1.90.0130.00317.62
8.1.80.0080.00817.63
8.1.70.0050.01017.52
8.1.60.0150.00417.62
8.1.50.0090.00917.67
8.1.40.0090.00917.68
8.1.30.0180.00017.80
8.1.20.0130.00417.65
8.1.10.0180.00017.68
8.1.00.0140.00317.68
8.0.300.0000.00720.10
8.0.290.0040.00416.88
8.0.280.0000.00818.49
8.0.270.0000.00717.95
8.0.260.0100.00516.82
8.0.250.0150.00016.86
8.0.240.0080.00616.95
8.0.230.0130.00316.92
8.0.220.0100.00716.86
8.0.210.0100.00316.78
8.0.200.0040.01116.82
8.0.190.0120.00216.97
8.0.180.0140.00016.86
8.0.170.0070.00716.98
8.0.160.0150.00016.87
8.0.150.0110.00416.86
8.0.140.0100.00516.85
8.0.130.0150.00016.83
8.0.120.0110.00416.83
8.0.110.0140.00016.85
8.0.100.0110.00416.85
8.0.90.0150.00016.80
8.0.80.0050.00916.84
8.0.70.0040.01116.80
8.0.60.0100.00516.92
8.0.50.0080.00616.78
8.0.30.0100.00516.76
8.0.20.0090.00616.97
8.0.10.0130.00317.02
7.4.330.0090.00515.88
7.4.320.0080.00816.48
7.4.300.0150.00016.63
7.4.290.0100.00516.54
7.4.280.0090.00616.45
7.4.270.0000.01516.60
7.4.260.0120.00316.64
7.4.250.0060.00316.51
7.4.240.0090.00016.50
7.4.230.0130.00016.50
7.4.220.0100.00016.58
7.4.210.0110.00416.52
7.4.200.0080.00516.46
7.4.190.0110.00416.59
7.4.180.0140.00016.57
7.4.160.0000.01416.51
7.4.150.0080.00816.45
7.4.140.0060.00616.57
7.4.130.0070.00716.55
7.4.120.0150.00016.57
7.4.110.0110.00416.55
7.4.100.0070.00716.55
7.4.90.0100.00516.57
7.4.80.0110.00316.39
7.4.70.0110.00316.49
7.4.60.0110.00016.41
7.4.50.0130.00016.38
7.4.40.0100.00316.26
7.4.30.0160.00016.49
7.4.20.0060.00616.48
7.4.10.0000.01216.39
7.4.00.0060.00416.42

preferences:
45.64 ms | 401 KiB | 5 Q