3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str= 'To do list: - Buy milk - Feed cat'; var_export( preg_replace( '/ (?=-)/', "\n", $str ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L9hQS
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'To+do+list%3A+-+Buy+milk+-+Feed+cat'
    5     1        INIT_FCALL                                               'var_export'
    6     2        INIT_FCALL                                               'preg_replace'
    7     3        SEND_VAL                                                 '%2F+%28%3F%3D-%29%2F'
    8     4        SEND_VAL                                                 '%0A'
    9     5        SEND_VAR                                                 !0
    6     6        DO_ICALL                                         $2      
    9     7        SEND_VAR                                                 $2
    5     8        DO_ICALL                                                 
   11     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.38 ms | 1009 KiB | 15 Q