3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 1; } $o = new Foo(); $s = '1'; $b = true; $i = 1; $f = 1.0; var_dump($o == $s); var_dump($o == $b); var_dump($o == $i); var_dump($o == $f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8esOY
function name:  (null)
number of ops:  24
compiled vars:  !0 = $o, !1 = $s, !2 = $b, !3 = $i, !4 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $5      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $5
    9     3        ASSIGN                                                   !1, '1'
   10     4        ASSIGN                                                   !2, <true>
   11     5        ASSIGN                                                   !3, 1
   12     6        ASSIGN                                                   !4, 1
   14     7        INIT_FCALL                                               'var_dump'
          8        IS_EQUAL                                         ~12     !0, !1
          9        SEND_VAL                                                 ~12
         10        DO_ICALL                                                 
   15    11        INIT_FCALL                                               'var_dump'
         12        IS_EQUAL                                         ~14     !0, !2
         13        SEND_VAL                                                 ~14
         14        DO_ICALL                                                 
   16    15        INIT_FCALL                                               'var_dump'
         16        IS_EQUAL                                         ~16     !0, !3
         17        SEND_VAL                                                 ~16
         18        DO_ICALL                                                 
   17    19        INIT_FCALL                                               'var_dump'
         20        IS_EQUAL                                         ~18     !0, !4
         21        SEND_VAL                                                 ~18
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
253.81 ms | 1009 KiB | 14 Q