3v4l.org

run code in 300+ PHP versions simultaneously
<?php function whatever(string $string){ echo $string;} $y = true; $x = $y ? 'oops my bad i broke it' : null; is_null($x) ? null : whatever($x);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
Branch analysis from position: 10
filename:       /in/WTYE9
function name:  (null)
number of ops:  16
compiled vars:  !0 = $y, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <true>
    6     1      > JMPZ                                                     !0, ->4
          2    >   QM_ASSIGN                                        ~3      'oops+my+bad+i+broke+it'
          3      > JMP                                                      ->5
          4    >   QM_ASSIGN                                        ~3      null
          5    >   ASSIGN                                                   !1, ~3
    8     6        TYPE_CHECK                                    2          !1
          7      > JMPZ                                                     ~5, ->10
          8    >   QM_ASSIGN                                        ~6      null
          9      > JMP                                                      ->14
         10    >   INIT_FCALL                                               'whatever'
         11        SEND_VAR                                                 !1
         12        DO_FCALL                                      0  $7      
         13        QM_ASSIGN                                        ~6      $7
         14    >   FREE                                                     ~6
         15      > RETURN                                                   1

Function whatever:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WTYE9
function name:  whatever
number of ops:  3
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        ECHO                                                     !0
          2      > RETURN                                                   null

End of function whatever

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.19 ms | 1398 KiB | 14 Q