3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = print_r('foo'); switch ($x) { case 0: echo 'buyaka'; break; case NULL: echo 'null'; break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
filename:       /in/siPp4
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'print_r'
          1        SEND_VAL                                                 'foo'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    7     4        IS_EQUAL                                                 !0, 0
          5      > JMPNZ                                                    ~3, ->9
    5     6    >   IS_EQUAL                                                 !0, null
          7      > JMPNZ                                                    ~3, ->11
          8    > > JMP                                                      ->13
    7     9    >   ECHO                                                     'buyaka'
         10      > JMP                                                      ->13
    8    11    >   ECHO                                                     'null'
         12      > JMP                                                      ->13
    9    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.02 ms | 1394 KiB | 15 Q