3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0, $t = -microtime(TRUE); $i < 10000; $i++) { $foo = NULL; eval('$foo = function (stdClass $a, $b = 1) {};'); } echo $t + microtime(TRUE);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
Branch analysis from position: 7
filename:       /in/aKfY2
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i, !1 = $t, !2 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $4      
          4        MUL                                              ~5      $4, -1
          5        ASSIGN                                                   !1, ~5
          6      > JMP                                                      ->10
    4     7    >   ASSIGN                                                   !2, null
    5     8        INCLUDE_OR_EVAL                                          '%24foo+%3D+function+%28stdClass+%24a%2C+%24b+%3D+1%29+%7B%7D%3B', EVAL
    3     9        PRE_INC                                                  !0
         10    >   IS_SMALLER                                               !0, 10000
         11      > JMPNZ                                                    ~10, ->7
    7    12    >   INIT_FCALL                                               'microtime'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $11     
         15        ADD                                              ~12     !1, $11
         16        ECHO                                                     ~12
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.45 ms | 1395 KiB | 15 Q