3v4l.org

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

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

End of function toint

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.53 ms | 1394 KiB | 15 Q