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.15
8.3.50.0100.01016.12
8.3.40.0110.00418.68
8.3.30.0070.00718.56
8.3.20.0070.00020.12
8.3.10.0060.00323.59
8.3.00.0030.00519.67
8.2.180.0140.00316.50
8.2.170.0000.02022.96
8.2.160.0130.00318.90
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0040.00419.44
8.2.120.0040.00426.35
8.2.110.0070.00322.08
8.2.100.0110.00417.76
8.2.90.0000.00819.09
8.2.80.0000.00817.97
8.2.70.0080.00017.38
8.2.60.0040.00417.68
8.2.50.0050.00318.10
8.2.40.0030.00620.60
8.2.30.0060.00319.08
8.2.20.0040.00417.84
8.2.10.0000.00717.90
8.2.00.0040.00417.88
8.1.280.0120.00625.92
8.1.270.0000.00821.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.73
8.1.230.0030.00722.12
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0040.00416.99
8.1.180.0000.00718.10
8.1.170.0000.00818.59
8.1.160.0000.00718.94
8.1.150.0040.00418.67
8.1.140.0040.00419.48
8.1.130.0020.00718.62
8.1.120.0030.00417.34
8.1.110.0040.00417.31
8.1.100.0040.00417.31
8.1.90.0040.00417.30
8.1.80.0000.00717.23
8.1.70.0030.00317.20
8.1.60.0000.00817.37
8.1.50.0040.00417.27
8.1.40.0070.00017.37
8.1.30.0040.00417.48
8.1.20.0000.00817.40
8.1.10.0000.00717.32
8.1.00.0000.00717.29
8.0.300.0040.00418.77
8.0.290.0000.00716.58
8.0.280.0070.00018.35
8.0.270.0000.00717.14
8.0.260.0000.00616.74
8.0.250.0070.00016.78
8.0.240.0040.00416.77
8.0.230.0000.00716.79
8.0.220.0000.00716.82
8.0.210.0040.00416.79
8.0.200.0070.00016.89
8.0.190.0030.00516.86
8.0.180.0030.00516.87
8.0.170.0050.00316.72
8.0.160.0070.00016.71
8.0.150.0000.00716.73
8.0.140.0030.00316.68
8.0.130.0000.00813.19
8.0.120.0040.00416.80
8.0.110.0000.00716.68
8.0.100.0050.00216.74
8.0.90.0040.00416.88
8.0.80.0030.01416.77
8.0.70.0000.00716.77
8.0.60.0000.00716.76
8.0.50.0040.00416.70
8.0.30.0070.01117.01
8.0.20.0100.00917.40
8.0.10.0030.00516.85
8.0.00.0100.00616.73
7.4.330.0050.00015.55
7.4.320.0030.00316.36
7.4.300.0060.00016.45
7.4.290.0070.00016.35
7.4.280.0040.00416.56
7.4.270.0000.00816.35
7.4.260.0000.00616.51
7.4.250.0000.00716.31
7.4.240.0000.00716.34
7.4.230.0030.00516.63
7.4.220.0160.00716.38
7.4.210.0090.00616.64
7.4.200.0030.00316.51
7.4.160.0050.01116.33
7.4.150.0090.00917.40
7.4.140.0130.00717.86
7.4.130.0070.01016.62
7.4.120.0160.00716.42
7.4.110.0030.01416.57
7.4.100.0090.00916.29
7.4.90.0140.00816.62
7.4.80.0140.00319.39
7.4.70.0030.01316.32
7.4.60.0060.01016.43
7.4.50.0090.00616.36
7.4.40.0140.00316.59
7.4.30.0100.00716.46
7.4.00.0060.00914.82
7.3.330.0050.00013.17
7.3.320.0050.00313.20
7.3.310.0030.00316.25
7.3.300.0000.00716.22
7.3.290.0050.00916.21
7.3.280.0050.01016.22
7.3.270.0100.01017.40
7.3.260.0090.00816.39
7.3.250.0160.00516.24
7.3.240.0060.01116.41
7.3.230.0120.00616.36
7.3.210.0100.00716.48
7.3.200.0030.01316.53
7.3.190.0130.00616.54
7.3.180.0080.00816.28
7.3.170.0200.00316.26
7.3.160.0100.00716.28
7.3.10.0030.00916.56
7.3.00.0060.01216.73
7.2.330.0070.01116.68
7.2.320.0180.00016.48
7.2.310.0090.00616.68
7.2.300.0180.00016.77
7.2.290.0000.01616.41
7.2.130.0060.00917.10
7.2.120.0100.00616.93
7.2.110.0060.00916.93
7.2.100.0070.00716.93
7.2.90.0100.00317.08
7.2.80.0070.00416.72
7.2.70.0030.01016.89
7.2.60.0070.00816.91
7.2.50.0110.00416.73
7.2.40.0030.01016.90
7.2.30.0060.00917.08
7.2.20.0070.00316.91
7.2.10.0030.01417.13
7.2.00.0070.01016.91
7.1.250.0040.00415.74
7.1.200.0080.00815.52
7.1.70.0430.00715.32
7.1.60.0330.01033.33
7.1.50.0560.00732.66
7.1.40.0760.01632.26
7.1.30.0500.00932.57
7.1.20.0370.01332.67
7.1.10.0300.00714.60
7.1.00.0280.00714.95
7.0.200.0300.00715.07
7.0.190.0320.00614.93
7.0.180.0260.01014.38
7.0.170.0370.01314.23
7.0.160.0380.01214.53
7.0.150.0280.00714.14
7.0.140.0300.01114.59
7.0.130.0330.00314.43
7.0.120.0330.00414.43
7.0.110.0250.01114.58
7.0.100.0300.01014.60
7.0.90.0320.00614.43
7.0.80.0280.00714.46
7.0.70.0280.00714.32
7.0.60.0320.00314.37
7.0.50.0290.00614.48
7.0.40.0280.00614.56
7.0.30.0250.00914.76
7.0.20.0530.01014.56
7.0.10.0300.00414.43
7.0.00.0270.00714.38

preferences:
47.91 ms | 400 KiB | 5 Q