3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { } $x = new X; function a($a) { $a = (string) $a; $b = $a[0]; } a($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IJ32B
function name:  (null)
number of ops:  7
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $1      'X'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        INIT_FCALL                                               'a'
          4        SEND_VAR                                                 !0
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IJ32B
function name:  a
number of ops:  6
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        CAST                                          6  ~2      !0
          2        ASSIGN                                                   !0, ~2
   10     3        FETCH_DIM_R                                      ~4      !0, 0
          4        ASSIGN                                                   !1, ~4
   11     5      > RETURN                                                   null

End of function a

Class X: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.38 ms | 1396 KiB | 14 Q