3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _bin16dec($bin) { $num = intval($bin,2); if (0x8000 & $num) { $num = - (0x010000 - $num); } return $num; } $b = "1111111111111010"; echo _bin16dec($b);

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.0080.00618.56
8.3.50.0130.00319.74
8.3.40.0120.00318.80
8.3.30.0110.00418.46
8.3.20.0040.00420.02
8.3.10.0050.00320.53
8.3.00.0040.00420.35
8.2.180.0040.01118.29
8.2.170.0090.00622.96
8.2.160.0140.00022.17
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00320.60
8.2.120.0040.00426.35
8.2.110.0090.00919.21
8.2.100.0060.00617.93
8.2.90.0000.00819.13
8.2.80.0080.00017.97
8.2.70.0050.00317.50
8.2.60.0050.00317.80
8.2.50.0000.00818.09
8.2.40.0050.00220.64
8.2.30.0040.00419.41
8.2.20.0030.00517.60
8.2.10.0000.00718.00
8.2.00.0040.00418.14
8.1.280.0120.00325.92
8.1.270.0080.00023.97
8.1.260.0080.00028.09
8.1.250.0000.00928.09
8.1.240.0070.01123.97
8.1.230.0040.00717.64
8.1.220.0030.00617.79
8.1.210.0080.00018.77
8.1.200.0070.00317.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0030.00320.74
8.1.150.0040.00418.81
8.1.140.0060.00319.50
8.1.130.0030.00317.63
8.1.120.0030.00317.29
8.1.110.0000.00717.42
8.1.100.0000.00717.38
8.1.90.0040.00417.37
8.1.80.0000.00717.42
8.1.70.0080.00317.42
8.1.60.0060.00317.46
8.1.50.0050.00317.47
8.1.40.0080.00017.50
8.1.30.0050.00317.62
8.1.20.0000.00717.55
8.1.10.0050.00317.51
8.1.00.0000.00817.42
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0050.00218.43
8.0.270.0040.00417.16
8.0.260.0030.00317.09
8.0.250.0040.00416.85
8.0.240.0070.00016.88
8.0.230.0000.00716.90
8.0.220.0040.00416.68
8.0.210.0080.00016.81
8.0.200.0030.00316.89
8.0.190.0070.00016.83
8.0.180.0080.00016.74
8.0.170.0040.00416.84
8.0.160.0070.00016.81
8.0.150.0040.00416.65
8.0.140.0000.00716.69
8.0.130.0030.00313.29
8.0.120.0000.00816.69
8.0.110.0040.00416.85
8.0.100.0000.00716.81
8.0.90.0000.00716.85
8.0.80.0040.01116.81
8.0.70.0040.00416.88
8.0.60.0040.00416.89
8.0.50.0040.00416.78
8.0.30.0060.01217.01
8.0.20.0150.00717.40
8.0.10.0050.00216.82
8.0.00.0120.00616.65
7.4.330.0050.00016.79
7.4.320.0000.00616.46
7.4.300.0030.00316.59
7.4.290.0030.00516.48
7.4.280.0000.00716.58
7.4.270.0030.00316.48
7.4.260.0040.00516.64
7.4.250.0000.00716.47
7.4.240.0030.00316.60
7.4.230.0040.00416.39
7.4.220.0110.00916.49
7.4.210.0070.01016.57
7.4.200.0030.00316.69
7.4.160.0060.00916.42
7.4.150.0090.00917.40
7.4.140.0080.01317.86
7.4.130.0100.00816.50
7.4.120.0090.01116.41
7.4.110.0060.01016.40
7.4.100.0070.01016.45
7.4.90.0170.00016.53
7.4.80.0090.00919.39
7.4.70.0030.01716.41
7.4.60.0030.01416.52
7.4.50.0030.01316.59
7.4.40.0110.00716.23
7.4.30.0080.00816.22
7.4.00.0100.00714.84
7.3.330.0000.00613.12
7.3.320.0030.00313.25
7.3.310.0050.00216.25
7.3.300.0070.00016.34
7.3.290.0080.00816.31
7.3.280.0060.01116.29
7.3.270.0070.01117.40
7.3.260.0100.00716.59
7.3.250.0060.01116.42
7.3.240.0080.01116.53
7.3.230.0070.01016.39
7.3.210.0060.00916.44
7.3.200.0060.01116.47
7.3.190.0090.00916.42
7.3.180.0130.00316.61
7.3.170.0060.01016.49
7.3.160.0030.01316.36
7.3.10.0040.01116.61
7.3.00.0000.01016.58
7.2.330.0090.00916.75
7.2.320.0090.00916.61
7.2.310.0110.00716.70
7.2.300.0060.01316.68
7.2.290.0090.00616.77
7.2.130.0060.00916.70
7.2.120.0060.00916.45
7.2.110.0060.00616.73
7.2.100.0140.00416.68
7.2.90.0000.01416.95
7.2.80.0060.00917.05
7.2.70.0100.00316.86
7.2.60.0110.00416.88
7.2.50.0110.01016.98
7.2.40.0070.00416.96
7.2.30.0000.01317.08
7.2.20.0070.00716.68
7.2.10.0080.01516.91
7.2.00.0050.00818.20
7.1.250.0030.00915.41
7.1.200.0040.01115.74
7.1.100.0000.01218.23
7.1.70.0000.01616.86
7.1.60.0070.01719.25
7.1.50.0030.00816.98
7.1.00.0030.07322.28
7.0.200.0030.00716.46
7.0.60.0300.07321.75
7.0.50.0030.06317.88
7.0.40.0130.07320.25
7.0.30.0300.07720.25
7.0.20.0330.07720.12
7.0.10.0030.04720.23
7.0.00.0130.08720.17
5.6.280.0070.07021.07
5.6.210.0130.07720.77
5.6.200.0030.05318.20
5.6.190.0100.08720.77
5.6.180.0300.04320.65
5.6.170.0370.04320.47
5.6.160.0130.07720.46
5.6.150.0130.07018.18
5.6.140.0030.04318.14
5.6.130.0030.08318.16
5.6.120.0100.06021.12
5.6.110.0000.04321.05
5.6.100.0030.08721.10
5.6.90.0130.08021.11
5.6.80.0100.06020.37
5.5.350.0270.06320.46
5.5.340.0070.05718.02
5.5.330.0130.04720.40
5.5.320.0300.07320.20
5.5.310.0170.05320.23
5.5.300.0070.04717.98
5.5.290.0030.07717.98
5.5.280.0130.07720.87
5.5.270.0070.04720.97
5.5.260.0100.07320.96
5.5.250.0100.07020.71
5.5.240.0300.07320.11

preferences:
61.13 ms | 400 KiB | 5 Q