3v4l.org

run code in 500+ PHP versions simultaneously
<?php version_compare(PHP_VERSION, "7.0", ">=") || die(); class tArray { public static function example() { echo "tArray\n"; return 2; } } var_dump(1/array(t.array(),example)());
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I5RIC
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'version_compare'
          1        SEND_VAL                                                     '8.5.0'
          2        SEND_VAL                                                     '7.0'
          3        SEND_VAL                                                     '%3E%3D'
          4        DO_ICALL                                             $0      
          5      > JMPNZ_EX                                             ~1      $0, ->9
          6    > > INIT_FCALL                                                   'exit'
          7*       DO_ICALL                                             $2      
          8*       BOOL                                                 ~1      $2
   11     9    >   INIT_FCALL                                                   'var_dump'
         10        FETCH_CONSTANT                                       ~3      't'
         11        CAST                                              6  ~4      <array>
         12        CONCAT                                               ~5      ~3, ~4
         13        INIT_ARRAY                                           ~6      ~5
         14        FETCH_CONSTANT                                       ~7      'example'
         15        ADD_ARRAY_ELEMENT                                    ~6      ~7
         16        INIT_DYNAMIC_CALL                                            ~6
         17        DO_FCALL                                          0  $8      
         18        DIV                                                  ~9      1, $8
         19        SEND_VAL                                                     ~9
         20        DO_ICALL                                                     
         21      > RETURN                                                       1

Class tArray:
Function example:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I5RIC
function name:  example
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                         'tArray%0A'
          1      > RETURN                                                       2
          2*     > RETURN                                                       null

End of function example

End of class tArray.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
224.45 ms | 2189 KiB | 11 Q