3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = trim(12/01/2014); explode('/',$data); $dataTratada = $data[1].$data[0].$data[2]; echo $dataTratada;
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/1sE6a
function name:  (null)
number of ops:  16
compiled vars:  !0 = $data, !1 = $dataTratada
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   INIT_FCALL                                               'trim'
         1        SEND_VAL                                                 0.00595829
         2        DO_ICALL                                         $2      
         3        ASSIGN                                                   !0, $2
   6     4        INIT_FCALL                                               'explode'
         5        SEND_VAL                                                 '%2F'
         6        SEND_VAR                                                 !0
         7        DO_ICALL                                                 
   7     8        FETCH_DIM_R                                      $5      !0, 1
         9        FETCH_DIM_R                                      $6      !0, 0
        10        CONCAT                                           ~7      $5, $6
        11        FETCH_DIM_R                                      $8      !0, 2
        12        CONCAT                                           ~9      ~7, $8
        13        ASSIGN                                                   !1, ~9
   9    14        ECHO                                                     !1
        15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0