3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "something"; print strlen($str); $test = []; $test[] = ord('shit'); print $test; print implode(' ',$test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KfoYb
function name:  (null)
number of ops:  13
compiled vars:  !0 = $str, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'something'
    3     1        STRLEN                                           ~3      !0
          2        ECHO                                                     ~3
    4     3        ASSIGN                                                   !1, <array>
    5     4        ASSIGN_DIM                                               !1
          5        OP_DATA                                                  115
    6     6        ECHO                                                     !1
    7     7        INIT_FCALL                                               'implode'
          8        SEND_VAL                                                 '+'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        ECHO                                                     $6
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.87 ms | 1394 KiB | 15 Q