3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hex1 = "B5365D09"; $hex2 = "DEBC252C"; // Convert hexadecimal values to decimal $dec1 = hexdec($hex1); $dec2 = hexdec($hex2); // Perform multiplication operation $result = $dec1 * $dec2; // Convert result back to hexadecimal $hex_result = dechex((int)$result); // Print result echo "Result: $hex_result\n";

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.5.30.0120.00619.34
8.5.20.0090.01019.50
8.5.10.0080.01020.09
8.5.00.0090.01120.30
8.4.180.0110.01020.65
8.4.170.0090.01123.89
8.4.160.0100.01023.00
8.4.150.0060.00616.85
8.4.140.0100.01417.42
8.4.130.0200.00417.74
8.4.120.0080.01220.71
8.4.110.0100.01119.10
8.4.100.0080.01217.92
8.4.90.0120.00920.39
8.4.80.0040.00717.77
8.4.70.0090.00717.73
8.4.60.0160.00518.44
8.4.50.0080.00417.27
8.4.40.0070.01119.82
8.4.30.0000.01920.84
8.4.20.0160.00319.71
8.4.10.0000.00924.04
8.3.300.0110.00920.75
8.3.290.0100.00920.71
8.3.280.0110.01218.33
8.3.270.0110.00816.45
8.3.260.0110.00916.51
8.3.250.0100.00919.09
8.3.240.0100.00817.39
8.3.230.0090.01016.72
8.3.220.0120.00717.14
8.3.210.0130.00816.57
8.3.200.0050.00416.63
8.3.190.0030.00617.25
8.3.180.0110.00918.35
8.3.170.0140.00318.66
8.3.160.0070.00717.18
8.3.150.0120.00319.04
8.3.140.0030.00618.73
8.3.130.0040.00418.20
8.3.120.0030.00718.90
8.3.110.0090.00020.94
8.3.100.0030.00624.06
8.3.90.0030.00626.77
8.3.80.0030.00618.56
8.3.70.0110.00716.58
8.3.60.0120.00316.63
8.3.50.0040.01118.41
8.3.40.0090.00919.90
8.3.30.0110.00418.47
8.3.20.0050.00324.18
8.3.10.0050.00224.66
8.3.00.0050.00326.16
8.2.300.0120.00818.01
8.2.290.0120.00820.42
8.2.280.0060.01218.33
8.2.270.0100.00318.86
8.2.260.0090.00916.64
8.2.250.0050.00316.84
8.2.240.0030.00518.73
8.2.230.0160.00322.58
8.2.220.0120.00637.54
8.2.210.0080.00026.77
8.2.200.0000.00816.38
8.2.190.0110.00716.58
8.2.180.0070.01025.92
8.2.170.0120.00319.07
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0080.00019.82
8.2.110.0110.00022.23
8.2.100.0080.00417.91
8.2.90.0000.00820.50
8.2.80.0030.00517.61
8.2.70.0100.00017.63
8.2.60.0000.00918.05
8.2.50.0050.00318.07
8.2.40.0030.00520.07
8.2.30.0040.00418.05
8.2.20.0000.00719.37
8.2.10.0060.00318.06
8.2.00.0040.00419.36
8.1.340.0040.00617.55
8.1.330.0130.00520.30
8.1.320.0120.00916.02
8.1.310.0040.01416.49
8.1.300.0000.00919.72
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0000.00724.66
8.1.260.0000.00926.35
8.1.250.0080.00028.09
8.1.240.0090.00022.45
8.1.230.0090.00322.82
8.1.220.0060.00317.79
8.1.210.0060.00318.89
8.1.200.0080.00017.48
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0030.00618.66
8.1.160.0030.00418.86
8.1.150.0070.00018.64
8.1.140.0040.00417.45
8.1.130.0070.00318.69
8.1.120.0040.00718.70
8.1.110.0130.00018.61
8.1.100.0120.00718.76
8.1.90.0130.00718.61
8.1.80.0150.00618.62
8.1.70.0160.00318.63
8.1.60.0170.00018.73
8.1.50.0150.00218.74
8.1.40.0150.00318.82
8.1.30.0120.00718.89
8.1.20.0140.00618.94
8.1.10.0090.01218.84
8.1.00.0100.00918.63
8.0.300.0070.00020.08
8.0.290.0040.00416.75
8.0.280.0030.00718.43
8.0.270.0000.00717.36
8.0.260.0100.00718.11
8.0.250.0060.01017.96
8.0.240.0160.00218.01
8.0.230.0140.00318.01
8.0.220.0120.00418.10
8.0.210.0110.00417.87
8.0.200.0100.00618.11
8.0.190.0060.00918.17
8.0.180.0170.00018.16
8.0.170.0090.00417.95
8.0.160.0030.00717.91
8.0.150.0120.00318.13
8.0.140.0120.00217.93
8.0.130.0090.00618.07
8.0.120.0120.00417.89
8.0.110.0080.00417.93
8.0.100.0030.01017.85
8.0.90.0130.00018.05
8.0.80.0120.00018.10
8.0.70.0090.00418.05
8.0.60.0120.00317.94
8.0.50.0000.01118.02
8.0.30.0050.00518.00
8.0.20.0070.00218.09
8.0.10.0070.00718.12

preferences:
50.48 ms | 1106 KiB | 5 Q