3v4l.org

run code in 300+ PHP versions simultaneously
<?php $toto = "SIGNY L'ABBAYE"; echo str_replace("'", "\'", ($toto))."\n"; $timestamp = 1397810281; echo date("Y-m-d H:i:s", $timestamp); $time = time(); echo $time."\n"; echo "diff = ".$timestamp-$time."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bCcLh
function name:  (null)
number of ops:  24
compiled vars:  !0 = $toto, !1 = $timestamp, !2 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'SIGNY+L%27ABBAYE'
    5     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%27'
          3        SEND_VAL                                                 '%5C%27'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        CONCAT                                           ~5      $4, '%0A'
          7        ECHO                                                     ~5
    6     8        ASSIGN                                                   !1, 1397810281
    7     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $7      
         13        ECHO                                                     $7
    8    14        INIT_FCALL                                               'time'
         15        DO_ICALL                                         $8      
         16        ASSIGN                                                   !2, $8
    9    17        CONCAT                                           ~10     !2, '%0A'
         18        ECHO                                                     ~10
   10    19        SUB                                              ~11     !1, !2
         20        CONCAT                                           ~12     'diff+%3D+', ~11
         21        CONCAT                                           ~13     ~12, '%0A'
         22        ECHO                                                     ~13
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.85 ms | 1395 KiB | 19 Q