3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Order { } function printOrder(Order $order) { echo 'OK'; } $order = null; printOrder($order); $order = new Order; printOrder($order);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GJsKV
function name:  (null)
number of ops:  11
compiled vars:  !0 = $order
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, null
   10     1        INIT_FCALL                                               'printorder'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
   11     4        NEW                                              $3      'Order'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
   12     7        INIT_FCALL                                               'printorder'
          8        SEND_VAR                                                 !0
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function printorder:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GJsKV
function name:  printOrder
number of ops:  3
compiled vars:  !0 = $order
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ECHO                                                     'OK'
    7     2      > RETURN                                                   null

End of function printorder

Class Order: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.05 ms | 1397 KiB | 15 Q