3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "bar"; echo strlen($foo); if("a" == "a"){echo "yay";} echo $_SERVER["HTTP_USER_AGENT"]; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/CeYCE
function name:  (null)
number of ops:  9
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'bar'
    3     1        STRLEN                                           ~2      !0
          2        ECHO                                                     ~2
    4     3      > JMPZ                                                     <true>, ->5
          4    >   ECHO                                                     'yay'
    5     5    >   FETCH_R                      global              ~3      '_SERVER'
          6        FETCH_DIM_R                                      ~4      ~3, 'HTTP_USER_AGENT'
          7        ECHO                                                     ~4
    7     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.51 ms | 1392 KiB | 13 Q