3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nums = sort(explode('/', '3/2015/13')); $nums = [$nums[1], $nums[0], $nums[2]]; echo implode('/', $nums);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FW9B8
function name:  (null)
number of ops:  21
compiled vars:  !0 = $nums
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'sort'
          1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAL                                                 '3%2F2015%2F13'
          4        DO_ICALL                                         $1      
          5        SEND_VAR_NO_REF                               0          $1
          6        DO_ICALL                                         $2      
          7        ASSIGN                                                   !0, $2
    4     8        FETCH_DIM_R                                      ~4      !0, 1
          9        INIT_ARRAY                                       ~5      ~4
         10        FETCH_DIM_R                                      ~6      !0, 0
         11        ADD_ARRAY_ELEMENT                                ~5      ~6
         12        FETCH_DIM_R                                      ~7      !0, 2
         13        ADD_ARRAY_ELEMENT                                ~5      ~7
         14        ASSIGN                                                   !0, ~5
    5    15        INIT_FCALL                                               'implode'
         16        SEND_VAL                                                 '%2F'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $9      
         19        ECHO                                                     $9
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.81 ms | 940 KiB | 20 Q