3v4l.org

run code in 300+ PHP versions simultaneously
<?php // http://gathering.tweakers.net/forum/list_messages/1663940 function doeMaarStrict(string $str = 'Hallo wereld!!!11') { var_dump($str); } function doeMaarStrictEmptyStringDefault(string $k, bool $v = false) { var_dump(m); } doeMaarStrict(); doeMaarStrictEmptyStringDefault('test');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4F5X3
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'doemaarstrict'
          1        DO_FCALL                                      0          
   16     2        INIT_FCALL                                               'doemaarstrictemptystringdefault'
          3        SEND_VAL                                                 'test'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function doemaarstrict:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4F5X3
function name:  doeMaarStrict
number of ops:  5
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      'Hallo+wereld%21%21%2111'
    7     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    8     4      > RETURN                                                   null

End of function doemaarstrict

Function doemaarstrictemptystringdefault:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4F5X3
function name:  doeMaarStrictEmptyStringDefault
number of ops:  7
compiled vars:  !0 = $k, !1 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <false>
   12     2        INIT_FCALL                                               'var_dump'
          3        FETCH_CONSTANT                                   ~2      'm'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
   13     6      > RETURN                                                   null

End of function doemaarstrictemptystringdefault

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.7 ms | 1397 KiB | 17 Q