3v4l.org

run code in 300+ PHP versions simultaneously
<?php $map = array(); foreach (array('null', 'true', 'false') as $name) { foreach (array($name, strtoupper($name), ucfirst($name)) as $alias) { $map[$name] = array(constant($name), eval($name)); } } var_export($map);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 25
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 25
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 23
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 23
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 23
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/XnnUU
function name:  (null)
number of ops:  30
compiled vars:  !0 = $map, !1 = $name, !2 = $alias
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > FE_RESET_R                                       $4      <array>, ->25
          2    > > FE_FETCH_R                                               $4, !1, ->25
    4     3    >   INIT_ARRAY                                       ~5      !1
          4        INIT_FCALL                                               'strtoupper'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $6      
          7        ADD_ARRAY_ELEMENT                                ~5      $6
          8        INIT_FCALL                                               'ucfirst'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        ADD_ARRAY_ELEMENT                                ~5      $7
         12      > FE_RESET_R                                       $8      ~5, ->23
         13    > > FE_FETCH_R                                               $8, !2, ->23
    5    14    >   INIT_FCALL                                               'constant'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $10     
         17        INIT_ARRAY                                       ~11     $10
         18        INCLUDE_OR_EVAL                                  $12     !1, EVAL
         19        ADD_ARRAY_ELEMENT                                ~11     $12
         20        ASSIGN_DIM                                               !0, !1
         21        OP_DATA                                                  ~11
    4    22      > JMP                                                      ->13
         23    >   FE_FREE                                                  $8
    3    24      > JMP                                                      ->2
         25    >   FE_FREE                                                  $4
    8    26        INIT_FCALL                                               'var_export'
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.71 ms | 1014 KiB | 17 Q