3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { protected $hi = 'protected'; private $test = 'private'; public $public = 'public'; public function test(int $test) { return $test; } } $y = '14'; $x = new X(); var_dump($x->test($y));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9n491
function name:  (null)
number of ops:  11
compiled vars:  !0 = $y, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN                                                   !0, '14'
   14     1        NEW                                              $3      'X'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   15     4        INIT_FCALL                                               'var_dump'
          5        INIT_METHOD_CALL                                         !1, 'test'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $6      
          8        SEND_VAR                                                 $6
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class X:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9n491
function name:  test
number of ops:  3
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1      > RETURN                                                   !0
   10     2*     > RETURN                                                   null

End of function test

End of class X.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.59 ms | 1394 KiB | 15 Q