3v4l.org

run code in 300+ PHP versions simultaneously
<?php $object1 = new \stdClass(); $object2 = new \stdClass(); $object1->car = 'Toyota'; $object2->food = 'Ham'; $object1->gender = 'Male'; try { throw new Exception('Exception1: ' . var_dump($object1) . ', Exception2: ' . var_dump($object2)); } catch (\Exception $e) { echo $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 26
Branch analysis from position: 26
2 jumps found. (Code = 107) Position 1 = 27, Position 2 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4KaQZ
function name:  (null)
number of ops:  31
compiled vars:  !0 = $object1, !1 = $object2, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        NEW                                              $6      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $6
    6     6        ASSIGN_OBJ                                               !0, 'car'
          7        OP_DATA                                                  'Toyota'
    7     8        ASSIGN_OBJ                                               !1, 'food'
          9        OP_DATA                                                  'Ham'
    9    10        ASSIGN_OBJ                                               !0, 'gender'
         11        OP_DATA                                                  'Male'
   12    12        NEW                                              $12     'Exception'
         13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $13     
         16        CONCAT                                           ~14     'Exception1%3A+', $13
         17        CONCAT                                           ~15     ~14, '%2C+Exception2%3A+'
         18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $16     
         21        CONCAT                                           ~17     ~15, $16
         22        SEND_VAL_EX                                              ~17
         23        DO_FCALL                                      0          
         24      > THROW                                         0          $12
         25*       JMP                                                      ->30
   13    26  E > > CATCH                                       last         'Exception'
   14    27    >   INIT_METHOD_CALL                                         !2, 'getMessage'
         28        DO_FCALL                                      0  $19     
         29        ECHO                                                     $19
   15    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.28 ms | 1401 KiB | 15 Q