3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $b = -0; 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/MXa83
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ASSIGN                                                   !1, 0
    6     2        CONCAT                                           ~4      !0, '%2C+'
          3        CONCAT                                           ~5      ~4, !1
          4        CONCAT                                           ~6      ~5, '%0A'
          5        ECHO                                                     ~6
    7     6        STRLEN                                           ~7      !0
          7        CONCAT                                           ~8      ~7, '%0A'
          8        ECHO                                                     ~8
    8     9        STRLEN                                           ~9      !1
         10        CONCAT                                           ~10     ~9, '%0A'
         11        ECHO                                                     ~10
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.62 ms | 1393 KiB | 13 Q