3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timeStart = microtime(true); foreach (range(1, 10000) as $i) { eval('function func'.$i.'() { return func'.($i-1).'(); };'); } $timeEnd = microtime(true); $executionTime = ($timeEnd - $timeStart) / 60; var_dump($execution);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/aPueA
function name:  (null)
number of ops:  29
compiled vars:  !0 = $timeStart, !1 = $i, !2 = $timeEnd, !3 = $executionTime, !4 = $execution
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    3     4        INIT_FCALL                                               'range'
          5        SEND_VAL                                                 1
          6        SEND_VAL                                                 10000
          7        DO_ICALL                                         $7      
          8      > FE_RESET_R                                       $8      $7, ->17
          9    > > FE_FETCH_R                                               $8, !1, ->17
    4    10    >   CONCAT                                           ~9      'function+func', !1
         11        CONCAT                                           ~10     ~9, '%28%29+%7B+return+func'
         12        SUB                                              ~11     !1, 1
         13        CONCAT                                           ~12     ~10, ~11
         14        CONCAT                                           ~13     ~12, '%28%29%3B+%7D%3B'
         15        INCLUDE_OR_EVAL                                          ~13, EVAL
    3    16      > JMP                                                      ->9
         17    >   FE_FREE                                                  $8
    6    18        INIT_FCALL                                               'microtime'
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $15     
         21        ASSIGN                                                   !2, $15
    7    22        SUB                                              ~17     !2, !0
         23        DIV                                              ~18     ~17, 60
         24        ASSIGN                                                   !3, ~18
    8    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !4
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.3 ms | 1401 KiB | 19 Q