3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "aaa"; $str2 = "zz"; $s1 = mb_strlen($str1) > mb_strlen($str2) ? $str2 : $str1; echo $s1; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OVsvG
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str1, !1 = $str2, !2 = $s1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'aaa'
    3     1        ASSIGN                                                   !1, 'zz'
    4     2        INIT_FCALL                                               'mb_strlen'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        INIT_FCALL                                               'mb_strlen'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        IS_SMALLER                                               $6, $5
          9      > JMPZ                                                     ~7, ->12
         10    >   QM_ASSIGN                                        ~8      !1
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~8      !0
         13    >   ASSIGN                                                   !2, ~8
    5    14        ECHO                                                     !2
    6    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.13 ms | 1399 KiB | 15 Q