3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function foo(int $a) { var_dump($a); } foo(123); foo('123'); foo(123.5); foo("123.5"); foo("132abc"); foo("apple");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WeSCc
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'foo'
          1        SEND_VAL                                                 123
          2        DO_FCALL                                      0          
    9     3        INIT_FCALL                                               'foo'
          4        SEND_VAL                                                 '123'
          5        DO_FCALL                                      0          
   10     6        INIT_FCALL                                               'foo'
          7        SEND_VAL                                                 123.5
          8        DO_FCALL                                      0          
   11     9        INIT_FCALL                                               'foo'
         10        SEND_VAL                                                 '123.5'
         11        DO_FCALL                                      0          
   12    12        INIT_FCALL                                               'foo'
         13        SEND_VAL                                                 '132abc'
         14        DO_FCALL                                      0          
   13    15        INIT_FCALL                                               'foo'
         16        SEND_VAL                                                 'apple'
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.17 ms | 1398 KiB | 21 Q