3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('123', '456A', '78'); sort($a); print_r($a); $b = array('456A', '78', '123'); sort($b); print_r($b); $c = array('78', '123', '456A'); sort($c); print_r($c); $d = array('78', '456A', '123'); sort($d); print_r($d); while (list($chiave, $valore) = each($a)) { echo "A[" . $chiave . "] = " . $valore . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 29
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 29
Branch analysis from position: 42
Branch analysis from position: 29
filename:       /in/TrL45
function name:  (null)
number of ops:  43
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d, !4 = $chiave, !5 = $valore
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
          1        INIT_FCALL                                               'sort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
          4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    4     7        ASSIGN                                                   !1, <array>
          8        INIT_FCALL                                               'sort'
          9        SEND_REF                                                 !1
         10        DO_ICALL                                                 
         11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
    5    14        ASSIGN                                                   !2, <array>
         15        INIT_FCALL                                               'sort'
         16        SEND_REF                                                 !2
         17        DO_ICALL                                                 
         18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
    6    21        ASSIGN                                                   !3, <array>
         22        INIT_FCALL                                               'sort'
         23        SEND_REF                                                 !3
         24        DO_ICALL                                                 
         25        INIT_FCALL                                               'print_r'
         26        SEND_VAR                                                 !3
         27        DO_ICALL                                                 
    8    28      > JMP                                                      ->34
    9    29    >   CONCAT                                           ~18     'A%5B', !4
         30        CONCAT                                           ~19     ~18, '%5D+%3D+'
         31        CONCAT                                           ~20     ~19, !5
         32        CONCAT                                           ~21     ~20, '%0A'
         33        ECHO                                                     ~21
    8    34    >   INIT_FCALL_BY_NAME                                       'each'
         35        SEND_VAR_EX                                              !0
         36        DO_FCALL                                      0  $22     
         37        FETCH_LIST_R                                     $23     $22, 0
         38        ASSIGN                                                   !4, $23
         39        FETCH_LIST_R                                     $25     $22, 1
         40        ASSIGN                                                   !5, $25
         41      > JMPNZ                                                    $22, ->29
   10    42    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.8 ms | 1400 KiB | 20 Q