3v4l.org

run code in 300+ PHP versions simultaneously
<?php function XXhex2bin($h) { if (!is_string($h)) return null; $r=''; for ($a=0; $a<strlen($h); $a+=2) { $r.=chr(hexdec($h{$a}.$h{($a+1)})); } return $r; } $encoded = bin2hex(1); echo "0x".$encoded; ?>

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.0140.00718.43
8.3.50.0100.01016.48
8.3.40.0080.00818.76
8.3.30.0000.01418.60
8.3.20.0000.00820.07
8.3.10.0080.00023.48
8.3.00.0040.00419.67
8.2.180.0070.01016.50
8.2.170.0130.00622.96
8.2.160.0030.01019.08
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0060.00319.27
8.2.120.0040.00426.35
8.2.110.0040.00422.12
8.2.100.0080.00417.54
8.2.90.0000.00819.12
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0000.00817.68
8.2.50.0050.00318.10
8.2.40.0030.00620.37
8.2.30.0050.00520.97
8.2.20.0040.00417.97
8.2.10.0050.00217.91
8.2.00.0040.00417.86
8.1.280.0130.00725.92
8.1.270.0000.00821.90
8.1.260.0000.00726.35
8.1.250.0030.00528.09
8.1.240.0080.00023.92
8.1.230.0000.01122.08
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0060.00317.13
8.1.190.0040.00417.00
8.1.180.0080.00018.10
8.1.170.0060.00318.57
8.1.160.0040.00418.81
8.1.150.0000.00720.49
8.1.140.0040.00419.31
8.1.130.0040.00718.80
8.1.120.0070.00017.35
8.1.110.0000.00817.16
8.1.100.0000.00817.29
8.1.90.0000.00717.29
8.1.80.0030.00317.34
8.1.70.0040.00417.33
8.1.60.0000.00817.48
8.1.50.0040.00417.41
8.1.40.0000.00717.35
8.1.30.0040.00417.43
8.1.20.0040.00417.52
8.1.10.0000.00717.36
8.1.00.0000.00717.35
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00818.29
8.0.270.0030.00317.18
8.0.260.0030.00316.74
8.0.250.0030.00316.75
8.0.240.0030.00716.91
8.0.230.0030.00316.72
8.0.220.0070.00016.78
8.0.210.0030.00616.81
8.0.200.0060.00016.93
8.0.190.0060.00316.88
8.0.180.0040.00416.70
8.0.170.0030.00316.73
8.0.160.0070.00016.72
8.0.150.0030.00316.61
8.0.140.0040.00416.80
8.0.130.0030.00313.26
8.0.120.0000.00816.78
8.0.110.0040.00416.87
8.0.100.0000.00816.66
8.0.90.0000.00716.72
8.0.80.0090.00616.80
8.0.70.0000.00716.77
8.0.60.0070.00016.67
8.0.50.0040.00316.70
8.0.30.0170.00516.86
8.0.20.0070.01217.40
8.0.10.0050.00316.88
8.0.00.0130.00316.63
7.4.330.0000.00515.55
7.4.320.0060.00016.43
7.4.300.0000.00716.54
7.4.290.0000.00816.43
7.4.280.0040.00416.47
7.4.270.0030.00316.45
7.4.260.0040.00416.48
7.4.250.0050.00316.40
7.4.240.0030.00316.38
7.4.230.0030.00316.63
7.4.220.0200.00616.47
7.4.210.0090.00616.57
7.4.200.0000.00716.61
7.4.160.0100.00616.35
7.4.150.0120.00617.40
7.4.140.0120.00917.86
7.4.130.0000.01716.52
7.4.120.0120.00716.60
7.4.110.0050.01416.36
7.4.100.0110.00716.50
7.4.90.0160.00016.51
7.4.80.0140.00419.39
7.4.70.0080.00916.44
7.4.60.0100.00616.47
7.4.50.0070.00416.51
7.4.40.0170.00016.60
7.4.30.0060.01316.62
7.4.00.0100.00715.11
7.3.330.0050.00013.19
7.3.320.0040.00413.10
7.3.310.0070.00016.27
7.3.300.0000.00716.28
7.3.290.0110.00416.22
7.3.280.0080.00816.24
7.3.270.0100.00717.40
7.3.260.0120.00516.34
7.3.250.0110.00716.49
7.3.240.0070.00916.42
7.3.230.0080.01116.36
7.3.210.0110.00916.52
7.3.200.0060.01016.39
7.3.190.0120.00316.44
7.3.180.0110.00616.47
7.3.170.0160.00616.55
7.3.160.0080.00816.46
7.2.330.0040.01316.82
7.2.320.0110.01416.44
7.2.310.0060.00916.51
7.2.300.0030.01316.62
7.2.290.0030.01416.70
7.2.60.0000.01016.48
7.2.00.0070.00719.45
7.1.200.0000.00815.46
7.1.100.0070.00418.13
7.1.70.0270.00815.32
7.1.60.0770.01434.96
7.1.50.0200.00334.70
7.1.40.0130.01334.32
7.1.30.0160.00934.25
7.1.20.0140.01034.31
7.1.10.0060.00616.52
7.1.00.0070.00716.50
7.0.200.0030.00916.69
7.0.190.0000.01116.68
7.0.180.0000.01316.21
7.0.170.0000.01116.13
7.0.160.0060.00615.90
7.0.150.0040.00716.34
7.0.140.0030.00916.12
7.0.130.0030.00916.37
7.0.120.0000.01316.43
7.0.110.0040.00716.13
7.0.100.0030.00716.17
7.0.90.0000.01116.16
7.0.80.0080.00416.27
7.0.70.0060.00616.07
7.0.60.0040.00815.77
7.0.50.0080.00416.17
7.0.40.0000.01116.30
7.0.30.0060.00616.28
7.0.20.0030.01016.41
7.0.10.0030.00916.27
7.0.00.0060.00616.34

preferences:
37.98 ms | 400 KiB | 5 Q