3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(count(123)); //int(1) var_dump(count(new stdclass)); //int(1) var_dump(count('hello world')); //int(1) var_dump(count(null)); //int(0)
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tGRDE
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        COUNT                                            ~0      123
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'var_dump'
          5        NEW                                              $2      'stdclass'
          6        DO_FCALL                                      0          
          7        COUNT                                            ~4      $2
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_dump'
         11        COUNT                                            ~6      'hello+world'
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'var_dump'
         15        COUNT                                            ~8      null
         16        SEND_VAL                                                 ~8
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.88 ms | 1450 KiB | 14 Q