3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "abc"; $b = "cdf"; $i = 1; ord($a[$i]); isset($b[$i])?(ord($b[$i])+0):(ord($a[$i])+1);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uNCFR
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'abc'
    4     1        ASSIGN                                                   !1, 'cdf'
    5     2        ASSIGN                                                   !2, 1
    7     3        INIT_FCALL                                               'ord'
          4        FETCH_DIM_R                                      ~6      !0, !2
          5        SEND_VAL                                                 ~6
          6        DO_ICALL                                                 
    9     7        ISSET_ISEMPTY_DIM_OBJ                         0          !1, !2
          8      > JMPZ                                                     ~8, ->16
          9    >   INIT_FCALL                                               'ord'
         10        FETCH_DIM_R                                      ~9      !1, !2
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                         $10     
         13        ADD                                              ~11     $10, 0
         14        QM_ASSIGN                                        ~12     ~11
         15      > JMP                                                      ->22
         16    >   INIT_FCALL                                               'ord'
         17        FETCH_DIM_R                                      ~13     !0, !2
         18        SEND_VAL                                                 ~13
         19        DO_ICALL                                         $14     
         20        ADD                                              ~15     $14, 1
         21        QM_ASSIGN                                        ~12     ~15
         22    >   FREE                                                     ~12
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.71 ms | 1395 KiB | 15 Q