3v4l.org

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

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sbUFe
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:
193.25 ms | 1396 KiB | 15 Q