3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Inicio da string: <?php echo "Hello World!"; ?> Obrigado!'; $splitedString = token_get_all( code: $string, ); print_r($splitedString); $sanizedArray = [ [ 'string' => 'Inicio da string:', 'type' => 'text', ], [ 'string' => '<?php echo "Hello World!"; ?>', 'type' => 'code', ], [ 'string' => 'Obrigado!', 'type' => 'text', ], ];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bmJNr
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string, !1 = $splitedString, !2 = $sanizedArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Inicio+da+string%3A+%3C%3Fphp+echo+%22Hello+World%21%22%3B+%3F%3E+Obrigado%21'
    5     1        INIT_FCALL                                               'token_get_all'
    6     2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
    5     4        ASSIGN                                                   !1, $4
    9     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
   12     8        ASSIGN                                                   !2, <array>
   25     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.85 ms | 1394 KiB | 17 Q