3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function test(int $test) { echo $test . "\n"; } test((int)'test'); test((int)'123test'); test((int)123.00); test((int)123.123); test((int)true); test((int)false); test((int)null); test((int)123); test((int)[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5kVSG
function name:  (null)
number of ops:  37
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'test'
          1        CAST                                          4  ~0      'test'
          2        SEND_VAL                                                 ~0
          3        DO_FCALL                                      0          
    8     4        INIT_FCALL                                               'test'
          5        CAST                                          4  ~2      '123test'
          6        SEND_VAL                                                 ~2
          7        DO_FCALL                                      0          
    9     8        INIT_FCALL                                               'test'
          9        CAST                                          4  ~4      123
         10        SEND_VAL                                                 ~4
         11        DO_FCALL                                      0          
   10    12        INIT_FCALL                                               'test'
         13        CAST                                          4  ~6      123.123
         14        SEND_VAL                                                 ~6
         15        DO_FCALL                                      0          
   11    16        INIT_FCALL                                               'test'
         17        CAST                                          4  ~8      <true>
         18        SEND_VAL                                                 ~8
         19        DO_FCALL                                      0          
   12    20        INIT_FCALL                                               'test'
         21        CAST                                          4  ~10     <false>
         22        SEND_VAL                                                 ~10
         23        DO_FCALL                                      0          
   13    24        INIT_FCALL                                               'test'
         25        CAST                                          4  ~12     null
         26        SEND_VAL                                                 ~12
         27        DO_FCALL                                      0          
   14    28        INIT_FCALL                                               'test'
         29        CAST                                          4  ~14     123
         30        SEND_VAL                                                 ~14
         31        DO_FCALL                                      0          
   15    32        INIT_FCALL                                               'test'
         33        CAST                                          4  ~16     <array>
         34        SEND_VAL                                                 ~16
         35        DO_FCALL                                      0          
         36      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5kVSG
function name:  test
number of ops:  4
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        CONCAT                                           ~1      !0, '%0A'
          2        ECHO                                                     ~1
    5     3      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.1 ms | 999 KiB | 22 Q