3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(int $bar) { var_dump($bar); } echo "These ones are all ok:".PHP_EOL; foo(7); foo('7'); foo("7345"); echo PHP_EOL."And now for a bad one...".PHP_EOL; foo("sgjhdfkg");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LnQvW
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'These+ones+are+all+ok%3A%0A'
    6     1        INIT_FCALL                                               'foo'
          2        SEND_VAL                                                 7
          3        DO_FCALL                                      0          
    7     4        INIT_FCALL                                               'foo'
          5        SEND_VAL                                                 '7'
          6        DO_FCALL                                      0          
    8     7        INIT_FCALL                                               'foo'
          8        SEND_VAL                                                 '7345'
          9        DO_FCALL                                      0          
   10    10        ECHO                                                     '%0AAnd+now+for+a+bad+one...%0A'
   11    11        INIT_FCALL                                               'foo'
         12        SEND_VAL                                                 'sgjhdfkg'
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.78 ms | 1434 KiB | 18 Q