3v4l.org

run code in 300+ PHP versions simultaneously
<?php touch('/tmp/x'); $x = new \SplFileInfo('/tmp/x'); echo (!$x) ? 1 : 0; var_dump($x); $s = boolval($x); echo (!$s) ? 1 : 0;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
Branch analysis from position: 22
filename:       /in/89j7P
function name:  (null)
number of ops:  25
compiled vars:  !0 = $x, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'touch'
          1        SEND_VAL                                                 '%2Ftmp%2Fx'
          2        DO_ICALL                                                 
    4     3        NEW                                              $3      'SplFileInfo'
          4        SEND_VAL_EX                                              '%2Ftmp%2Fx'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
    5     7        BOOL_NOT                                         ~6      !0
          8      > JMPZ                                                     ~6, ->11
          9    >   QM_ASSIGN                                        ~7      1
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~7      0
         12    >   ECHO                                                     ~7
    6    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
    7    16        BOOL                                             ~9      !0
         17        ASSIGN                                                   !1, ~9
    8    18        BOOL_NOT                                         ~11     !1
         19      > JMPZ                                                     ~11, ->22
         20    >   QM_ASSIGN                                        ~12     1
         21      > JMP                                                      ->23
         22    >   QM_ASSIGN                                        ~12     0
         23    >   ECHO                                                     ~12
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.52 ms | 1395 KiB | 17 Q