3v4l.org

run code in 300+ PHP versions simultaneously
<?php $crypt = crypt('test', '$2y$04$012345678901234567890123456789'); $test = (substr($crypt, 0, 2) === '$2y'); var_dump($test, $crypt);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/klT9Z
function name:  (null)
number of ops:  17
compiled vars:  !0 = $crypt, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'crypt'
          1        SEND_VAL                                                 'test'
          2        SEND_VAL                                                 '%242y%2404%24012345678901234567890123456789'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    3     5        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 2
          9        DO_ICALL                                         $4      
         10        IS_IDENTICAL                                     ~5      $4, '%242y'
         11        ASSIGN                                                   !1, ~5
    4    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.31 ms | 1394 KiB | 19 Q