3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string_1 = 'c5'; $string_2 = 'c11'; $string_3 = 'c329'; $string_4 = 'c78'; echo "Min: " . match (strnatcmp($string_1, $string_2)) { -1 => $string_1, 0 => 'same', 1 => $string_2 }; echo "\n---\nMin: " . match (strnatcmp($string_3, $string_4)) { -1 => $string_3, 0 => 'same', 1 => $string_4 };
Finding entry points
Branch analysis from position: 0
4 jumps found. (Code = 195) Position 1 = 10, Position 2 = 12, Position 3 = 14, Position 4 = 9
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
4 jumps found. (Code = 195) Position 1 = 25, Position 2 = 27, Position 3 = 29, Position 4 = 24
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 24
1 jumps found. (Code = 197) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 9
1 jumps found. (Code = 197) Position 1 = -2
filename:       /in/v6vOL
function name:  (null)
number of ops:  35
compiled vars:  !0 = $string_1, !1 = $string_2, !2 = $string_3, !3 = $string_4
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'c5'
    4     1        ASSIGN                                                   !1, 'c11'
    5     2        ASSIGN                                                   !2, 'c329'
    6     3        ASSIGN                                                   !3, 'c78'
    8     4        INIT_FCALL                                               'strnatcmp'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $8      
          8      > MATCH                                                    $8, [ -1:->10, 0:->12, 1:->14, ], ->9
          9    > > MATCH_ERROR                                              $8
    9    10    >   QM_ASSIGN                                        ~10     !0
         11      > JMP                                                      ->16
   10    12    >   QM_ASSIGN                                        ~10     'same'
         13      > JMP                                                      ->16
   11    14    >   QM_ASSIGN                                        ~10     !1
         15      > JMP                                                      ->16
         16    >   FREE                                                     $8
         17        CONCAT                                           ~11     'Min%3A+', ~10
         18        ECHO                                                     ~11
   14    19        INIT_FCALL                                               'strnatcmp'
         20        SEND_VAR                                                 !2
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                         $12     
         23      > MATCH                                                    $12, [ -1:->25, 0:->27, 1:->29, ], ->24
         24    > > MATCH_ERROR                                              $12
   15    25    >   QM_ASSIGN                                        ~14     !2
         26      > JMP                                                      ->31
   16    27    >   QM_ASSIGN                                        ~14     'same'
         28      > JMP                                                      ->31
   17    29    >   QM_ASSIGN                                        ~14     !3
         30      > JMP                                                      ->31
         31    >   FREE                                                     $12
         32        CONCAT                                           ~15     '%0A---%0AMin%3A+', ~14
         33        ECHO                                                     ~15
   18    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.59 ms | 1004 KiB | 14 Q