3v4l.org

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

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.16 ms | 1389 KiB | 21 Q