3v4l.org

run code in 300+ 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 = 8
Branch analysis from position: 6
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I5RIC
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'version_compare'
          1        SEND_VAL                                                 '8.0.0'
          2        SEND_VAL                                                 '7.0'
          3        SEND_VAL                                                 '%3E%3D'
          4        DO_ICALL                                         $0      
          5      > JMPNZ_EX                                         ~1      $0, ->8
          6    > > EXIT                                                     
          7*       BOOL                                             ~1      <true>
   11     8    >   INIT_FCALL                                               'var_dump'
          9        FETCH_CONSTANT                                   ~2      't'
         10        CAST                                          6  ~3      <array>
         11        CONCAT                                           ~4      ~2, ~3
         12        INIT_ARRAY                                       ~5      ~4
         13        FETCH_CONSTANT                                   ~6      'example'
         14        ADD_ARRAY_ELEMENT                                ~5      ~6
         15        INIT_DYNAMIC_CALL                                        ~5
         16        DO_FCALL                                      0  $7      
         17        DIV                                              ~8      1, $7
         18        SEND_VAL                                                 ~8
         19        DO_ICALL                                                 
         20      > 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.0.0


preferences:
137.97 ms | 1400 KiB | 17 Q