3v4l.org

run code in 300+ PHP versions simultaneously
<?php class abc { function abc() { $this->abc = 'Hello'; } function bcd() { $bcd = ' World'; return $this->abc . $bcd; } } $abc = new abc(); echo $abc->bcd(); $bcd = range( 1, 100 ); foreach( $bcd as $def ) { $efg = serialize( $bcd ) . $def; } system( 'ls' );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/rBXNF
function name:  (null)
number of ops:  24
compiled vars:  !0 = $abc, !1 = $bcd, !2 = $def, !3 = $efg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $4      'abc'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
   15     3        INIT_METHOD_CALL                                         !0, 'bcd'
          4        DO_FCALL                                      0  $7      
          5        ECHO                                                     $7
   17     6        INIT_FCALL                                               'range'
          7        SEND_VAL                                                 1
          8        SEND_VAL                                                 100
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !1, $8
   19    11      > FE_RESET_R                                       $10     !1, ->19
         12    > > FE_FETCH_R                                               $10, !2, ->19
   20    13    >   INIT_FCALL                                               'serialize'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $11     
         16        CONCAT                                           ~12     $11, !2
         17        ASSIGN                                                   !3, ~12
   19    18      > JMP                                                      ->12
         19    >   FE_FREE                                                  $10
   23    20        INIT_FCALL                                               'system'
         21        SEND_VAL                                                 'ls'
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Class abc:
Function abc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rBXNF
function name:  abc
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN_OBJ                                               'abc'
          1        OP_DATA                                                  'Hello'
    5     2      > RETURN                                                   null

End of function abc

Function bcd:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rBXNF
function name:  bcd
number of ops:  5
compiled vars:  !0 = $bcd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, '+World'
    9     1        FETCH_OBJ_R                                      ~2      'abc'
          2        CONCAT                                           ~3      ~2, !0
          3      > RETURN                                                   ~3
   10     4*     > RETURN                                                   null

End of function bcd

End of class abc.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.17 ms | 1400 KiB | 19 Q