3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0, $t = -microtime(TRUE); $i < 10000; $i++) { $foo = NULL; $foo = create_function('stdClass $a, $b = 1', ''); } echo $t + microtime(TRUE);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 7
Branch analysis from position: 16
Branch analysis from position: 7
filename:       /in/52HIS
function name:  (null)
number of ops:  22
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                                                      ->14
    4     7    >   ASSIGN                                                   !2, null
    5     8        INIT_FCALL_BY_NAME                                       'create_function'
          9        SEND_VAL_EX                                              'stdClass+%24a%2C+%24b+%3D+1'
         10        SEND_VAL_EX                                              ''
         11        DO_FCALL                                      0  $8      
         12        ASSIGN                                                   !2, $8
    3    13        PRE_INC                                                  !0
         14    >   IS_SMALLER                                               !0, 10000
         15      > JMPNZ                                                    ~11, ->7
    7    16    >   INIT_FCALL                                               'microtime'
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $12     
         19        ADD                                              ~13     !1, $12
         20        ECHO                                                     ~13
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.72 ms | 1395 KiB | 15 Q