3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php set_time_limit(0); $count = 0; for ( $match1 = 0; $match1 < 3; $match1++ ) for ( $match2 = 0; $match2 < 3; $match2++ ) for ( $match3 = 0; $match3 < 3; $match3++ ) for ( $match4 = 0; $match4 < 3; $match4++ ) for ( $match5 = 0; $match5 < 3; $match5++ ) for ( $match6 = 0; $match6 < 3; $match6++ ) for ( $match7 = 0; $match7 < 3; $match7++ ) for ( $match8 = 0; $match8 < 3; $match8++ ) for ( $match9 = 0; $match9 < 3; $match9++ ) for ( $match10 = 0; $match10 < 3; $match10++ ) for ( $match11 = 0; $match11 < 3; $match11++ ) for ( $match12 = 0; $match12 < 3; $match12++ ) for ( $match13 = 0; $match13 < 3; $match13++ ) for ( $match14 = 0; $match14 < 3; $match14++ ) for ( $match15 = 0; $match15 < 3; $match15++ ) { $column = join(array($match1, $match2, $match3, $match4, $match5, $match6, $match7, $match8, $match9, $match10, $match11, $match12, $match13, $match14, $match15)); $count0 = substr_count($column, '0'); $count1 = substr_count($column, '1'); $count2 = substr_count($column, '2'); $count12 = substr_count($column, '12'); $count21 = substr_count($column, '21'); $count101 = substr_count($column, '101'); if ( $count0 < 1 ) continue; if ( $count1 < 5 ) continue; if ( $count2 < 5 ) continue; if ( $count12 < 2 ) continue; if ( $count21 < 2 ) continue; if ( $count101 < 1 ) continue; $count++; } echo $count; ?>
Output for 5.2.15 - 7.1.0

Process exited with code 137.