3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataold = "9am — 5pm"; // from a ms word doc $data = mb_ereg_replace("\x{2014}", " dash ", $dataold); print_r($data); // output = 9am dash 5pm

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Lkpr
function name:  (null)
number of ops:  11
compiled vars:  !0 = $dataold, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '9am+%E2%80%94+5pm'
    3     1        INIT_FCALL                                               'mb_ereg_replace'
          2        SEND_VAL                                                 '%5Cx%7B2014%7D'
          3        SEND_VAL                                                 '+dash+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    4     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
207.5 ms | 1005 KiB | 15 Q