3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 0; //for ( $C1 = 0; $C1 < 3; $C1++ ) //for ( $C2 = 0; $C2 < 3; $C2++ ) //for ( $C3 = 0; $C3 < 3; $C3++ ) //for ( $C4 = 0; $C4 < 3; $C4++ ) //for ( $C5 = 0; $C5 < 3; $C5++ ) //for ( $C6 = 0; $C6 < 3; $C6++ ) for ( $C7 = 0; $C7 < 3; $C7++ ) for ( $C8 = 0; $C8 < 3; $C8++ ) for ( $C9 = 0; $C9 < 3; $C9++ ) for ( $C10 = 0; $C10 < 3; $C10++ ) for ( $C11 = 0; $C11 < 3; $C11++ ) for ( $C12 = 0; $C12 < 3; $C12++ ) for ( $C13 = 0; $C13 < 3; $C13++ ) for ( $C14 = 0; $C14 < 3; $C14++ ) for ( $C15 = 0; $C15 < 3; $C15++ ) { $a = implode('', array($C7, $C8, $C9, $C10, $C11, $C12, $C13, $C14, $C15)); preg_match('/12/', $a, $ma); if ( !$ma ) continue; preg_match('/21/', $a, $ma); if ( !$ma ) continue; preg_match('/11/', $a, $ma); if ( !$ma ) continue; preg_match('/0/', $a, $ma); if ( !$ma ) continue; $count++; } echo $count * 0.25; ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1229