3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params = array(); assert_options(ASSERT_ACTIVE, 1); $myString = array( 'foo' => 'myStsring' ); $foo = assert('"myString" === $myString["foo"]'); var_dump($foo); $test = assert('count($params) == 1'); var_dump($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tDM8h
function name:  (null)
number of ops:  25
compiled vars:  !0 = $params, !1 = $myString, !2 = $foo, !3 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'assert_options'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 1
          4        DO_ICALL                                                 
    4     5        ASSIGN                                                   !1, <array>
    8     6        ASSERT_CHECK                                     $7      
          7        INIT_FCALL                                               'assert'
          8        SEND_VAL                                                 '%22myString%22+%3D%3D%3D+%24myString%5B%22foo%22%5D'
          9        SEND_VAL                                                 'assert%28%27%22myString%22+%3D%3D%3D+%24myString%5B%22foo%22%5D%27%29'
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    9    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
   11    15        ASSERT_CHECK                                     $10     
         16        INIT_FCALL                                               'assert'
         17        SEND_VAL                                                 'count%28%24params%29+%3D%3D+1'
         18        SEND_VAL                                                 'assert%28%27count%28%24params%29+%3D%3D+1%27%29'
         19        DO_ICALL                                         $10     
         20        ASSIGN                                                   !3, $10
   12    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.5 ms | 1395 KiB | 19 Q