3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $minAge = 86400; // 24h list ($usec, $sec) = explode(' ', microtime(false)); $name = sprintf('%d%06d', $sec, $usec * 1000000); var_dump($name, time()); return; $rows = array( 'import_1364893316_foobar', 'import_1364893306_foobar', 'import_1364893216_foobar', 'import_1364892316_foobar', 'import_1364883316_foobar', 'import_1364793316_foobar', 'import_1363893316_foobar', 'import_1354893316_foobar', 'import_1354893416', 'import_1354893316', ); $drops = array(); $maxCreatedAt = true !== $minAge ? time() - $minAge : time() + 1; foreach ($rows as $row) { if (preg_match('/_([0-9]+)[0-9]{6}[_a-zA-Z]*$/', $row, $matches)) { var_dump($matches[1]); if ($maxCreatedAt > (int) $matches[1]) { $drops[] = $row; } } } var_dump($drops);
Output for 7.1.0
string(16) "1364887913006265" int(1364887913)
Output for 7.0.14
string(16) "1364887913003797" int(1364887913)
Output for 7.0.12
string(16) "1364887913004790" int(1364887913)
Output for 7.0.10
string(16) "1364887913002631" int(1364887913)
Output for 7.0.9
string(16) "1364887913003999" int(1364887913)
Output for 7.0.8
string(16) "1364887913003027" int(1364887913)
Output for 7.0.7
string(16) "1364887913003809" int(1364887913)
Output for 7.0.6
string(16) "1364887913002594" int(1364887913)
Output for 7.0.5
string(16) "1364887913003547" int(1364887913)
Output for 7.0.4
string(16) "1364887913003335" int(1364887913)
Output for 7.0.3
string(16) "1364887913003330" int(1364887913)
Output for 7.0.2
string(16) "1364887913002400" int(1364887913)
Output for 7.0.1
string(16) "1364887913003238" int(1364887913)
Output for 7.0.0
string(16) "1364887913003157" int(1364887913)
Output for hhvm-3.12.0
string(16) "1364887913202498" int(1364887913)
Output for hhvm-3.10.0
string(16) "1364887913195661" int(1364887913)
Output for 5.6.28
string(16) "1364887913004431" int(1364887913)
Output for 5.6.25
string(16) "1364887913003094" int(1364887913)
Output for 5.6.24
string(16) "1364887913003474" int(1364887913)
Output for 5.6.23
string(16) "1364887913004264" int(1364887913)
Output for 5.6.22
string(16) "1364887913004098" int(1364887913)
Output for 5.6.21
string(16) "1364887913003603" int(1364887913)
Output for 5.6.20
string(16) "1364887913003528" int(1364887913)
Output for 5.6.19
string(16) "1364887913003126" int(1364887913)
Output for 5.6.18
string(16) "1364887913003023" int(1364887913)
Output for 5.6.17
string(16) "1364887913002992" int(1364887913)
Output for 5.6.16
string(16) "1364887913003646" int(1364887913)
Output for 5.6.15
string(16) "1364887913003872" int(1364887913)
Output for 5.4.44, 5.6.14
string(16) "1364887913003917" int(1364887913)
Output for 5.6.13
string(16) "1364887913002733" int(1364887913)
Output for 5.6.12
string(16) "1364887913004213" int(1364887913)
Output for 5.6.11
string(16) "1364887913004313" int(1364887913)
Output for 5.6.10
string(16) "1364887913003465" int(1364887913)
Output for 5.6.9
string(16) "1364887913004321" int(1364887913)
Output for 5.6.8
string(16) "1364887913003600" int(1364887913)
Output for 5.6.7
string(16) "1364887913002905" int(1364887913)
Output for 5.6.6
string(16) "1364887913004352" int(1364887913)
Output for 5.6.5
string(16) "1364887913004141" int(1364887913)
Output for 5.6.4
string(16) "1364887913004899" int(1364887913)
Output for 5.6.3
string(16) "1364887913004890" int(1364887913)
Output for 5.6.2
string(16) "1364887913004780" int(1364887913)
Output for 5.6.1
string(16) "1364887913003770" int(1364887913)
Output for 5.6.0
string(16) "1364887913002971" int(1364887913)
Output for 5.5.38
string(16) "1364887913002822" int(1364887913)
Output for 5.5.37
string(16) "1364887913003073" int(1364887913)
Output for 5.5.36
string(16) "1364887913004057" int(1364887913)
Output for 5.5.35
string(16) "1364887913004166" int(1364887913)
Output for 5.5.34
string(16) "1364887913003839" int(1364887913)
Output for 5.5.33
string(16) "1364887913003875" int(1364887913)
Output for 5.5.32
string(16) "1364887913003140" int(1364887913)
Output for 5.5.31
string(16) "1364887913004079" int(1364887913)
Output for 5.5.30
string(16) "1364887913003616" int(1364887913)
Output for 5.5.29
string(16) "1364887913004246" int(1364887913)
Output for 5.5.28
string(16) "1364887913003379" int(1364887913)
Output for 5.5.27
string(16) "1364887913004640" int(1364887913)
Output for 5.5.26
string(16) "1364887913003870" int(1364887913)
Output for 5.5.25
string(16) "1364887913004500" int(1364887913)
Output for 5.5.24
string(16) "1364887913003370" int(1364887913)
Output for 5.5.23
string(16) "1364887913004479" int(1364887913)
Output for 5.5.22
string(16) "1364887913003550" int(1364887913)
Output for 5.5.21
string(16) "1364887913003882" int(1364887913)
Output for 5.5.20
string(16) "1364887913002949" int(1364887913)
Output for 5.5.19
string(16) "1364887913005452" int(1364887913)
Output for 5.5.18
string(16) "1364887913004620" int(1364887913)
Output for 5.5.16
string(16) "1364887913004630" int(1364887913)
Output for 5.5.15
string(16) "1364887913004386" int(1364887913)
Output for 5.5.14
string(16) "1364887913004616" int(1364887913)
Output for 5.5.13
string(16) "1364887913004836" int(1364887913)
Output for 5.5.12
string(16) "1364887913003421" int(1364887913)
Output for 5.5.11
string(16) "1364887913004202" int(1364887913)
Output for 5.5.10
string(16) "1364887913004271" int(1364887913)
Output for 5.5.9
string(16) "1364887913003851" int(1364887913)
Output for 5.5.8
string(16) "1364887913003642" int(1364887913)
Output for 5.5.7
string(16) "1364887913003690" int(1364887913)
Output for 5.5.6
string(16) "1364887913004303" int(1364887913)
Output for 5.5.5
string(16) "1364887913004686" int(1364887913)
Output for 5.5.4
string(16) "1364887913003736" int(1364887913)
Output for 5.5.3
string(16) "1364887913003764" int(1364887913)
Output for 5.5.2
string(16) "1364887913004658" int(1364887913)
Output for 5.5.1
string(16) "1364887913003413" int(1364887913)
Output for 5.5.0
string(16) "1364887913004133" int(1364887913)
Output for 5.4.45
string(16) "1364887913003883" int(1364887913)
Output for 5.4.43
string(16) "1364887913002922" int(1364887913)
Output for 5.4.42
string(16) "1364887913003887" int(1364887913)
Output for 5.4.41
string(16) "1364887913003565" int(1364887913)
Output for 5.4.40
string(16) "1364887913002567" int(1364887913)
Output for 5.4.39
string(16) "1364887913002869" int(1364887913)
Output for 5.4.38
string(16) "1364887913004361" int(1364887913)
Output for 5.4.37
string(16) "1364887913003847" int(1364887913)
Output for 5.4.36
string(16) "1364887913004066" int(1364887913)
Output for 5.4.35
string(16) "1364887913003248" int(1364887913)
Output for 5.4.34
string(16) "1364887913002863" int(1364887913)
Output for 5.4.32
string(16) "1364887913003985" int(1364887913)
Output for 5.4.31
string(16) "1364887913003619" int(1364887913)
Output for 5.4.30
string(16) "1364887913003993" int(1364887913)
Output for 5.4.29
string(16) "1364887913003846" int(1364887913)
Output for 5.4.28
string(16) "1364887913004338" int(1364887913)
Output for 5.4.27
string(16) "1364887913003381" int(1364887913)
Output for 5.4.26
string(16) "1364887913003931" int(1364887913)
Output for 5.4.25
string(16) "1364887913004124" int(1364887913)
Output for 5.4.24
string(16) "1364887913003776" int(1364887913)
Output for 5.4.23
string(16) "1364887913003205" int(1364887913)
Output for 5.4.22
string(16) "1364887913003428" int(1364887913)
Output for 5.4.21
string(16) "1364887913004119" int(1364887913)
Output for 5.4.20
string(16) "1364887913003750" int(1364887913)
Output for 5.4.19
string(16) "1364887913004146" int(1364887913)
Output for 5.4.18
string(16) "1364887913002854" int(1364887913)
Output for 5.4.17
string(16) "1364887913004184" int(1364887913)
Output for 5.4.16
string(16) "1364887913003989" int(1364887913)
Output for 5.4.15
string(16) "1364887913003504" int(1364887913)
Output for 5.4.14
string(16) "1364887913002307" int(1364887913)
Output for 5.4.13
string(16) "1364887913001801" int(1364887913)
Output for 5.4.12
string(16) "1364887913002209" int(1364887913)
Output for 5.4.11
string(16) "1364887913002097" int(1364887913)
Output for 5.3.8, 5.4.10
string(16) "1364887913002219" int(1364887913)
Output for 5.4.9
string(16) "1364887913001858" int(1364887913)
Output for 5.4.8
string(16) "1364887913002325" int(1364887913)
Output for 5.4.7
string(16) "1364887913002161" int(1364887913)
Output for 5.4.6
string(16) "1364887913002017" int(1364887913)
Output for 5.4.5
string(16) "1364887913002485" int(1364887913)
Output for 5.4.4
string(16) "1364887913001669" int(1364887913)
Output for 5.4.3
string(16) "1364887913001835" int(1364887913)
Output for 5.4.2
string(16) "1364887913002267" int(1364887913)
Output for 5.4.1
string(16) "1364887913002260" int(1364887913)
Output for 5.4.0
string(16) "1364887913002158" int(1364887913)
Output for 5.3.29
string(16) "1364887913001973" int(1364887913)
Output for 5.3.9, 5.3.28
string(16) "1364887913001991" int(1364887913)
Output for 5.3.27
string(16) "1364887913002439" int(1364887913)
Output for 5.3.26
string(16) "1364887913002134" int(1364887913)
Output for 5.3.1, 5.3.25
string(16) "1364887913002154" int(1364887913)
Output for 5.3.24
string(16) "1364887913002211" int(1364887913)
Output for 5.3.23
string(16) "1364887913002072" int(1364887913)
Output for 5.3.22
string(16) "1364887913001698" int(1364887913)
Output for 5.3.21
string(16) "1364887913002450" int(1364887913)
Output for 5.3.20
string(16) "1364887913002232" int(1364887913)
Output for 5.3.19
string(16) "1364887913002150" int(1364887913)
Output for 5.3.18
string(16) "1364887913001898" int(1364887913)
Output for 5.3.17
string(16) "1364887913002420" int(1364887913)
Output for 5.1.0, 5.3.16
string(16) "1364887913001700" int(1364887913)
Output for 5.3.15
string(16) "1364887913002244" int(1364887913)
Output for 5.3.14
string(16) "1364887913002387" int(1364887913)
Output for 5.3.13
string(16) "1364887913002228" int(1364887913)
Output for 5.3.12
string(16) "1364887913001894" int(1364887913)
Output for 5.3.11
string(16) "1364887913002341" int(1364887913)
Output for 5.3.10
string(16) "1364887913002355" int(1364887913)
Output for 5.3.7
string(16) "1364887913002282" int(1364887913)
Output for 5.3.6
string(16) "1364887913002386" int(1364887913)
Output for 5.3.5
string(16) "1364887913002342" int(1364887913)
Output for 5.3.4
string(16) "1364887913001788" int(1364887913)
Output for 5.3.3
string(16) "1364887913002213" int(1364887913)
Output for 5.3.2
string(16) "1364887913001850" int(1364887913)
Output for 5.3.0
string(16) "1364887913002350" int(1364887913)
Output for 5.2.17
string(16) "1364887913002088" int(1364887913)
Output for 5.2.16
string(16) "1364887913001316" int(1364887913)
Output for 5.2.15
string(16) "1364887913001917" int(1364887913)
Output for 5.2.14
string(16) "1364887913001441" int(1364887913)
Output for 5.2.13
string(16) "1364887913001976" int(1364887913)
Output for 5.2.12
string(16) "1364887913001834" int(1364887913)
Output for 5.2.11
string(16) "1364887913001853" int(1364887913)
Output for 5.2.10
string(16) "1364887913001151" int(1364887913)
Output for 5.2.9
string(16) "1364887913001148" int(1364887913)
Output for 5.2.8
string(16) "1364887913001625" int(1364887913)
Output for 5.2.7
string(16) "1364887913001891" int(1364887913)
Output for 5.2.6
string(16) "1364887913002014" int(1364887913)
Output for 5.2.5
string(16) "1364887913001688" int(1364887913)
Output for 5.2.4
string(16) "1364887913001267" int(1364887913)
Output for 5.2.3
string(16) "1364887913001930" int(1364887913)
Output for 5.2.2
string(16) "1364887913001945" int(1364887913)
Output for 5.2.1
string(16) "1364887913001823" int(1364887913)
Output for 5.2.0
string(16) "1364887913001859" int(1364887913)
Output for 5.1.6
string(16) "1364887913001743" int(1364887913)
Output for 5.1.5
string(16) "1364887913001333" int(1364887913)
Output for 5.1.4
string(16) "1364887913001709" int(1364887913)
Output for 5.1.3
string(16) "1364887913001866" int(1364887913)
Output for 5.1.2
string(16) "1364887913001851" int(1364887913)
Output for 5.1.1
string(16) "1364887913001236" int(1364887913)
Output for 5.0.5
string(16) "1364887913000721" int(1364887913)
Output for 5.0.4
string(16) "1364887913000716" int(1364887913)
Output for 5.0.3
string(16) "1364887913000632" int(1364887913)
Output for 5.0.2
string(16) "1364887913000706" int(1364887913)
Output for 5.0.1
string(16) "1364887913000770" int(1364887913)
Output for 5.0.0
string(16) "1364887913000768" int(1364887913)
Output for 4.4.9
string(16) "1364887913000113" int(1364887913)
Output for 4.4.8
string(16) "1364887913000186" int(1364887913)
Output for 4.4.7
string(16) "1364887913000176" int(1364887913)
Output for 4.4.6
string(16) "1364887913000203" int(1364887913)
Output for 4.4.5
string(16) "1364887913000189" int(1364887913)
Output for 4.4.4
string(16) "1364887913000179" int(1364887913)
Output for 4.4.3
string(16) "1364887913000119" int(1364887913)
Output for 4.4.2
string(16) "1364887913000192" int(1364887913)
Output for 4.3.5, 4.4.1
string(16) "1364887913000199" int(1364887913)
Output for 4.4.0
string(16) "1364887913000148" int(1364887913)
Output for 4.3.1, 4.3.11
string(16) "1364887913000187" int(1364887913)
Output for 4.3.10
string(16) "1364887913000137" int(1364887913)
Output for 4.3.7, 4.3.9
string(16) "1364887913000154" int(1364887913)
Output for 4.3.8
string(16) "1364887913000124" int(1364887913)
Output for 4.3.6
string(16) "1364887913000138" int(1364887913)
Output for 4.3.4
string(16) "1364887913000165" int(1364887913)
Output for 4.3.3
string(16) "1364887913000219" int(1364887913)
Output for 4.3.2
string(16) "1364887913000193" int(1364887913)
Output for 4.3.0
string(16) "1364887913000207" int(1364887913)