3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = ['foo']; $bar = ['apples', 'banana', 'carrots']; var_dump(count($foo > 2)); var_dump(count($bar > 2)); var_dump(count($foo) > 2); var_dump(count($bar) > 2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KhlI7
function name:  (null)
number of ops:  23
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'var_dump'
          3        IS_SMALLER                                       ~4      2, !0
          4        COUNT                                            ~5      ~4
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'var_dump'
          8        IS_SMALLER                                       ~7      2, !1
          9        COUNT                                            ~8      ~7
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'var_dump'
         13        COUNT                                            ~10     !0
         14        IS_SMALLER                                       ~11     2, ~10
         15        SEND_VAL                                                 ~11
         16        DO_ICALL                                                 
    9    17        INIT_FCALL                                               'var_dump'
         18        COUNT                                            ~13     !1
         19        IS_SMALLER                                       ~14     2, ~13
         20        SEND_VAL                                                 ~14
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.13 ms | 1395 KiB | 15 Q