3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array(5,5), array(4,3), array(4,0) ); // ______ - // | _____ mind. 1 Position komplett offen // || ____ Position mit Teilmengen geliefert // ||| ___ alles komplett // |||| $bitmask = bindec('0001'); printf("%04b\n", $bitmask); foreach ($arr as $w) { if ($w[0] == $w[1]) $bitmask |= bindec('0010'); printf("%04b\n", $bitmask); if ($w[1] == 0) $bitmask &= ~bindec('0101'); printf("%04b\n", $bitmask); if ($w[1] > 0) $bitmask &= ~bindec('0001'); printf("%04b\n", $bitmask); echo "=====\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)
5.4.210.0060.03512.38
5.4.200.0090.04212.38
5.4.190.0220.05812.37
5.4.180.0130.03712.37
5.4.170.0120.03712.38
5.4.160.0120.03812.38
5.4.150.0100.04112.37
5.4.140.0110.03912.06
5.4.130.0070.04312.04
5.4.120.0120.04212.01
5.4.110.0100.04112.01
5.4.100.0090.04012.01
5.4.90.0140.05212.01
5.4.80.0090.04412.01
5.4.70.0100.04012.00
5.4.60.0090.04212.00
5.4.50.0210.06012.01
5.4.40.0080.04111.99
5.4.30.0100.03911.99
5.4.20.0090.04111.98
5.4.10.0100.04511.99
5.4.00.0080.04211.48
5.3.270.0100.04312.72
5.3.260.0120.04212.72
5.3.250.0120.04212.72
5.3.240.0100.04212.72
5.3.230.0110.04312.71
5.3.220.0130.03912.68
5.3.210.0190.06512.68
5.3.200.0100.04112.68
5.3.190.0170.06612.68
5.3.180.0150.03512.67
5.3.170.0090.04312.67
5.3.160.0130.04012.67
5.3.150.0100.04112.67
5.3.140.0110.04312.66
5.3.130.0110.04212.66
5.3.120.0120.04112.66
5.3.110.0180.05412.65
5.3.100.0130.04312.12
5.3.90.0100.04212.08
5.3.80.0130.04512.08
5.3.70.0130.04212.07
5.3.60.0160.04312.06
5.3.50.0250.06512.00
5.3.40.0080.04712.00
5.3.30.0110.03911.95
5.3.20.0120.04111.72
5.3.10.0120.03811.69
5.3.00.0090.04111.67

preferences:
141.68 ms | 1398 KiB | 7 Q