3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 0, $t = -microtime(TRUE); $i < 10000; $i++) { $foo = create_function('stdClass $a, $b = 1', ''); } echo $t + microtime(TRUE), PHP_EOL; for ($i = 0, $t = -microtime(TRUE); $i < 10000; $i++) { $foo = NULL; eval('$foo = function (stdClass $a, $b = 1) {};'); } echo $t + microtime(TRUE);
Output for 7.1.0
0.061561822891235 0.050003051757812
Output for 7.0.14
0.05364990234375 0.044070959091187
Output for 7.0.7
0.025616884231567 0.027817964553833
Output for 7.0.6
0.026756048202515 0.025102138519287
Output for 7.0.5
0.03048300743103 0.031409978866577
Output for 7.0.4
0.024782180786133 0.025490999221802
Output for 7.0.3
0.027292013168335 0.026193141937256
Output for 7.0.2
0.024736881256104 0.025370836257935
Output for 7.0.1
0.025651931762695 0.02597188949585
Output for 7.0.0
0.02622389793396 0.02497386932373
Output for 5.6.28
0.076251983642578 0.053239822387695
Output for 5.6.22
0.039034128189087 0.031769037246704
Output for 5.6.21
0.040228128433228 0.03099513053894
Output for 5.6.20
0.036653995513916 0.029070854187012
Output for 5.6.19
0.035804033279419 0.028584003448486
Output for 5.6.18
0.041944026947021 0.029234886169434
Output for 5.6.17
0.043760061264038 0.031714200973511
Output for 5.6.16
0.030964851379395 0.024043083190918
Output for 5.6.15
0.03187108039856 0.024350166320801
Output for 5.6.14
0.031409978866577 0.023921012878418
Output for 5.6.13
0.02973484992981 0.023903131484985
Output for 5.6.12
0.047322034835815 0.028955936431885
Output for 5.6.11
0.040143013000488 0.029617071151733
Output for 5.6.10
0.046361923217773 0.032018899917603
Output for 5.6.9
0.037348031997681 0.028878927230835
Output for 5.6.8
0.033289909362793 0.025451898574829
Output for 5.6.7
0.033185005187988 0.023773908615112
Output for 5.6.6
0.030833005905151 0.024034976959229
Output for 5.6.5
0.036547899246216 0.024206876754761
Output for 5.6.4
0.034677982330322 0.036411046981812
Output for 5.6.3
0.03059196472168 0.024332046508789
Output for 5.6.2
0.05252480506897 0.025782108306885
Output for 5.6.1
0.037664890289307 0.027296781539917
Output for 5.6.0
0.031533002853394 0.025407075881958
Output for 5.5.36
0.046023845672607 0.034076929092407
Output for 5.5.35
0.03806209564209 0.03239893913269
Output for 5.5.34
0.035382986068726 0.029397964477539
Output for 5.5.33
0.035497903823853 0.031245946884155
Output for 5.5.32
0.05069899559021 0.029173135757446
Output for 5.5.31
0.046257972717285 0.033192157745361
Output for 5.5.30
0.028985977172852 0.024734973907471
Output for 5.5.29
0.029469966888428 0.025380849838257
Output for 5.5.28
0.035784959793091 0.026767015457153
Output for 5.5.27
0.041913986206055 0.031194925308228
Output for 5.5.26
0.044724941253662 0.03019905090332
Output for 5.5.25
0.039774179458618 0.0313560962677
Output for 5.5.24
0.030741930007935 0.026564121246338
Output for 5.5.23
0.056848049163818 0.028872966766357
Output for 5.5.22
0.032272100448608 0.02605414390564
Output for 5.5.21
0.034008026123047 0.030042171478271
Output for 5.5.20
0.031605005264282 0.025735855102539
Output for 5.5.19
0.037406921386719 0.02449107170105
Output for 5.5.18
0.03133487701416 0.024840116500854
Output for 5.5.16
0.033895015716553 0.0294349193573
Output for 5.5.15
0.029520988464355 0.024657011032104
Output for 5.5.14
0.059223175048828 0.034204006195068
Output for 5.5.13
0.030514001846313 0.025410175323486
Output for 5.5.12
0.03576397895813 0.035420894622803
Output for 5.5.11
0.045094966888428 0.025960206985474
Output for 5.5.10
0.032275915145874 0.026826858520508
Output for 5.5.9
0.031249046325684 0.028001070022583
Output for 5.5.8
0.050374031066895 0.033789157867432
Output for 5.5.7
0.04463791847229 0.024855852127075
Output for 5.5.6
0.029965877532959 0.025212049484253
Output for 5.5.5
0.033413887023926 0.024784088134766
Output for 5.5.4
0.032088041305542 0.025557041168213
Output for 5.5.3
0.046030044555664 0.027878046035767
Output for 5.5.2
0.029825925827026 0.025960922241211
Output for 5.5.1
0.039898872375488 0.024703979492188
Output for 5.5.0
0.057119131088257 0.037749052047729
Output for 5.4.45
0.030958890914917 0.022891044616699
Output for 5.4.44
0.048601865768433 0.032665967941284
Output for 5.4.43
0.037501096725464 0.028681039810181
Output for 5.4.42
0.049453020095825 0.033104181289673
Output for 5.4.41
0.043411016464233 0.031338930130005
Output for 5.4.40
0.034584045410156 0.026932001113892
Output for 5.4.39
0.037777900695801 0.024953126907349
Output for 5.4.38
0.049806118011475 0.023799180984497
Output for 5.4.37
0.030972957611084 0.024363040924072
Output for 5.4.36
0.039001941680908 0.026645183563232
Output for 5.4.35
0.046392917633057 0.023772001266479
Output for 5.4.34
0.029365062713623 0.024242877960205
Output for 5.4.32
0.037917852401733 0.023865938186646
Output for 5.4.31
0.042742013931274 0.024292945861816
Output for 5.4.30
0.044500112533569 0.024413824081421
Output for 5.4.29
0.044112205505371 0.025777101516724
Output for 5.4.28
0.051656007766724 0.043883085250854
Output for 5.4.27
0.051981925964355 0.033116102218628
Output for 5.4.26
0.040827989578247 0.028668880462646
Output for 5.4.25
0.037530899047852 0.02661395072937
Output for 5.4.24
0.050973892211914 0.042210102081299
Output for 5.4.23
0.02994704246521 0.024883985519409
Output for 5.4.22
0.037543058395386 0.024271011352539
Output for 5.4.21
0.038488864898682 0.023888826370239
Output for 5.4.20
0.035751104354858 0.025704860687256
Output for 5.4.19
0.051460981369019 0.027274131774902
Output for 5.4.18
0.054242134094238 0.045387983322144
Output for 5.4.17
0.036156177520752 0.024450063705444
Output for 5.4.16
0.030791997909546 0.025367021560669
Output for 5.4.15
0.029109954833984 0.023398876190186
Output for 5.4.14
0.066038131713867 0.045464992523193
Output for 5.4.13
0.054040908813477 0.045101881027222
Output for 5.4.12
0.031325101852417 0.025142908096313
Output for 5.4.11
0.040754079818726 0.023665904998779
Output for 5.4.10
0.055233001708984 0.035218000411987
Output for 5.4.9
0.045838832855225 0.023561954498291
Output for 5.4.8
0.029271125793457 0.029443025588989
Output for 5.4.7
0.040971040725708 0.02405309677124
Output for 5.4.6
0.043833017349243 0.032289028167725
Output for 5.4.5
0.032122850418091 0.026185989379883
Output for 5.4.4
0.030780076980591 0.024543046951294
Output for 5.4.3
0.054091930389404 0.024079084396362
Output for 5.4.2
0.046916007995605 0.022619962692261
Output for 5.4.1
0.038016080856323 0.023946046829224
Output for 5.4.0
0.030236005783081 0.023010969161987
Output for 5.3.29
0.031991004943848 0.023643970489502
Output for 5.3.28
0.033251047134399 0.023003816604614
Output for 5.3.27
0.045849084854126 0.021908044815063
Output for 5.3.26
0.034931898117065 0.022918939590454
Output for 5.3.25
0.031286001205444 0.022129058837891
Output for 5.3.24
0.028702020645142 0.021931171417236
Output for 5.3.23
0.031468868255615 0.022361040115356
Output for 5.3.22
0.035086154937744 0.023019075393677
Output for 5.3.21
0.029397964477539 0.022113084793091
Output for 5.3.20
0.042636871337891 0.026600122451782
Output for 5.3.19
0.031930923461914 0.036671876907349
Output for 5.3.18
0.036881923675537 0.02213716506958
Output for 5.3.17
0.034331083297729 0.025424957275391
Output for 5.3.16
0.052331924438477 0.030004024505615
Output for 5.3.15
0.03003191947937 0.022012948989868
Output for 5.3.14
0.034311056137085 0.025630950927734
Output for 5.3.13
0.048898935317993 0.023110151290894
Output for 5.3.12
0.030594110488892 0.02221417427063
Output for 5.3.11
0.029132127761841 0.022311925888062
Output for 5.3.10
0.049146890640259 0.023116111755371
Output for 5.3.9
0.029916048049927 0.02332592010498
Output for 5.3.8
0.036515951156616 0.023175001144409
Output for 5.3.7
0.030143976211548 0.023202896118164
Output for 5.3.6
0.035848140716553 0.024116992950439
Output for 5.3.5
0.052663087844849 0.024178028106689
Output for 5.3.4
0.047327041625977 0.025938034057617
Output for 5.3.3
0.047456979751587 0.030010938644409
Output for 5.3.2
0.035465002059937 0.027673959732056
Output for 5.3.1
0.034440040588379 0.023971080780029
Output for 5.3.0
0.038731813430786 0.02454400062561