3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); if(PHP_MAJOR_VERSION < 7 or PHP_MINOR_VERSION < 1) die(); function testParam(?string $arg){ var_dump($arg); } testParam(null); testParam("hi"); testParam();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 2
Branch analysis from position: 1
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KoUGq
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > JMPZ                                                     <true>, ->2
          1    > > EXIT                                                     
   11     2    >   INIT_FCALL                                               'testparam'
          3        SEND_VAL                                                 null
          4        DO_FCALL                                      0          
   12     5        INIT_FCALL                                               'testparam'
          6        SEND_VAL                                                 'hi'
          7        DO_FCALL                                      0          
   13     8        INIT_FCALL                                               'testparam'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

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

End of function testparam

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.58 ms | 1397 KiB | 18 Q