3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bcmul_hex($h1, $h2) { $dec = bcmul($h1, $h2); $hex = ''; do { $last = bcmod($dec, 16); $hex = dechex($last).$hex; $dec = bcdiv(bcsub($dec, $last), 16); } while($dec>0); return $hex; } echo bcmul_hex(0xB5365D09, 0xDEBC252C);

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.140.0120.01017.56
8.4.130.0040.00519.03
8.4.120.0090.01020.48
8.4.110.0110.01319.55
8.4.100.0130.00617.85
8.4.90.0050.00522.25
8.4.80.0020.00618.66
8.4.70.0090.01117.80
8.4.60.0100.01317.68
8.4.50.0090.01119.30
8.4.40.0190.00019.45
8.4.30.0100.01020.55
8.4.20.0130.00619.52
8.4.10.0160.00023.67
8.3.270.0120.00916.73
8.3.260.0160.00416.36
8.3.250.0120.00717.04
8.3.240.0120.00716.68
8.3.230.0120.00716.44
8.3.220.0060.00318.82
8.3.210.0100.00518.35
8.3.200.0110.00918.95
8.3.190.0090.00716.52
8.3.180.0140.00618.17
8.3.170.0070.01118.86
8.3.160.0000.00816.67
8.3.150.0000.01919.04
8.3.140.0030.00616.48
8.3.130.0190.00016.69
8.3.120.0130.00920.73
8.3.110.0030.00516.53
8.3.100.0070.00716.76
8.3.90.0110.00726.77
8.3.80.0060.00318.55
8.3.70.0140.00716.58
8.3.60.0060.00916.32
8.3.50.0090.00618.36
8.3.40.0100.00320.01
8.3.30.0090.00918.59
8.3.20.0090.00024.18
8.3.10.0040.00424.66
8.3.00.0030.00526.16
8.2.290.0110.00716.48
8.2.280.0090.00916.38
8.2.270.0070.01119.15
8.2.260.0050.00316.66
8.2.250.0030.00618.50
8.2.240.0110.00417.14
8.2.230.0160.00020.94
8.2.220.0040.00724.06
8.2.210.0050.00326.77
8.2.200.0030.00618.18
8.2.190.0060.01216.58
8.2.180.0070.00725.92
8.2.170.0080.00818.86
8.2.160.0050.00822.96
8.2.150.0030.00525.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00426.16
8.2.110.0070.00320.58
8.2.100.0040.00817.72
8.2.90.0080.00018.03
8.2.80.0000.00817.63
8.2.70.0090.00017.50
8.2.60.0090.00018.04
8.2.50.0080.00018.07
8.2.40.0060.00321.07
8.2.30.0000.01118.04
8.2.20.0050.00319.11
8.2.10.0030.00618.15
8.2.00.0120.00417.61
8.1.330.0100.01016.31
8.1.320.0110.00916.12
8.1.310.0070.01016.33
8.1.300.0040.01118.53
8.1.290.0060.00330.84
8.1.280.0090.00625.92
8.1.270.0020.00524.66
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00622.55
8.1.230.0080.00420.90
8.1.220.0040.00417.74
8.1.210.0050.00318.89
8.1.200.0030.00617.13
8.1.190.0080.00017.35
8.1.180.0030.00618.10
8.1.170.0040.00418.40
8.1.160.0040.00418.88
8.1.150.0000.00918.64
8.1.140.0040.00417.40
8.1.130.0100.00517.41
8.1.120.0080.00617.38
8.1.110.0100.00517.50
8.1.100.0120.00417.29
8.1.90.0120.00617.29
8.1.80.0080.00817.36
8.1.70.0120.00717.39
8.1.60.0140.00417.56
8.1.50.0130.00317.60
8.1.40.0170.00017.56
8.1.30.0140.00517.49
8.1.20.0170.00317.56
8.1.10.0160.00317.36
8.1.00.0160.00217.45
8.0.300.0060.00319.93
8.0.290.0000.00816.75
8.0.280.0070.00018.36
8.0.270.0020.00517.30
8.0.260.0110.00016.87
8.0.250.0080.00616.87
8.0.240.0100.00316.87
8.0.230.0090.00616.87
8.0.220.0060.00816.87
8.0.210.0050.00916.87
8.0.200.0100.00216.87
8.0.190.0130.00016.87
8.0.180.0040.00816.87
8.0.170.0100.00716.87
8.0.160.0150.00016.87
8.0.150.0130.00316.87
8.0.140.0080.00616.87
8.0.130.0120.00016.87
8.0.120.0070.00416.87
8.0.110.0060.00616.87
8.0.100.0080.00316.87
8.0.90.0090.00016.87
8.0.80.0060.00616.87
8.0.70.0060.00616.87
8.0.60.0090.00416.87
8.0.50.0090.00316.87
8.0.30.0140.00016.87
8.0.20.0110.00416.87
8.0.10.0140.00016.91

preferences:
32.23 ms | 403 KiB | 5 Q