3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decbin_advanced($binary_string) { $number = 0; while (true) { if ($binary_string == decbin($number)) { return $number; } $counter++; } } echo decbin_advanced(101);

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.0101.99118.30
8.3.50.0121.99121.14
8.3.40.0032.00018.54
8.3.30.0071.99618.46
8.3.20.0002.00420.34
8.3.10.0032.00121.97
8.3.00.0002.00220.21
8.2.180.0131.99118.29
8.2.170.0032.00022.96
8.2.160.0131.99022.13
8.2.150.0002.00424.18
8.2.140.0031.99924.66
8.2.130.0071.99526.16
8.2.120.0071.99517.50
8.2.110.0101.99119.36
8.2.100.0072.00017.63
8.2.90.0002.00219.23
8.2.80.0031.99917.97
8.2.70.0032.00017.63
8.2.60.0031.99917.80
8.2.50.0031.99918.07
8.2.40.0031.99819.38
8.2.30.0031.99920.69
8.2.20.0071.99817.98
8.2.10.0032.00018.11
8.2.00.0002.00418.06
8.1.280.0101.99925.92
8.1.270.0101.99423.96
8.1.260.0031.99726.35
8.1.250.0071.99628.09
8.1.240.0071.99522.71
8.1.230.0071.99517.48
8.1.220.0031.99717.74
8.1.210.0002.00318.77
8.1.200.0101.98617.35
8.1.190.0071.99617.35
8.1.180.0071.99518.10
8.1.170.0071.99118.65
8.1.160.0031.99921.95
8.1.150.0061.99818.95
8.1.140.0031.99817.43
8.1.130.0032.00017.75
8.1.120.0031.99817.56
8.1.110.0032.00017.53
8.1.100.0031.99917.52
8.1.90.0032.00017.57
8.1.80.0002.00217.37
8.1.70.0032.00017.50
8.1.60.0031.99917.64
8.1.50.0032.00317.54
8.1.40.0301.97317.55
8.1.30.0002.00117.63
8.1.20.0101.99117.55
8.1.10.0071.99417.45
8.1.00.0071.99717.44
8.0.300.0002.00218.77
8.0.290.0002.00016.75
8.0.280.0002.00718.29
8.0.270.0101.99117.07
8.0.260.0031.98517.25
8.0.250.0002.00316.89
8.0.240.0002.00316.89
8.0.230.0101.99316.96
8.0.220.0002.00416.70
8.0.210.0031.99716.82
8.0.200.0031.99716.92
8.0.190.0101.98616.80
8.0.180.0071.99316.79
8.0.170.0101.99016.96
8.0.160.0002.00316.95
8.0.150.0002.00116.82
8.0.140.0032.00016.84
8.0.130.0031.99813.34
8.0.120.0071.99716.77
8.0.110.0002.00316.87
8.0.100.0032.00016.94
8.0.90.0002.00216.81
8.0.80.0161.98716.78
8.0.70.0002.00216.85
8.0.60.0031.99916.84
8.0.50.0002.00316.74
8.0.30.0171.98317.06
8.0.20.0191.97817.40
8.0.10.0002.00217.02
8.0.00.0151.98016.81
7.4.330.0101.98715.08
7.4.320.0002.00116.39
7.4.300.0032.00016.51
7.4.290.0032.00016.51
7.4.280.0002.00216.47
7.4.270.0002.00216.41
7.4.260.0002.00316.30
7.4.250.0002.00316.40
7.4.240.0022.00216.30
7.4.230.0002.00216.27
7.4.220.0251.94216.41
7.4.210.0101.99216.43
7.4.200.0071.99816.49
7.4.160.0301.96716.30
7.4.150.0001.99217.40
7.4.140.0191.97517.86
7.4.130.0131.97916.36
7.4.120.0151.98616.57
7.4.110.0262.42516.37
7.4.100.0072.46016.47
7.4.90.0192.43016.36
7.4.80.0102.45719.39
7.4.70.0322.31616.34
7.4.60.0032.45316.42
7.4.50.0032.49416.27
7.4.40.0232.43916.31
7.4.30.0132.44516.35
7.3.330.0201.98613.36
7.3.320.0002.00213.38
7.3.310.0031.99816.27
7.3.300.0031.99616.31
7.3.290.0191.98316.29
7.3.280.0611.85816.28
7.3.270.0231.98017.40
7.3.260.0511.75816.32
7.3.250.0121.98916.35
7.3.240.0291.97716.29
7.3.230.0262.40716.39
7.3.210.0162.45016.36
7.3.200.0222.00916.31
7.3.190.0292.39216.36
7.3.180.0132.45216.39
7.3.170.0132.46716.52
7.3.160.0102.45716.34
7.2.330.0102.45516.73
7.2.320.0372.30016.61
7.2.310.0132.45716.58
7.2.300.0102.42816.74
7.2.290.0262.30616.59
5.4.450.1272.36719.41
5.4.440.1132.38019.11
5.4.430.0772.42019.35
5.4.420.0872.41019.34
5.4.410.1072.39319.27
5.4.400.0932.40719.17
5.4.390.0672.43019.21
5.4.380.0772.42319.19
5.4.370.1132.38719.02
5.4.360.0802.41018.82
5.4.350.0972.40019.07
5.4.340.0932.40719.22
5.4.320.0732.42319.09
5.4.310.0832.41719.12
5.4.300.1072.38318.82
5.4.290.1002.39318.93
5.4.280.1002.38319.21
5.4.270.0072.49019.21
5.4.260.0072.49019.12
5.4.250.0032.49719.08
5.4.240.0672.43319.08
5.4.230.0732.42318.77
5.4.220.0872.41019.07
5.4.210.0902.41018.79
5.4.200.0702.40719.12
5.4.190.1032.39018.96
5.4.180.1202.37718.93
5.4.170.0772.42018.77
5.4.160.0772.41318.93
5.4.150.1002.40019.06
5.4.140.0932.40016.37
5.4.130.1072.39016.54
5.4.120.0972.40016.50
5.4.110.1032.38316.49
5.4.100.1032.39716.61
5.4.90.0732.42716.25
5.4.80.0732.40716.31

preferences:
51.62 ms | 401 KiB | 5 Q