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)."\n"; $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/bgpi4
function name:  (null)
number of ops:  25
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        CONCAT                                           ~8      $7, '%0A'
         14        ECHO                                                     ~8
    8    15        INIT_FCALL                                               'time'
         16        DO_ICALL                                         $9      
         17        ASSIGN                                                   !2, $9
    9    18        CONCAT                                           ~11     !2, '%0A'
         19        ECHO                                                     ~11
   10    20        SUB                                              ~12     !1, !2
         21        CONCAT                                           ~13     'diff+%3D+', ~12
         22        CONCAT                                           ~14     ~13, '%0A'
         23        ECHO                                                     ~14
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.27 ms | 1395 KiB | 19 Q