3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.14 ms | 1393 KiB | 13 Q