3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oh_my_sides = 'holy moly im null'; var_dump($oh_my_sides); function foo () { $OH_YEAH = "CANDY"; for( $i = 0; $i < 10; $i++ ) { $OH_YEAH .= $OH_YEAH; } } $oh_my_sides = foo(); var_dump($oh_my_sides);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FrFXQ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $oh_my_sides
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'holy+moly+im+null'
    5     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   16     4        INIT_FCALL                                               'foo'
          5        DO_FCALL                                      0  $3      
          6        ASSIGN                                                   !0, $3
   18     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 3
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 3
Branch analysis from position: 7
Branch analysis from position: 3
filename:       /in/FrFXQ
function name:  foo
number of ops:  8
compiled vars:  !0 = $OH_YEAH, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'CANDY'
   10     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->5
   11     3    >   ASSIGN_OP                                     8          !0, !0
   10     4        PRE_INC                                                  !1
          5    >   IS_SMALLER                                               !1, 10
          6      > JMPNZ                                                    ~6, ->3
   14     7    > > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.3 ms | 1397 KiB | 16 Q