3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = explode(',', ''); $b = explode(',', null); var_dump($a === $b); $a = count(explode(',', '')); $b = count(explode(',', null)); var_dump($a === $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CJhKY
function name:  (null)
number of ops:  31
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%2C'
          2        SEND_VAL                                                 ''
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'explode'
          6        SEND_VAL                                                 '%2C'
          7        SEND_VAL                                                 null
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
    5    10        INIT_FCALL                                               'var_dump'
         11        IS_IDENTICAL                                     ~6      !0, !1
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'explode'
         15        SEND_VAL                                                 '%2C'
         16        SEND_VAL                                                 ''
         17        DO_ICALL                                         $8      
         18        COUNT                                            ~9      $8
         19        ASSIGN                                                   !0, ~9
    8    20        INIT_FCALL                                               'explode'
         21        SEND_VAL                                                 '%2C'
         22        SEND_VAL                                                 null
         23        DO_ICALL                                         $11     
         24        COUNT                                            ~12     $11
         25        ASSIGN                                                   !1, ~12
    9    26        INIT_FCALL                                               'var_dump'
         27        IS_IDENTICAL                                     ~14     !0, !1
         28        SEND_VAL                                                 ~14
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.22 ms | 1438 KiB | 15 Q