3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '2014-05-29T04:00:00.000Z'; $d = explode("T", $s); $x = str_replace("-","",$d[0]); echo $x;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sWhAX
function name:  (null)
number of ops:  15
compiled vars:  !0 = $s, !1 = $d, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2014-05-29T04%3A00%3A00.000Z'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 'T'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        INIT_FCALL                                               'str_replace'
          7        SEND_VAL                                                 '-'
          8        SEND_VAL                                                 ''
          9        FETCH_DIM_R                                      ~6      !1, 0
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    6    13        ECHO                                                     !2
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.4 ms | 1394 KiB | 17 Q