3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ public function __construct(){ echo "A::__construct()\n"; } public function somePrint(){ echo "fuck off!"; } public function someCycle($n=100){ $s=''; $arr=array(); $num=0; for($i=0;$i<$n;$i++){ $s.=$i; $num+=$i; array_push($arr, $i); } } } $a = new A(); $a->somePrint();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qjm6t
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   23     3        INIT_METHOD_CALL                                         !0, 'somePrint'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qjm6t
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'A%3A%3A__construct%28%29%0A'
    6     1      > RETURN                                                   null

End of function __construct

Function someprint:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qjm6t
function name:  somePrint
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'fuck+off%21'
    9     1      > RETURN                                                   null

End of function someprint

Function somecycle:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 6
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 6
Branch analysis from position: 15
Branch analysis from position: 6
filename:       /in/qjm6t
function name:  someCycle
number of ops:  16
compiled vars:  !0 = $n, !1 = $s, !2 = $arr, !3 = $num, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV_INIT                                        !0      100
   11     1        ASSIGN                                                   !1, ''
   12     2        ASSIGN                                                   !2, <array>
   13     3        ASSIGN                                                   !3, 0
   14     4        ASSIGN                                                   !4, 0
          5      > JMP                                                      ->13
   15     6    >   ASSIGN_OP                                     8          !1, !4
   16     7        ASSIGN_OP                                     1          !3, !4
   17     8        INIT_FCALL                                               'array_push'
          9        SEND_REF                                                 !2
         10        SEND_VAR                                                 !4
         11        DO_ICALL                                                 
   14    12        PRE_INC                                                  !4
         13    >   IS_SMALLER                                               !4, !0
         14      > JMPNZ                                                    ~13, ->6
   19    15    > > RETURN                                                   null

End of function somecycle

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.53 ms | 1400 KiB | 15 Q