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/m4AGm
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $b, !2 = $lenA, !3 = $lenB, !4 = $lena
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'cat'
    3     1        ASSIGN                                                   !1, 'bat'
    4     2        STRLEN                                           ~7      !0
          3        ASSIGN                                                   !2, ~7
    5     4        STRLEN                                           ~9      !1
          5        ASSIGN                                                   !3, ~9
    6     6        ROPE_INIT                                     3  ~12     !0
          7        ROPE_ADD                                      1  ~12     ~12, '+'
          8        ROPE_END                                      2  ~11     ~12, !4
          9        ECHO                                                     ~11
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.41 ms | 1392 KiB | 13 Q