3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array ( 4 , 1 , $a , 1 , 1.500000 , 7 , false , 'x' , 'x' , 500 ) ; foreach ( $a as $b ) str_replace ( $GLOBALS , $a , $a ) ;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 20
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/2vhhJ
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_ARRAY                                       ~2      4
          1        ADD_ARRAY_ELEMENT                                ~2      1
          2        ADD_ARRAY_ELEMENT                                ~2      !0
          3        ADD_ARRAY_ELEMENT                                ~2      1
          4        ADD_ARRAY_ELEMENT                                ~2      1.5
          5        ADD_ARRAY_ELEMENT                                ~2      7
          6        ADD_ARRAY_ELEMENT                                ~2      <false>
          7        ADD_ARRAY_ELEMENT                                ~2      'x'
          8        ADD_ARRAY_ELEMENT                                ~2      'x'
          9        ADD_ARRAY_ELEMENT                                ~2      500
         10        ASSIGN                                                   !0, ~2
    3    11      > FE_RESET_R                                       $4      !0, ->20
         12    > > FE_FETCH_R                                               $4, !1, ->20
         13    >   INIT_FCALL                                               'str_replace'
         14        FETCH_R                      global              ~5      'GLOBALS'
         15        SEND_VAL                                                 ~5
         16        SEND_VAR                                                 !0
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > JMP                                                      ->12
         20    >   FE_FREE                                                  $4
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.77 ms | 1395 KiB | 15 Q