3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $v; public function __construct($v) { $this->v = $v; } } $a1 = new A(DateTime::createFromFormat("23.12.2015 18:38:00", "d.m.Y H:i:s")); $a2 = new A(DateTime::createFromFormat("23.12.2015 18:37:00", "d.m.Y H:i:s")); var_dump($a1 > $a2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s2F32
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a1, !1 = $a2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $2      'A'
          1        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          2        SEND_VAL                                                 '23.12.2015+18%3A38%3A00'
          3        SEND_VAL                                                 'd.m.Y+H%3Ai%3As'
          4        DO_FCALL                                      0  $3      
          5        SEND_VAR_NO_REF_EX                                       $3
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $2
   13     8        NEW                                              $6      'A'
          9        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
         10        SEND_VAL                                                 '23.12.2015+18%3A37%3A00'
         11        SEND_VAL                                                 'd.m.Y+H%3Ai%3As'
         12        DO_FCALL                                      0  $7      
         13        SEND_VAR_NO_REF_EX                                       $7
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !1, $6
   15    16        INIT_FCALL                                               'var_dump'
         17        IS_SMALLER                                       ~10     !1, !0
         18        SEND_VAL                                                 ~10
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s2F32
function name:  __construct
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ASSIGN_OBJ                                               'v'
          2        OP_DATA                                                  !0
    9     3      > RETURN                                                   null

End of function __construct

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.88 ms | 1400 KiB | 15 Q