3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "cat"; $b = "bat"; $lenA = strlen($a); $lenB = strlen($b); echo "$a $lenA";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/USjOB
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $b, !2 = $lenA, !3 = $lenB
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'cat'
    3     1        ASSIGN                                                   !1, 'bat'
    4     2        STRLEN                                           ~6      !0
          3        ASSIGN                                                   !2, ~6
    5     4        STRLEN                                           ~8      !1
          5        ASSIGN                                                   !3, ~8
    6     6        ROPE_INIT                                     3  ~11     !0
          7        ROPE_ADD                                      1  ~11     ~11, '+'
          8        ROPE_END                                      2  ~10     ~11, !2
          9        ECHO                                                     ~10
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.43 ms | 1392 KiB | 13 Q