3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo spl_object_id(new stdClass()) . "\n"; echo spl_object_hash(new stdClass()) . "\n";
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
1 00000000000000010000000000000000
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 1 00000000000000010000000000000000
Output for 8.0.16, 8.0.30
1 00000000301b6f8a000000003af2a61b
Output for 8.0.29
1 00000000097861b4000000004acbb999
Output for 8.0.28
1 00000000738c72f40000000058c7612a
Output for 8.0.27
1 00000000315c7838000000006ee8c00f
Output for 8.0.26
1 00000000523f220c0000000074ac8ae6
Output for 8.0.25
1 000000006b31c2ee000000002417db6a
Output for 8.0.24
1 0000000075e457ec000000000b3b34d0
Output for 8.0.23
1 0000000068d5e92c00000000235a7083
Output for 8.0.22
1 0000000014a05b42000000006aeabf8c
Output for 8.0.21
1 0000000028048d0400000000580f9d26
Output for 8.0.20
1 000000000f083cc9000000001bdae206
Output for 8.0.19
1 000000003e406be20000000025f66f62
Output for 8.0.18
1 00000000661058460000000032833837
Output for 8.0.17
1 000000000e2b2792000000004721fe60
Output for 8.0.15
1 00000000719084a3000000001314c928
Output for 8.0.14
1 00000000354e5919000000001694a4c7
Output for 8.0.13
1 000000004b216e12000000004f62bf2e
Output for 8.0.12
1 00000000359bb64d000000000bd62a4e
Output for 8.0.11
1 0000000050058bf50000000008391b44
Output for 8.0.10
1 000000006751730f00000000310b56e4
Output for 8.0.9
1 00000000291c05d10000000076373898
Output for 8.0.8
1 0000000028d817c000000000590eb6c9
Output for 8.0.7
1 0000000045ad3e5e0000000075cb49d2
Output for 8.0.6
1 000000000c1de285000000001e119a9f
Output for 8.0.5
1 000000004df082fb0000000012718638
Output for 8.0.3
1 000000000310d984000000001b771f79
Output for 8.0.2
1 000000005f8601b8000000003a4e099d
Output for 8.0.1
1 0000000035d6fdb300000000489e7e54
Output for 8.0.0
1 0000000063fed3340000000031e9e4bb
Output for 7.4.33
1 000000001eb90f0800000000603bd0c7
Output for 7.4.32
1 0000000012287192000000001b70f467
Output for 7.4.30
1 000000003f14b7310000000067f53014
Output for 7.4.29
1 0000000034a956d0000000005dc0a3f0
Output for 7.4.28
1 00000000146528a700000000668efda3
Output for 7.4.27
1 000000002292b70d0000000075ee722a
Output for 7.4.26
1 0000000019dfc4af0000000009b68ff8
Output for 7.4.25
1 00000000527b0529000000001f2afaf3
Output for 7.4.24
1 000000003340cb02000000005c5de289
Output for 7.4.23
1 000000005de712570000000047d42bbd
Output for 7.4.22
1 0000000040e835cf0000000069307d4b
Output for 7.4.21
1 0000000079725ef10000000076a6ee37
Output for 7.4.20
1 00000000305a7b120000000075e1c9bb
Output for 7.4.16
1 000000007ae888970000000025725e23
Output for 7.4.15
1 00000000599df523000000002de91b0d
Output for 7.4.14
1 0000000009a08ddd0000000005ddea69
Output for 7.4.13
1 0000000069a253b9000000002c3762a4
Output for 7.4.3, 7.4.12
1 000000007b29705500000000697cad4c
Output for 7.4.11
1 0000000056653b7400000000014e3410
Output for 7.4.10
1 0000000053cc82b00000000013389b72
Output for 7.4.9
1 0000000014e54693000000006d867585
Output for 7.4.8
1 000000007f186cf900000000045d750e
Output for 7.4.7
1 0000000055b1cfc100000000545b7690
Output for 7.4.6
1 000000006cc2cecf0000000006336597
Output for 7.4.5
1 000000000efb8e22000000003bfc1319
Output for 7.4.4
1 0000000031ee6a3e000000005b665383
Output for 7.4.2
1 000000000efd7061000000007d774460
Output for 7.4.1
1 000000005ff912640000000003aff04e
Output for 7.4.0
1 00000000447abda20000000055a082ab
Output for 7.3.33
1 000000004dc0eeb2000000004d9df321
Output for 7.3.32
1 000000000d0bc4cb000000000ac4d04b
Output for 7.3.31
1 000000001055449d000000002cc0aae0
Output for 7.3.30
1 000000001a162677000000005613ae22
Output for 7.3.29
1 000000000104d188000000007ef6350d
Output for 7.3.28
1 000000005497f72a000000003428aab9
Output for 7.3.27
1 000000006fc385e70000000045aa5834
Output for 7.3.26
1 000000006ecb3905000000005cc7c834
Output for 7.3.25
1 000000002b904c8f0000000067f3cb34
Output for 7.3.24
1 000000007b9743700000000072ffd459
Output for 7.3.23
1 0000000077b4f6e5000000002673f51e
Output for 7.3.22
1 0000000041774bc50000000062f6b6d0
Output for 7.3.21
1 000000002ffb543c0000000042e213bc
Output for 7.3.20
1 000000000c55ee5d000000001502b858
Output for 7.3.19
1 000000000d60bcc000000000522faed2
Output for 7.3.18
1 00000000702c10f0000000006842b09b
Output for 7.3.17
1 000000004eef4a750000000065ff611e
Output for 7.3.16
1 000000000c655cba000000004033cb24
Output for 7.3.15
1 000000001eaa5cd300000000002d3a96
Output for 7.3.14
1 0000000040353bc2000000007498fa68
Output for 7.3.13
1 000000004d2d16d1000000006c9483de
Output for 7.3.12
1 0000000016c349da00000000445c0cd3
Output for 7.3.11
1 0000000070992efc00000000108eae8b
Output for 7.3.10
1 0000000019920654000000001fc81b43
Output for 7.3.9
1 000000004f5ec0e3000000002c6432e9
Output for 7.3.8
1 000000001089f24100000000553e2347
Output for 7.3.7
1 00000000335afd880000000048c444ad
Output for 7.3.6
1 0000000021a9a600000000004617889f
Output for 7.3.5
1 000000005904cae7000000002c10b6db
Output for 7.3.4
1 000000006491e157000000000ac70f41
Output for 7.3.3
1 000000005ff0aee30000000017a634ce
Output for 7.3.2
1 000000007e28de040000000035495d24
Output for 7.3.1
1 00000000186102af0000000016d859d3
Output for 7.3.0
1 00000000445952f30000000026e517c3
Output for 7.2.34
1 000000001f9371e5000000005cef42f9
Output for 7.2.33
1 0000000024a31a0d000000000cd4f53d
Output for 7.2.32
1 0000000030d18c8f000000002d2c2a05
Output for 7.2.31
1 0000000052deb0660000000010a57c56
Output for 7.2.30
1 000000003432ddb1000000000eb4bab7
Output for 7.2.29
1 000000003954e6a1000000002a18bcad
Output for 7.2.28
1 000000001028577a0000000055f06267
Output for 7.2.27
1 0000000001304415000000007666ea64
Output for 7.2.26
1 0000000022f520f10000000046eaa455
Output for 7.2.25
1 0000000038b2598f000000000d04861e
Output for 7.2.24
1 0000000049935e36000000005094d85b
Output for 7.2.23
1 000000003665517e000000004784369a
Output for 7.2.22
1 0000000035dc9d64000000006001d717
Output for 7.2.21
1 000000004b9de9f400000000059bc097
Output for 7.2.20
1 00000000761f6a5300000000606b86c5
Output for 7.2.19
1 000000004ca90df100000000264d1116
Output for 7.2.18
1 00000000211d2916000000006ae9bfa3
Output for 7.2.17
1 000000004081828f00000000606667c1
Output for 7.2.16
1 000000006fc4ebfd000000001532cbc4
Output for 7.2.15
1 00000000367848c60000000051891c72
Output for 7.2.14
1 000000004c70f2920000000007c94476
Output for 7.2.13
1 000000000458211e0000000051d1817a
Output for 7.2.12
1 000000002d7677b40000000067ed8e96
Output for 7.2.11
1 000000007f12f505000000004fb040eb
Output for 7.2.10
1 00000000419e6cfb0000000047cda4a8
Output for 7.2.9
1 0000000064577cd300000000189c59c4
Output for 7.2.8
1 00000000166a297300000000383d2650
Output for 7.2.7
1 0000000069e106aa00000000376456c4
Output for 7.2.6
1 000000004eac86a7000000002407cad3
Output for 7.2.5
1 0000000043060735000000004a1ed588
Output for 7.2.4
1 0000000016ce8851000000003e23106d
Output for 7.2.3
1 00000000021e3a8200000000738e4913
Output for 7.2.2
1 000000007fd4c403000000001bc450be
Output for 7.2.1
1 0000000034f347fa0000000041b196a3
Output for 7.2.0
1 00000000430c76c000000000685c812c
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
Fatal error: Uncaught Error: Call to undefined function spl_object_id() in /in/b4Z1G:3 Stack trace: #0 {main} thrown in /in/b4Z1G on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Fatal error: Call to undefined function spl_object_id() in /in/b4Z1G on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: spl_object_id() in /in/b4Z1G on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: spl_object_id() in /in/b4Z1G on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: spl_object_id() in /in/b4Z1G on line 3

preferences:
380.68 ms | 401 KiB | 466 Q