3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { var $boo; function Foo() { $this->boo = uniqid(); } function go() { echo $this->boo; } } $a = new Foo(); $a->go();
Output for 7.0.24, 7.4.1
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000c8
Output for 7.4.0
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000d6
Output for 7.1.3, 7.3.13
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000fa
Output for 7.1.5, 7.3.12
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000e9
Output for 7.3.11
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000d9
Output for 7.3.10
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800114
Output for 7.3.9
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800085
Output for 7.3.8
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f80009e
Output for 7.3.7
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f80009a
Output for 7.3.6
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000d7
Output for 7.3.5
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f80009c
Output for 7.3.4
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f80008d
Output for 7.0.21, 7.3.3
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000fe
Output for 7.1.10, 7.3.2
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000cc
Output for 7.2.10, 7.3.1
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800094
Output for 7.3.0
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000b6
Output for 7.2.26
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000f5
Output for 7.1.4, 7.2.25
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000df
Output for 7.2.24
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f80011d
Output for 7.2.23
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800115
Output for 7.2.22
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800098
Output for 7.2.21
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000c4
Output for 7.2.20
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000ac
Output for 7.2.19
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000a2
Output for 7.2.3, 7.2.18
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f80008f
Output for 7.2.17
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000cf
Output for 7.2.16
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000f4
Output for 7.2.15
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000a0
Output for 7.2.9, 7.2.14
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f80009d
Output for 7.2.13
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000aa
Output for 7.2.12
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800076
Output for 7.2.11
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000bc
Output for 7.2.8
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f80007b
Output for 7.2.7
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f80008b
Output for 7.2.6
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800083
Output for 7.2.5
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000a5
Output for 7.1.21, 7.2.4
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000bf
Output for 7.2.2
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800096
Output for 7.2.0 - 7.2.1
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f80007d
Output for 7.1.33
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f80013f
Output for 7.1.32
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000e7
Output for 7.0.19, 7.1.31
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000e6
Output for 7.0.11, 7.0.23, 7.0.29, 7.1.30
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000b4
Output for 7.1.29
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800118
Output for 7.1.28
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000dd
Output for 7.1.27
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000bd
Output for 7.0.1, 7.1.26
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000b3
Output for 7.1.2, 7.1.25
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000b1
Output for 7.1.24
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000c7
Output for 7.1.23
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000f1
Output for 7.0.22, 7.1.22
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000ef
Output for 7.1.20
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000b9
Output for 7.1.19
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800137
Output for 7.1.18
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000d1
Output for 7.0.14, 7.1.17
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000b8
Output for 7.0.5, 7.1.8, 7.1.15 - 7.1.16
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000b5
Output for 7.1.14
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000a8
Output for 7.1.13
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f80010e
Output for 7.1.12
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000e8
Output for 7.1.11
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800119
Output for 7.1.9
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000e5
Output for 7.0.0, 7.1.7
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000b2
Output for 7.1.6
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000e4
Output for 7.1.1
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800107
Output for 7.1.0
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000f3
Output for 7.0.7, 7.0.33
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000d3
Output for 7.0.32
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f80010f
Output for 7.0.31
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f900119
Output for 7.0.30
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000d0
Output for 7.0.28
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000c2
Output for 7.0.27
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f80010b
Output for 7.0.4, 7.0.26
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000d5
Output for 7.0.25
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800109
Output for 7.0.20
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000dc
Output for 7.0.18
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800139
Output for 7.0.17
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000ee
Output for 7.0.16
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000ec
Output for 7.0.15
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000be
Output for 7.0.13
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000f6
Output for 7.0.9, 7.0.12
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800105
Output for 7.0.10
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f800108
Output for 7.0.8
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000ba
Output for 7.0.6
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000f8
Output for 7.0.3
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f8000e0
Output for 7.0.2
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/oTSVq on line 3 539ef0f9000db
Output for 5.4.16, 5.5.37, 5.6.40
539ef0f8000b2
Output for 5.5.18, 5.6.39
539ef0f8000de
Output for 5.6.38
539ef0f8000d8
Output for 5.6.22, 5.6.29, 5.6.37
539ef0f8000b0
Output for 5.4.37, 5.4.43, 5.5.24, 5.6.11, 5.6.36
539ef0f8000b1
Output for 5.6.35
539ef0f8000fd
Output for 5.6.34
539ef0f8000f0
Output for 5.6.33
539ef0f8000b6
Output for 5.5.10, 5.6.32
539ef0f8000f3
Output for 5.6.16, 5.6.31
539ef0f8000b8
Output for 5.6.30
539ef0f80010c
Output for 5.6.28
539ef0f8000ed
Output for 5.4.25, 5.6.27
539ef0f80012a
Output for 5.5.28, 5.5.30, 5.6.26
539ef0f8000dc
Output for 5.6.3, 5.6.25
539ef0f8000ae
Output for 5.4.19, 5.4.41, 5.6.24
539ef0f8000d7
Output for 5.4.31, 5.6.23
539ef0f8000d6
Output for 5.6.21
539ef0f8000fc
Output for 5.5.11, 5.6.1, 5.6.10, 5.6.20
539ef0f8000db
Output for 5.6.19
539ef0f8000e7
Output for 5.5.9, 5.5.33, 5.6.6, 5.6.8, 5.6.18
539ef0f8000b3
Output for 5.4.13, 5.5.12, 5.6.14, 5.6.17
539ef0f8000cc
Output for 5.6.15
539ef0f8000df
Output for 5.6.13
539ef0f8000c2
Output for 5.6.12
539ef0f8000c9
Output for 5.4.9, 5.6.9
539ef0f8000f9
Output for 5.4.5, 5.5.38, 5.6.7
539ef0f8000a8
Output for 5.6.5
539ef0f80011d
Output for 5.4.7, 5.6.4
539ef0f8000b7
Output for 5.6.2
539ef0f80012d
Output for 5.6.0
539ef0f8000d2
Output for 5.5.1, 5.5.36
539ef0f8000ea
Output for 5.5.35
539ef0f8000e3
Output for 5.4.32, 5.5.34
539ef0f80012c
Output for 5.5.32
539ef0f8000e8
Output for 5.5.31
539ef0f8000af
Output for 5.5.29
539ef0f8000c7
Output for 5.4.27, 5.5.27
539ef0f8000bb
Output for 5.5.26
539ef0f8000f5
Output for 5.4.4, 5.5.25
539ef0f8000ad
Output for 5.5.23
539ef0f8000d1
Output for 5.5.22
539ef0f80010d
Output for 5.5.21
539ef0f8000f6
Output for 5.5.20
539ef0f8000ac
Output for 5.5.19
539ef0f8000c3
Output for 5.5.17
539ef0f800101
Output for 5.5.16
539ef0f8000c8
Output for 5.5.15
539ef0f800119
Output for 5.4.11, 5.5.14
539ef0f8000d9
Output for 5.5.13
539ef0f8000f7
Output for 5.5.7 - 5.5.8
539ef0f8000e2
Output for 5.5.6
539ef0f80010e
Output for 5.5.5
539ef0f800117
Output for 5.5.4
539ef0f8000be
Output for 5.5.3
539ef0f80011b
Output for 5.4.34, 5.5.2
539ef0f8000bc
Output for 5.4.20, 5.4.42, 5.5.0
539ef0f8000d5
Output for 5.4.45
539ef0f8000f8
Output for 5.4.14, 5.4.44
539ef0f8000e9
Output for 5.4.28, 5.4.35, 5.4.40
539ef0f800103
Output for 5.4.39
539ef0f8000ab
Output for 5.4.38
539ef0f8000c4
Output for 5.4.36
539ef0f800129
Output for 5.4.33
539ef0f800121
Output for 5.4.30
539ef0f800124
Output for 5.4.29
539ef0f800108
Output for 5.4.26
539ef0f8000f4
Output for 5.4.24
539ef0f800113
Output for 5.4.23
539ef0f8000e4
Output for 5.4.22
539ef0f8000aa
Output for 5.4.21
539ef0f8000bf
Output for 5.4.18
539ef0f800115
Output for 5.4.17
539ef0f8000eb
Output for 5.4.15
539ef0f8000ee
Output for 5.4.12
539ef0f800189
Output for 5.4.10
539ef0f8000d0
Output for 5.4.8
539ef0f8000d4
Output for 5.4.6
539ef0f80012e
Output for 5.4.3
539ef0f800104
Output for 5.4.2
539ef0f80010f
Output for 5.4.1
539ef0f8000e0
Output for 5.4.0
539ef0f800148
Output for 5.3.0 - 5.3.29
539ef0f800064
Output for 5.2.17
539ef0f80072e
Output for 5.2.16
539ef0f8006b3
Output for 5.2.15
539ef0f800727
Output for 5.2.14
539ef0f80066c
Output for 5.2.13
539ef0f800684
Output for 5.2.12
539ef0f800510
Output for 5.2.11
539ef0f800706
Output for 5.2.10
539ef0f800662
Output for 5.2.9
539ef0f80071c
Output for 5.2.8
539ef0f80071a
Output for 5.2.7
539ef0f8006c7
Output for 5.2.6
539ef0f80061f
Output for 5.2.5
539ef0f800742
Output for 5.2.4
539ef0f80076f
Output for 5.2.3
539ef0f800795
Output for 5.1.4, 5.2.2
539ef0f800573
Output for 5.2.1
539ef0f8005aa
Output for 5.2.0
539ef0f80082f
Output for 5.1.6
539ef0f8006b8
Output for 5.1.5
539ef0f800794
Output for 5.1.3
539ef0f80074b
Output for 5.1.2
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/oTSVq on line 5 539ef0f800696
Output for 5.1.1
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/oTSVq on line 5 539ef0f8003da
Output for 5.1.0
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/oTSVq on line 5 539ef0f80054c
Output for 5.0.5
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/oTSVq on line 5 539ef0f800331
Output for 5.0.4
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/oTSVq on line 5 539ef0f80032c
Output for 5.0.3
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/oTSVq on line 5 539ef0f800281
Output for 5.0.2
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/oTSVq on line 5 539ef0f80032e
Output for 5.0.1
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/oTSVq on line 5 539ef0f800215
Output for 5.0.0
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/oTSVq on line 5 539ef0f8002bd
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9
Warning: uniqid() expects at least 1 parameter, 0 given in /in/oTSVq on line 9

preferences:
187.51 ms | 402 KiB | 325 Q