3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.31 ms | 1395 KiB | 17 Q