3v4l.org

run code in 300+ PHP versions simultaneously
<?php function VS($x, $y) { var_dump($x === $y); if ($x !== $y) { echo "Failed: $y\n"; echo "Got: $x\n"; var_dump(debug_backtrace()); } } function VERIFY($x) { VS($x != false, true); } ////////////////////////////////////////////////////////////////////// VERIFY(is_object(new stdclass));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2RYY8
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'verify'
          1        NEW                                              $0      'stdclass'
          2        DO_FCALL                                      0          
          3        TYPE_CHECK                                  256  ~2      $0
          4        SEND_VAL                                                 ~2
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function vs:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 21
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/2RYY8
function name:  VS
number of ops:  22
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'var_dump'
          3        IS_IDENTICAL                                     ~2      !0, !1
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    5     6        IS_NOT_IDENTICAL                                         !0, !1
          7      > JMPZ                                                     ~4, ->21
          8    >   ROPE_INIT                                     3  ~6      'Failed%3A+'
          9        ROPE_ADD                                      1  ~6      ~6, !1
         10        ROPE_END                                      2  ~5      ~6, '%0A'
         11        ECHO                                                     ~5
         12        ROPE_INIT                                     3  ~9      'Got%3A+'
         13        ROPE_ADD                                      1  ~9      ~9, !0
         14        ROPE_END                                      2  ~8      ~9, '%0A'
         15        ECHO                                                     ~8
    6    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'debug_backtrace'
         18        DO_ICALL                                         $11     
         19        SEND_VAR                                                 $11
         20        DO_ICALL                                                 
    7    21    > > RETURN                                                   null

End of function vs

Function verify:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2RYY8
function name:  VERIFY
number of ops:  7
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'vs'
          2        BOOL                                             ~1      !0
          3        SEND_VAL                                                 ~1
          4        SEND_VAL                                                 <true>
          5        DO_FCALL                                      0          
          6      > RETURN                                                   null

End of function verify

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.56 ms | 1394 KiB | 19 Q