3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach(["Hello World!",'','0',1,0,0.0,[],[1,2,3],true,false]as$e) echo var_export($e,1).' : '.var_export((bool)$e,1).'<br>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 16
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/TC5rL
function name:  (null)
number of ops:  18
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E > > FE_RESET_R                                       $1      <array>, ->16
          1    > > FE_FETCH_R                                               $1, !0, ->16
          2    >   INIT_FCALL                                               'var_export'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $2      
          6        CONCAT                                           ~3      $2, '+%3A+'
          7        INIT_FCALL                                               'var_export'
          8        BOOL                                             ~4      !0
          9        SEND_VAL                                                 ~4
         10        SEND_VAL                                                 1
         11        DO_ICALL                                         $5      
         12        CONCAT                                           ~6      ~3, $5
         13        CONCAT                                           ~7      ~6, '%3Cbr%3E'
         14        ECHO                                                     ~7
         15      > JMP                                                      ->1
         16    >   FE_FREE                                                  $1
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
256.17 ms | 1395 KiB | 15 Q