3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo str_repeat("test\n",20); if(phpversion()[0] == 5){ echo 'blah'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/qmg48
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'str_repeat'
          1        SEND_VAL                                                 'test%0A'
          2        SEND_VAL                                                 20
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    4     5        INIT_FCALL                                               'phpversion'
          6        DO_ICALL                                         $1      
          7        FETCH_DIM_R                                      ~2      $1, 0
          8        IS_EQUAL                                                 ~2, 5
          9      > JMPZ                                                     ~3, ->11
    5    10    >   ECHO                                                     'blah'
    6    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.86 ms | 1444 KiB | 15 Q