3v4l.org

run code in 300+ PHP versions simultaneously
<?php class UsersModel { public function get_users() { return array('first', 'second', 'third'); } } //$users_model = new UsersModel; if (!empty((new UsersModel)->get_users())) { echo 'ok'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/vNalp
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $0      'UsersModel'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'get_users'
          3        DO_FCALL                                      0  $2      
          4        BOOL_NOT                                         ~3      $2
          5        BOOL_NOT                                         ~4      ~3
          6      > JMPZ                                                     ~4, ->8
   14     7    >   ECHO                                                     'ok'
   15     8    > > RETURN                                                   1

Class UsersModel:
Function get_users:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vNalp
function name:  get_users
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   <array>
    8     1*     > RETURN                                                   null

End of function get_users

End of class UsersModel.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.08 ms | 1384 KiB | 13 Q