3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $n; public function doSomething($n=null){ echo "if you can see {$n}then all is good!"; } } $o1 = (new Test($a = 8))->doSomething();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SQbum
function name:  (null)
number of ops:  8
compiled vars:  !0 = $o1, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $2      'Test'
          1        ASSIGN                                           ~3      !1, 8
          2        SEND_VAL_EX                                              ~3
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $2, 'doSomething'
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !0, $5
          7      > RETURN                                                   1

Class Test:
Function dosomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SQbum
function name:  doSomething
number of ops:  6
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV_INIT                                        !0      null
    5     1        ROPE_INIT                                     3  ~2      'if+you+can+see+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, 'then+all+is+good%21'
          4        ECHO                                                     ~1
    6     5      > RETURN                                                   null

End of function dosomething

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.65 ms | 1393 KiB | 13 Q