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(); for ($j=0; $j<10000; $j++) { if ($a[$j] & 1) $b[] = $a[$j]; } } echo "time = ", microtime(true) - $start, "\n";
Output for 7.1.0
time = 0.040259838104248
Output for 7.0.14
time = 0.056283950805664
Output for 7.0.12
time = 0.058756828308105
Output for 7.0.6
time = 0.03984808921814
Output for 7.0.5
time = 0.031558036804199
Output for 7.0.4
time = 0.040251970291138
Output for 7.0.3
time = 0.032550096511841
Output for 7.0.2
time = 0.042057991027832
Output for 7.0.1
time = 0.029299020767212
Output for 7.0.0
time = 0.04229998588562
Output for hhvm-3.12.0
time = 0.12624788284302
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
time = 0.14116311073303
Output for 5.6.21
time = 0.094305992126465
Output for 5.6.20
time = 0.10827589035034
Output for 5.6.19
time = 0.10243797302246
Output for 5.6.18
time = 0.082982063293457
Output for 5.6.17
time = 0.085101842880249
Output for 5.6.16
time = 0.10094881057739
Output for 5.6.15
time = 0.082067966461182
Output for 5.6.14
time = 0.083538055419922
Output for 5.6.13
time = 0.09710693359375
Output for 5.6.12
time = 0.087164163589478
Output for 5.6.11
time = 0.082954168319702
Output for 5.6.10
time = 0.09251594543457
Output for 5.6.9
time = 0.090015888214111
Output for 5.6.8
time = 0.096410989761353
Output for 5.6.7
time = 0.085075855255127
Output for 5.5.35
time = 0.071120023727417
Output for 5.5.34
time = 0.0866379737854
Output for 5.5.33
time = 0.12594485282898
Output for 5.5.32
time = 0.11266207695007
Output for 5.5.31
time = 0.10759091377258
Output for 5.5.30
time = 0.082779169082642
Output for 5.5.29
time = 0.10608983039856
Output for 5.5.28
time = 0.11348009109497
Output for 5.5.27
time = 0.083960056304932
Output for 5.5.26
time = 0.10953712463379
Output for 5.5.25
time = 0.11380314826965
Output for 5.5.24
time = 0.072103977203369
Output for 5.4.45
time = 0.10655403137207
Output for 5.4.44
time = 0.099998950958252
Output for 5.4.43
time = 0.10629487037659
Output for 5.4.42
time = 0.098962068557739
Output for 5.4.41
time = 0.082917928695679
Output for 5.4.40
time = 0.097518920898438
Output for 5.4.39
time = 0.082794904708862
Output for 5.4.38
time = 0.079378128051758
Output for 5.4.37
time = 0.079434871673584
Output for 5.4.36
time = 0.081617116928101
Output for 5.4.35
time = 0.10947704315186
Output for 5.4.34
time = 0.082699060440063
Output for 5.4.32
time = 0.081480026245117
Output for 5.4.31
time = 0.10270380973816
Output for 5.4.30
time = 0.09459400177002
Output for 5.4.29
time = 0.10577702522278
Output for 5.4.28
time = 0.11686301231384
Output for 5.4.27
time = 0.10473203659058
Output for 5.4.26
time = 0.10706996917725
Output for 5.4.25
time = 0.10419988632202
Output for 5.4.24
time = 0.10995602607727
Output for 5.4.23
time = 0.10865187644958
Output for 5.4.22
time = 0.097739934921265
Output for 5.4.21
time = 0.12264513969421
Output for 5.4.20
time = 0.097210168838501
Output for 5.4.19
time = 0.095293045043945
Output for 5.4.18
time = 0.10176920890808
Output for 5.4.17
time = 0.083672046661377
Output for 5.4.16
time = 0.1069929599762
Output for 5.4.15
time = 0.082929134368896
Output for 5.4.14
time = 0.096344947814941
Output for 5.4.13
time = 0.11276912689209
Output for 5.4.12
time = 0.10911202430725
Output for 5.4.11
time = 0.087670803070068
Output for 5.4.10
time = 0.092310190200806
Output for 5.4.9
time = 0.10940313339233
Output for 5.4.8
time = 0.090595006942749
Output for 5.4.7
time = 0.099032163619995
Output for 5.4.6
time = 0.088494062423706
Output for 5.4.5
time = 0.10067915916443
Output for 5.4.4
time = 0.10049510002136
Output for 5.4.3
time = 0.085723161697388
Output for 5.4.2
time = 0.083493947982788
Output for 5.4.1
time = 0.1053991317749
Output for 5.4.0
time = 0.10175895690918
Output for 5.3.29
time = 0.087666988372803
Output for 5.3.28
time = 0.12347888946533
Output for 5.3.27
time = 0.098630905151367
Output for 5.3.26
time = 0.10260581970215
Output for 5.3.25
time = 0.11319184303284
Output for 5.3.24
time = 0.10032296180725
Output for 5.3.23
time = 0.10212016105652
Output for 5.3.22
time = 0.096619129180908
Output for 5.3.21
time = 0.10593199729919
Output for 5.3.20
time = 0.11705589294434
Output for 5.3.19
time = 0.11595582962036
Output for 5.3.18
time = 0.11971998214722
Output for 5.3.17
time = 0.11474704742432
Output for 5.3.16
time = 0.10776305198669
Output for 5.3.15
time = 0.13373303413391
Output for 5.3.14
time = 0.11786794662476
Output for 5.3.13
time = 0.09850287437439
Output for 5.3.12
time = 0.094072818756104
Output for 5.3.11
time = 0.10651588439941
Output for 5.3.10
time = 0.10808205604553
Output for 5.3.9
time = 0.10442900657654
Output for 5.3.8
time = 0.093930006027222
Output for 5.3.7
time = 0.097761869430542
Output for 5.3.6
time = 0.11996698379517
Output for 5.3.5
time = 0.09181022644043
Output for 5.3.4
time = 0.1281840801239
Output for 5.3.3
time = 0.11038303375244
Output for 5.3.2
time = 0.10748505592346
Output for 5.3.1
time = 0.11925911903381
Output for 5.3.0
time = 0.10870099067688
Output for 5.2.17
time = 0.11719107627869
Output for 5.2.16
time = 0.11814403533936
Output for 5.2.15
time = 0.13862204551697
Output for 5.2.14
time = 0.15184187889099
Output for 5.2.13
time = 0.12634897232056
Output for 5.2.12
time = 0.14894199371338
Output for 5.2.11
time = 0.14036703109741
Output for 5.2.10
time = 0.13900303840637
Output for 5.2.9
time = 0.12854385375977
Output for 5.2.8
time = 0.131756067276
Output for 5.2.7
time = 0.13484692573547
Output for 5.2.6
time = 0.1541428565979
Output for 5.2.5
time = 0.14575219154358
Output for 5.2.4
time = 0.13240218162537
Output for 5.2.3
time = 0.16018915176392
Output for 5.2.2
time = 0.15761303901672
Output for 5.2.1
time = 0.13896894454956
Output for 5.2.0
time = 0.13897395133972
Output for 5.1.6
time = 0.16235995292664
Output for 5.1.5
time = 0.14496803283691
Output for 5.1.4
time = 0.16004300117493
Output for 5.1.3
time = 0.13509392738342
Output for 5.1.2
time = 0.16173911094666
Output for 5.1.1
time = 0.1608669757843
Output for 5.1.0
time = 0.12748408317566
Output for 5.0.5
time = 0.27216196060181
Output for 5.0.4
time = 0.28660011291504
Output for 5.0.3
time = 0.24958205223083
Output for 5.0.2
time = 0.29503989219666
Output for 5.0.1
time = 0.25858116149902
Output for 5.0.0
time = 0.28838205337524
Output for 4.4.9
time = 0.292574
Output for 4.4.8
time = -0.70437
Output for 4.4.7
time = 0.35447
Output for 4.4.6
time = -0.714149
Output for 4.4.5
time = 0.257506
Output for 4.4.4
time = 0.266581
Output for 4.4.3
time = 0.290972
Output for 4.4.2
time = 0.256885
Output for 4.4.1
time = 0.297876
Output for 4.4.0
time = 0.289272
Output for 4.3.11
time = 0.29449
Output for 4.3.10
time = 0.357704
Output for 4.3.9
time = 0.28264
Output for 4.3.8
time = 0.288493
Output for 4.3.7
time = -0.70622
Output for 4.3.6
time = 0.291002
Output for 4.3.5
time = 0.25149
Output for 4.3.4
time = 0.265349
Output for 4.3.3
time = 0.306391
Output for 4.3.2
time = -0.730061
Output for 4.3.1
time = 0.241177
Output for 4.3.0
time = 0.280607