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 $str = '') { var_dump($str); } doeMaarStrict(); doeMaarStrictEmptyStringDefault('');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OnELM
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                                                 ''
          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/OnELM
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/OnELM
function name:  doeMaarStrictEmptyStringDefault
number of ops:  5
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV_INIT                                        !0      ''
   12     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   13     4      > RETURN                                                   null

End of function doemaarstrictemptystringdefault

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.19 ms | 1398 KiB | 17 Q