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; } $number++; } } 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.70.0040.01116.47
8.3.60.0090.00618.38
8.3.50.0080.01022.04
8.3.40.0160.00718.86
8.3.30.0120.00918.74
8.3.20.0180.00020.20
8.3.10.0070.01121.52
8.3.00.0030.00620.21
8.2.180.0060.01318.26
8.2.170.0090.00622.96
8.2.160.0120.00922.06
8.2.150.0060.01324.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0110.00017.63
8.2.110.0120.00020.48
8.2.100.0040.00718.05
8.2.90.0030.00619.08
8.2.80.0030.00517.97
8.2.70.0080.00017.50
8.2.60.0000.00817.91
8.2.50.0030.00618.07
8.2.40.0030.00519.46
8.2.30.0000.00820.67
8.2.20.0030.00517.74
8.2.10.0030.00618.05
8.2.00.0030.00518.05
8.1.280.0100.00725.92
8.1.270.0130.00723.91
8.1.260.0040.01526.35
8.1.250.0150.00328.09
8.1.240.0100.00022.54
8.1.230.0040.00717.42
8.1.220.0070.00017.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00917.10
8.1.180.0040.00418.10
8.1.170.0140.00918.26
8.1.160.0000.00722.02
8.1.150.0000.00918.94
8.1.140.0050.00317.41
8.1.130.0070.00017.66
8.1.120.0050.00317.35
8.1.110.0000.00817.41
8.1.100.0040.00417.33
8.1.90.0040.00417.46
8.1.80.0040.00417.48
8.1.70.0040.00417.45
8.1.60.0080.00017.61
8.1.50.0030.00717.57
8.1.40.0030.00817.51
8.1.30.0060.00317.55
8.1.20.0000.00817.64
8.1.10.0030.00517.50
8.1.00.0000.00817.42
8.0.300.0040.00418.77
8.0.290.0070.00016.73
8.0.280.0040.00418.35
8.0.270.0000.00817.25
8.0.260.0000.00717.25
8.0.250.0050.00317.02
8.0.240.0040.00417.09
8.0.230.0040.00417.00
8.0.220.0030.00316.82
8.0.210.0040.00416.94
8.0.200.0040.00817.00
8.0.190.0040.00816.91
8.0.180.0040.00416.96
8.0.170.0000.00817.00
8.0.160.0030.00316.88
8.0.150.0000.00716.93
8.0.140.0070.00016.93
8.0.130.0000.00513.38
8.0.120.0030.00616.94
8.0.110.0070.00016.91
8.0.100.0040.00416.84
8.0.90.0040.00416.79
8.0.80.0130.00916.98
8.0.70.0080.00016.72
8.0.60.0000.00716.77
8.0.50.0000.00716.92
8.0.30.0100.00817.18
8.0.20.0110.00817.40
8.0.10.0050.00217.00
8.0.00.0100.01016.89
7.4.330.0000.00615.08
7.4.320.0050.00216.60
7.4.300.0070.00016.54
7.4.290.0050.00516.59
7.4.280.0030.00316.59
7.4.270.0070.00016.51
7.4.260.0070.00016.47
7.4.250.0000.00716.56
7.4.240.0050.00216.59
7.4.230.0070.00016.66
7.4.220.0110.01416.70
7.4.210.0090.00916.53
7.4.200.0040.00416.43
7.4.160.0030.01216.54
7.4.150.0110.00617.40
7.4.140.0140.00517.86
7.4.130.0070.01016.48
7.4.120.0060.01116.56
7.4.110.0030.01416.34
7.4.100.0130.00316.37
7.4.90.0070.01016.29
7.4.80.0060.01419.39
7.4.70.0120.00416.36
7.4.60.0120.00416.63
7.4.50.0000.00816.57
7.4.40.0030.01316.40
7.4.30.0000.01716.45
7.4.00.0110.00415.02
7.3.330.0000.00613.22
7.3.320.0060.00013.18
7.3.310.0040.00416.41
7.3.300.0070.00016.37
7.3.290.0050.00916.36
7.3.280.0070.01216.34
7.3.270.0110.00617.40
7.3.260.0120.01216.37
7.3.250.0130.00616.47
7.3.240.0050.01816.42
7.3.230.0080.00816.48
7.3.210.0030.01316.62
7.3.200.0140.00416.38
7.3.190.0090.00616.54
7.3.180.0060.00916.50
7.3.170.0080.01116.37
7.3.160.0100.00616.33
7.3.120.0090.00314.78
7.3.110.0060.01215.04
7.3.100.0070.00714.70
7.3.90.0080.00614.81
7.3.80.0060.01014.75
7.3.70.0000.01514.54
7.3.60.0040.01114.55
7.3.50.0000.00914.70
7.3.40.0090.00614.80
7.3.30.0070.00714.88
7.3.20.0070.00716.47
7.3.10.0060.00616.41
7.3.00.0090.00316.56
7.2.330.0060.01216.52
7.2.320.0060.01216.61
7.2.310.0100.00716.44
7.2.300.0080.00916.38
7.2.290.0030.01816.51
7.2.240.0120.00614.78
7.2.230.0090.00615.00
7.2.220.0080.00614.97
7.2.210.0040.00814.84
7.2.200.0030.01015.06
7.2.190.0000.01214.88
7.2.180.0030.01015.18
7.2.170.0120.00314.90
7.2.160.0050.00515.21
7.2.150.0110.00316.74
7.2.140.0080.00816.96
7.2.130.0060.00616.92
7.2.120.0120.00316.91
7.2.110.0070.01016.95
7.2.100.0000.01816.72
7.2.90.0070.00716.72
7.2.80.0060.01016.73
7.2.70.0120.00616.84
7.2.60.0070.01116.72
7.2.50.0050.00516.63
7.2.40.0000.01116.94
7.2.30.0100.00716.87
7.2.20.0030.01316.91
7.2.10.0030.01416.93
7.2.00.0010.01318.26
7.1.330.0130.00615.57
7.1.320.0040.01115.65
7.1.310.0070.00715.93
7.1.300.0060.00915.30
7.1.290.0070.01015.49
7.1.280.0040.01115.82
7.1.270.0000.01115.61
7.1.260.0040.00715.52
7.1.250.0090.00615.69
7.1.100.0030.01318.23
7.1.70.0030.01016.96
7.1.60.0070.01819.11
7.1.50.0110.01116.78
7.1.00.0030.07722.40
7.0.200.0030.00616.52
7.0.60.0170.07019.91
7.0.50.0130.07317.90
7.0.40.0000.08720.27
7.0.30.0230.03320.08
7.0.20.0170.04720.13
7.0.10.0030.04320.22
7.0.00.0070.06020.23
5.6.280.0000.08320.82
5.6.210.0070.03720.50
5.6.200.0030.07718.23
5.6.190.0100.05320.46
5.6.180.0300.06320.41
5.6.170.0270.04020.58
5.6.160.0130.08320.48
5.6.150.0100.08318.29
5.6.140.0230.06718.18
5.6.130.0130.07018.16
5.6.120.0100.04321.11
5.6.110.0030.08020.98
5.6.100.0030.08721.04
5.6.90.0070.08020.96
5.6.80.0100.07720.54
5.5.350.0070.07720.41
5.5.340.0070.03717.99
5.5.330.0070.04020.40
5.5.320.2770.04720.20
5.5.310.0200.04720.25
5.5.300.0030.07317.99
5.5.290.0030.08317.94
5.5.280.0100.08320.98
5.5.270.0100.06720.72
5.5.260.0100.07720.84
5.5.250.0030.04020.78
5.5.240.0100.07320.16
5.4.450.0870.04319.50
5.4.440.0670.06019.47
5.4.430.0730.05319.60
5.4.420.1270.06719.44
5.4.410.1200.07019.45
5.4.400.1130.05019.31
5.4.390.0900.05719.06
5.4.380.0800.05319.14
5.4.370.0930.05718.87
5.4.360.1130.04319.29
5.4.350.1070.05319.22
5.4.340.1100.06718.87
5.4.320.0900.06318.98
5.4.310.0830.05019.13
5.4.300.0870.04019.25
5.4.290.1130.07019.03
5.4.280.1100.05019.14
5.4.270.1070.04718.84
5.4.260.0770.04719.14
5.4.250.0800.05018.86
5.4.240.0870.04019.26
5.4.230.0770.04719.05
5.4.220.0830.06719.14
5.4.210.0970.05719.00
5.4.200.0770.05019.14
5.4.190.0730.05019.25
5.4.180.0730.05319.25
5.4.170.0730.05319.27
5.4.160.0630.06019.20
5.4.150.0800.04719.24
5.4.140.1130.04716.52
5.4.130.1030.04716.39
5.4.120.1070.04316.52
5.4.110.1000.05316.59
5.4.100.1070.04716.62
5.4.90.0930.05316.71
5.4.80.0800.04716.26
5.4.70.0230.06316.18
5.4.60.0000.05316.34
5.4.50.0030.06316.55
5.4.40.0330.05016.34
5.4.30.0200.07016.42
5.4.20.0230.07316.43

preferences:
46.95 ms | 401 KiB | 5 Q