3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ "customer" => [ "id" => $expectedOriginId = 1, "email" => $expectedEmail = "john.doesdfsdf@example.com", "profile_type" => $expectedProfileTypeId = "c", "register_type" => $expectedRegisterTypeId = "r", "gender" => $expectedGenderId = "male", "birthday" => $expectedBirthday = "1980-04-15", "registration_date" => $expectedRegistrationDate = "2013-07-31T16:59:43+1000", "last_session" => $expectedLastSession = "2013-07-31T17:09:39+1000" ] ]; var_dump( json_encode($a) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Nbh20
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a, !1 = $expectedOriginId, !2 = $expectedEmail, !3 = $expectedProfileTypeId, !4 = $expectedRegisterTypeId, !5 = $expectedGenderId, !6 = $expectedBirthday, !7 = $expectedRegistrationDate, !8 = $expectedLastSession
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                           ~9      !1, 1
          1        INIT_ARRAY                                       ~10     ~9, 'id'
    6     2        ASSIGN                                           ~11     !2, 'john.doesdfsdf%40example.com'
          3        ADD_ARRAY_ELEMENT                                ~10     ~11, 'email'
    7     4        ASSIGN                                           ~12     !3, 'c'
          5        ADD_ARRAY_ELEMENT                                ~10     ~12, 'profile_type'
    8     6        ASSIGN                                           ~13     !4, 'r'
          7        ADD_ARRAY_ELEMENT                                ~10     ~13, 'register_type'
    9     8        ASSIGN                                           ~14     !5, 'male'
          9        ADD_ARRAY_ELEMENT                                ~10     ~14, 'gender'
   10    10        ASSIGN                                           ~15     !6, '1980-04-15'
         11        ADD_ARRAY_ELEMENT                                ~10     ~15, 'birthday'
   11    12        ASSIGN                                           ~16     !7, '2013-07-31T16%3A59%3A43%2B1000'
         13        ADD_ARRAY_ELEMENT                                ~10     ~16, 'registration_date'
   12    14        ASSIGN                                           ~17     !8, '2013-07-31T17%3A09%3A39%2B1000'
         15        ADD_ARRAY_ELEMENT                                ~10     ~17, 'last_session'
         16        INIT_ARRAY                                       ~18     ~10, 'customer'
    3    17        ASSIGN                                                   !0, ~18
   16    18        INIT_FCALL                                               'var_dump'
   17    19        INIT_FCALL                                               'json_encode'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $20     
         22        SEND_VAR                                                 $20
         23        DO_ICALL                                                 
   18    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.43 ms | 1395 KiB | 17 Q