3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); var_dump([ 0 == false, '0' == true, 'false' == true ]); echo PHP_EOL, str_repeat('#', 80), PHP_EOL; var_dump([ 0 === false, '0' === true, 'false' === true ]); echo PHP_EOL, str_repeat('#', 80), PHP_EOL; function foo(string $bar) { var_dump($bar); } foo(false);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SJKe1
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'var_dump'
    5     1        SEND_VAL                                                     <array>
    4     2        DO_ICALL                                                     
   10     3        ECHO                                                         '%0A'
          4        INIT_FCALL                                                   'str_repeat'
          5        SEND_VAL                                                     '%23'
          6        SEND_VAL                                                     80
          7        DO_ICALL                                             $1      
          8        ECHO                                                         $1
          9        ECHO                                                         '%0A'
   12    10        INIT_FCALL                                                   'var_dump'
   13    11        SEND_VAL                                                     <array>
   12    12        DO_ICALL                                                     
   18    13        ECHO                                                         '%0A'
         14        INIT_FCALL                                                   'str_repeat'
         15        SEND_VAL                                                     '%23'
         16        SEND_VAL                                                     80
         17        DO_ICALL                                             $3      
         18        ECHO                                                         $3
         19        ECHO                                                         '%0A'
   24    20        INIT_FCALL                                                   'foo'
         21        SEND_VAL                                                     <false>
         22        DO_FCALL                                          0          
         23      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SJKe1
function name:  foo
number of ops:  5
compiled vars:  !0 = $bar
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   20     0  E >   RECV                                                 !0      
   21     1        INIT_FCALL                                                   'var_dump'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                                     
   22     4      > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
126.75 ms | 482 KiB | 10 Q