3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=range(1,10000); function odd($elt) { return $elt & 1; } $start=microtime(true); for ($i=0;$i<100;$i++) { $b=array_filter($a, 'odd'); } echo "time = ", microtime(true) - $start, "\n";
Output for 7.1.0
time = 0.065419912338257
Output for 7.0.14
time = 0.068795919418335
Output for 7.0.7
time = 0.058491945266724
Output for 7.0.6
time = 0.053192853927612
Output for 7.0.5
time = 0.052289009094238
Output for 7.0.4
time = 0.040339946746826
Output for 7.0.3
time = 0.038800001144409
Output for 7.0.2
time = 0.046872138977051
Output for 7.0.1
time = 0.043651103973389
Output for 7.0.0
time = 0.088000059127808
Output for hhvm-3.12.0
time = 0.12901210784912
Output for hhvm-3.10.0
time = 0.16505408287048
Output for 5.6.28
time = 0.13366389274597
Output for 5.6.22
time = 0.22105193138123
Output for 5.6.21
time = 0.20319795608521
Output for 5.6.20
time = 0.17643308639526
Output for 5.6.19
time = 0.1889979839325
Output for 5.6.18
time = 0.18048000335693
Output for 5.6.17
time = 0.17418217658997
Output for 5.6.16
time = 0.17875385284424
Output for 5.6.15
time = 0.15131282806396
Output for 5.6.14
time = 0.18749308586121
Output for 5.6.13
time = 0.1503541469574
Output for 5.6.12
time = 0.19831800460815
Output for 5.6.11
time = 0.21605110168457
Output for 5.6.10
time = 0.19083499908447
Output for 5.6.9
time = 0.18543195724487
Output for 5.6.8
time = 0.19967603683472
Output for 5.6.7
time = 0.21756815910339
Output for 5.6.6
time = 0.17945599555969
Output for 5.6.5
time = 0.21850180625916
Output for 5.6.4
time = 0.20467495918274
Output for 5.6.3
time = 0.22053098678589
Output for 5.6.2
time = 0.2084219455719
Output for 5.6.1
time = 0.19333600997925
Output for 5.6.0
time = 0.2177300453186
Output for 5.5.36
time = 0.188227891922
Output for 5.5.35
time = 0.20547103881836
Output for 5.5.34
time = 0.18426012992859
Output for 5.5.33
time = 0.18072581291199
Output for 5.5.32
time = 0.2087390422821
Output for 5.5.31
time = 0.18273115158081
Output for 5.5.30
time = 0.18195605278015
Output for 5.5.29
time = 0.196133852005
Output for 5.5.28
time = 0.16793203353882
Output for 5.5.27
time = 0.181480884552
Output for 5.5.26
time = 0.1710479259491
Output for 5.5.25
time = 0.18069386482239
Output for 5.5.24
time = 0.20732402801514
Output for 5.5.23
time = 0.18409514427185
Output for 5.5.22
time = 0.19445896148682
Output for 5.5.21
time = 0.18965697288513
Output for 5.5.20
time = 0.18266797065735
Output for 5.5.19
time = 0.20817708969116
Output for 5.5.18
time = 0.1936571598053
Output for 5.5.16
time = 0.17818999290466
Output for 5.5.15
time = 0.17099404335022
Output for 5.5.14
time = 0.17236304283142
Output for 5.5.13
time = 0.18343997001648
Output for 5.5.12
time = 0.20722198486328
Output for 5.5.11
time = 0.19157886505127
Output for 5.5.10
time = 0.20614314079285
Output for 5.5.9
time = 0.21037292480469
Output for 5.5.8
time = 0.21105194091797
Output for 5.5.7
time = 0.17401695251465
Output for 5.5.6
time = 0.19429302215576
Output for 5.5.5
time = 0.22046399116516
Output for 5.5.4
time = 0.1927969455719
Output for 5.5.3
time = 0.20591998100281
Output for 5.5.2
time = 0.17667698860168
Output for 5.5.1
time = 0.20482897758484
Output for 5.5.0
time = 0.19950199127197
Output for 5.4.45
time = 0.2010018825531
Output for 5.4.44
time = 0.17871117591858
Output for 5.4.43
time = 0.18957996368408
Output for 5.4.42
time = 0.18277907371521
Output for 5.4.41
time = 0.21776390075684
Output for 5.4.40
time = 0.18062090873718
Output for 5.4.39
time = 0.18080902099609
Output for 5.4.38
time = 0.19323992729187
Output for 5.4.37
time = 0.18304300308228
Output for 5.4.36
time = 0.20949101448059
Output for 5.4.35
time = 0.21049094200134
Output for 5.4.34
time = 0.2001359462738
Output for 5.4.32
time = 0.20737409591675
Output for 5.4.31
time = 0.20329904556274
Output for 5.4.30
time = 0.17121315002441
Output for 5.4.29
time = 0.16954302787781
Output for 5.4.28
time = 0.1712498664856
Output for 5.4.27
time = 0.19176411628723
Output for 5.4.26
time = 0.19274091720581
Output for 5.4.25
time = 0.20562601089478
Output for 5.4.24
time = 0.18394494056702
Output for 5.4.23
time = 0.19526505470276
Output for 5.4.22
time = 0.18825006484985
Output for 5.4.21
time = 0.17960000038147
Output for 5.4.20
time = 0.17181181907654
Output for 5.4.19
time = 0.21196389198303
Output for 5.4.18
time = 0.18811202049255
Output for 5.4.17
time = 0.17017483711243
Output for 5.4.16
time = 0.17756605148315
Output for 5.4.15
time = 0.17724990844727
Output for 5.4.14
time = 0.20250606536865
Output for 5.4.13
time = 0.19675302505493
Output for 5.4.12
time = 0.20725798606873
Output for 5.4.11
time = 0.2057478427887
Output for 5.4.10
time = 0.2070848941803
Output for 5.4.9
time = 0.21937608718872
Output for 5.4.8
time = 0.18140506744385
Output for 5.4.7
time = 0.21927809715271
Output for 5.4.6
time = 0.20589900016785
Output for 5.4.5
time = 0.20746397972107
Output for 5.4.4
time = 0.21408605575562
Output for 5.4.3
time = 0.16692209243774
Output for 5.4.2
time = 0.16513895988464
Output for 5.4.1
time = 0.20740699768066
Output for 5.4.0
time = 0.17518210411072
Output for 5.3.29
time = 0.20466709136963
Output for 5.3.28
time = 0.21597909927368
Output for 5.3.27
time = 0.17890095710754
Output for 5.3.26
time = 0.21668004989624
Output for 5.3.25
time = 0.19021105766296
Output for 5.3.24
time = 0.199294090271
Output for 5.3.23
time = 0.19213390350342
Output for 5.3.22
time = 0.21053004264832
Output for 5.3.21
time = 0.21527290344238
Output for 5.3.20
time = 0.18601512908936
Output for 5.3.19
time = 0.21930980682373
Output for 5.3.18
time = 0.17373180389404
Output for 5.3.17
time = 0.17915797233582
Output for 5.3.16
time = 0.21631217002869
Output for 5.3.15
time = 0.18441605567932
Output for 5.3.14
time = 0.18522310256958
Output for 5.3.13
time = 0.21488809585571
Output for 5.3.12
time = 0.20306301116943
Output for 5.3.11
time = 0.22304606437683
Output for 5.3.10
time = 0.1998119354248
Output for 5.3.9
time = 0.17667198181152
Output for 5.3.8
time = 0.18528985977173
Output for 5.3.7
time = 0.21413016319275
Output for 5.3.6
time = 0.2195188999176
Output for 5.3.5
time = 0.1835560798645
Output for 5.3.4
time = 0.17659687995911
Output for 5.3.3
time = 0.20650696754456
Output for 5.3.2
time = 0.18291687965393
Output for 5.3.1
time = 0.22271203994751
Output for 5.3.0
time = 0.22163486480713
Output for 5.2.17
time = 0.19949412345886
Output for 5.2.16
time = 0.21191215515137
Output for 5.2.15
time = 0.20827484130859
Output for 5.2.14
time = 0.22757291793823
Output for 5.2.13
time = 0.18232393264771
Output for 5.2.12
time = 0.20379185676575
Output for 5.2.11
time = 0.17620491981506
Output for 5.2.10
time = 0.23014187812805
Output for 5.2.9
time = 0.20148277282715
Output for 5.2.8
time = 0.21487903594971
Output for 5.2.7
time = 0.1897919178009
Output for 5.2.6
time = 0.17618703842163
Output for 5.2.5
time = 0.20744919776917
Output for 5.2.4
time = 0.22449994087219
Output for 5.2.3
time = 0.23134183883667
Output for 5.2.2
time = 0.18637609481812
Output for 5.2.1
time = 0.18987607955933
Output for 5.2.0
time = 0.21005916595459
Output for 5.1.6
time = 0.21703290939331
Output for 5.1.5
time = 0.22886395454407
Output for 5.1.4
time = 0.16798806190491
Output for 5.1.3
time = 0.18562197685242
Output for 5.1.2
time = 0.17200493812561
Output for 5.1.1
time = 0.18782091140747
Output for 5.1.0
time = 0.22185707092285
Output for 5.0.5
time = 0.24128103256226
Output for 5.0.4
time = 0.24881601333618
Output for 5.0.3
time = 0.18799114227295
Output for 5.0.2
time = 0.22927689552307
Output for 5.0.1
time = 0.2672131061554
Output for 5.0.0
time = 0.30099391937256
Output for 4.4.9
time = 0.293971
Output for 4.4.8
time = 0.263786
Output for 4.4.7
time = 0.271715
Output for 4.4.6
time = 0.311593
Output for 4.4.5
time = 0.258217
Output for 4.4.4
time = 0.310777
Output for 4.4.3
time = 0.304239
Output for 4.4.2
time = 0.32539
Output for 4.4.1
time = 0.300747
Output for 4.4.0
time = 0.295009
Output for 4.3.11
time = 0.26145
Output for 4.3.10
time = 0.273627
Output for 4.3.9
time = 0.24239
Output for 4.3.8
time = 0.336672
Output for 4.3.7
time = 0.291747
Output for 4.3.6
time = 0.259753
Output for 4.3.5
time = 0.251078
Output for 4.3.4
time = 0.263401
Output for 4.3.3
time = 0.249541
Output for 4.3.2
time = 0.217513
Output for 4.3.1
time = 0.224842
Output for 4.3.0
time = 0.251181