3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 10; $width = 7; $height = 9; $array = [$length,$width,$height]; ASort($array); Echo "largest: " . $array[0] ."\n"; Echo "the other two " . $array[1] . " " . $array[2];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PmdZu
function name:  (null)
number of ops:  21
compiled vars:  !0 = $length, !1 = $width, !2 = $height, !3 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10
    4     1        ASSIGN                                                   !1, 7
    5     2        ASSIGN                                                   !2, 9
    7     3        INIT_ARRAY                                       ~7      !0
          4        ADD_ARRAY_ELEMENT                                ~7      !1
          5        ADD_ARRAY_ELEMENT                                ~7      !2
          6        ASSIGN                                                   !3, ~7
    9     7        INIT_FCALL                                               'asort'
          8        SEND_REF                                                 !3
          9        DO_ICALL                                                 
   11    10        FETCH_DIM_R                                      ~10     !3, 0
         11        CONCAT                                           ~11     'largest%3A+', ~10
         12        CONCAT                                           ~12     ~11, '%0A'
         13        ECHO                                                     ~12
   12    14        FETCH_DIM_R                                      ~13     !3, 1
         15        CONCAT                                           ~14     'the+other+two+', ~13
         16        CONCAT                                           ~15     ~14, '+'
         17        FETCH_DIM_R                                      ~16     !3, 2
         18        CONCAT                                           ~17     ~15, ~16
         19        ECHO                                                     ~17
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.97 ms | 997 KiB | 14 Q