3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expected = 1; $actual = true; $code = '$expected == $actual;'; var_export(assert($code)); echo "\n"; var_export(eval("return $code;"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CMs8I
function name:  (null)
number of ops:  20
compiled vars:  !0 = $expected, !1 = $actual, !2 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, <true>
    4     2        ASSIGN                                                   !2, '%24expected+%3D%3D+%24actual%3B'
    5     3        INIT_FCALL                                               'var_export'
          4        ASSERT_CHECK                                     $6      
          5        INIT_FCALL                                               'assert'
          6        SEND_VAR                                                 !2
          7        SEND_VAL                                                 'assert%28%24code%29'
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
    6    11        ECHO                                                     '%0A'
    7    12        INIT_FCALL                                               'var_export'
         13        ROPE_INIT                                     3  ~9      'return+'
         14        ROPE_ADD                                      1  ~9      ~9, !2
         15        ROPE_END                                      2  ~8      ~9, '%3B'
         16        INCLUDE_OR_EVAL                                  $11     ~8, EVAL
         17        SEND_VAR                                                 $11
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.48 ms | 1395 KiB | 17 Q