3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vs = array(false, true, 1, 0, 1.1, '', 1E52, new stdclass, array(), fopen('php://output', 'r'), null); foreach($vs as $v) var_dump($v, strlen($v));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 26
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 26
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/lOatl
function name:  (null)
number of ops:  28
compiled vars:  !0 = $vs, !1 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_ARRAY                                       ~2      <false>
          1        ADD_ARRAY_ELEMENT                                ~2      <true>
          2        ADD_ARRAY_ELEMENT                                ~2      1
          3        ADD_ARRAY_ELEMENT                                ~2      0
          4        ADD_ARRAY_ELEMENT                                ~2      1.1
          5        ADD_ARRAY_ELEMENT                                ~2      ''
          6        ADD_ARRAY_ELEMENT                                ~2      1.0e+52
          7        NEW                                              $3      'stdclass'
          8        DO_FCALL                                      0          
          9        ADD_ARRAY_ELEMENT                                ~2      $3
         10        ADD_ARRAY_ELEMENT                                ~2      <array>
         11        INIT_FCALL                                               'fopen'
         12        SEND_VAL                                                 'php%3A%2F%2Foutput'
         13        SEND_VAL                                                 'r'
         14        DO_ICALL                                         $5      
         15        ADD_ARRAY_ELEMENT                                ~2      $5
         16        ADD_ARRAY_ELEMENT                                ~2      null
         17        ASSIGN                                                   !0, ~2
    3    18      > FE_RESET_R                                       $7      !0, ->26
         19    > > FE_FETCH_R                                               $7, !1, ->26
    4    20    >   INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !1
         22        STRLEN                                           ~8      !1
         23        SEND_VAL                                                 ~8
         24        DO_ICALL                                                 
    3    25      > JMP                                                      ->19
         26    >   FE_FREE                                                  $7
    4    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149 ms | 1395 KiB | 17 Q