3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass{ } $a= new MyClass(); $b = new MyClass(); $array[]=$a; $arrya[] =$b; var_dump($array[0] instanceof MyClass );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M0j9Z
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b, !2 = $array, !3 = $arrya
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $4      'MyClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    8     3        NEW                                              $7      'MyClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $7
   10     6        ASSIGN_DIM                                               !2
          7        OP_DATA                                                  !0
   11     8        ASSIGN_DIM                                               !3
          9        OP_DATA                                                  !1
   12    10        INIT_FCALL                                               'var_dump'
         11        FETCH_DIM_R                                      ~12     !2, 0
         12        INSTANCEOF                                       ~13     ~12, 'MyClass'
         13        SEND_VAL                                                 ~13
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Class MyClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.86 ms | 1398 KiB | 15 Q