3v4l.org

run code in 300+ PHP versions simultaneously
<?php // liczba caƂkowita w reprezentacji binarnej ile jest 1 function ileJedynekWBin($liczba) { $temp = decbin($liczba); $return = 0; for($i=0;$i<strlen($temp);$i++){ if($temp[$i]) == '1') $return++; } return $return; } echo ileJedynekWBin(7); ?>

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)
5.4.150.0160.05412.37
5.4.140.0130.04512.06
5.4.130.0210.05412.04
5.4.120.0150.04212.01
5.4.110.0230.07812.00
5.4.100.0150.04312.00
5.4.90.0210.06612.00
5.4.80.0150.04312.00
5.4.70.0160.03912.00
5.4.60.0150.04212.00
5.4.50.0200.05111.99
5.4.40.0210.06511.99
5.4.30.0160.04211.98
5.4.20.0180.03811.98
5.4.10.0130.04311.98
5.4.00.0130.04211.47
5.3.250.0060.04112.72
5.3.240.0150.04712.72
5.3.230.0290.06412.71
5.3.220.0160.06012.68
5.3.210.0180.04512.68
5.3.200.0160.04312.68
5.3.190.0310.09012.68
5.3.180.0190.04112.67
5.3.170.0130.04712.67
5.3.160.0190.04212.67
5.3.150.0190.04312.67
5.3.140.0230.06712.66
5.3.130.0130.04712.65
5.3.120.0160.04312.66
5.3.110.0180.04212.66
5.3.100.0260.06312.12
5.3.90.0140.04612.09
5.3.80.0160.04412.07
5.3.70.0170.04212.07
5.3.60.0150.04612.06
5.3.50.0140.04512.01
5.3.40.0270.06312.01
5.3.30.0140.04411.97
5.3.20.0130.04611.75
5.3.10.0150.04011.71
5.3.00.0260.06011.69

preferences:
145.21 ms | 1394 KiB | 7 Q