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: ' . $object1 . ', Exception2: ' . $object2); } catch (\Exception $e) { $e->getMessage; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 20
Branch analysis from position: 20
2 jumps found. (Code = 107) Position 1 = 21, Position 2 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mXE3H
function name:  (null)
number of ops:  24
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        CONCAT                                           ~13     'Exception1%3A+', !0
         14        CONCAT                                           ~14     ~13, '%2C+Exception2%3A+'
         15        CONCAT                                           ~15     ~14, !1
         16        SEND_VAL_EX                                              ~15
         17        DO_FCALL                                      0          
         18      > THROW                                         0          $12
         19*       JMP                                                      ->23
   13    20  E > > CATCH                                       last         'Exception'
   14    21    >   FETCH_OBJ_R                                      ~17     !2, 'getMessage'
         22        FREE                                                     ~17
   15    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.38 ms | 1394 KiB | 13 Q