3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { var $boo; function Foo() { $this->boo = uniqid(); } function go() { echo $this->boo; } } $a = new Foo(); $a->go();
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 539ef0f801081
Output for 7.0.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 539ef0f800f4e
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 539ef0f800cfa
Output for 7.0.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 539ef0f800c9b
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 539ef0f800cff
Output for 7.0.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 539ef0f800cea
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 539ef0f800dad
Output for 7.0.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 539ef0f800bd3
Output for 7.0.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 539ef0f800f2b
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 539ef0f801079
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 539ef0f800c9d
Output for 7.0.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 539ef0f800cf7
Output for 7.0.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 539ef0f800cf3
Output for hhvm-3.12.0
539ef0f827a68
Output for hhvm-3.10.0
539ef0f826cab
Output for 5.6.28
539ef0f80121b
Output for 5.6.25
539ef0f8013f8
Output for 5.6.24
539ef0f80135c
Output for 5.6.23
539ef0f801391
Output for 5.6.1, 5.6.22
539ef0f801250
Output for 5.6.21
539ef0f801106
Output for 5.6.20
539ef0f800bb1
Output for 5.6.19
539ef0f801289
Output for 5.6.18
539ef0f801261
Output for 5.5.13, 5.6.17
539ef0f8011ca
Output for 5.6.16
539ef0f800efa
Output for 5.6.15
539ef0f800f7c
Output for 5.6.14
539ef0f800b68
Output for 5.6.13
539ef0f801245
Output for 5.6.12
539ef0f800bee
Output for 5.6.11
539ef0f801040
Output for 5.6.10
539ef0f800f7e
Output for 5.6.9
539ef0f800eff
Output for 5.6.8
539ef0f800edb
Output for 5.6.7
539ef0f800d0a
Output for 5.6.6
539ef0f800fcd
Output for 5.6.5
539ef0f80133e
Output for 5.6.4
539ef0f8016f7
Output for 5.5.36, 5.6.3
539ef0f801293
Output for 5.5.37, 5.6.2
539ef0f80119f
Output for 5.6.0
539ef0f800d35
Output for 5.5.38
539ef0f800d8d
Output for 5.5.35
539ef0f8013e3
Output for 5.5.34
539ef0f800b2d
Output for 5.5.33
539ef0f8010cb
Output for 5.5.32
539ef0f801299
Output for 5.5.31
539ef0f80123c
Output for 5.5.30
539ef0f800cec
Output for 5.5.29
539ef0f80111b
Output for 5.5.28
539ef0f8011df
Output for 5.4.20, 5.5.27
539ef0f8010c9
Output for 5.5.26
539ef0f80177f
Output for 5.5.25
539ef0f8017cf
Output for 5.5.24
539ef0f800fc3
Output for 5.5.23
539ef0f800f4f
Output for 5.5.22
539ef0f800f1b
Output for 5.5.21
539ef0f801303
Output for 5.5.11, 5.5.20
539ef0f801048
Output for 5.5.19
539ef0f800bc1
Output for 5.5.18
539ef0f800ed3
Output for 5.5.16
539ef0f800ba4
Output for 5.5.15
539ef0f80112e
Output for 5.5.14
539ef0f8012e0
Output for 5.5.12
539ef0f801176
Output for 5.5.10
539ef0f800a59
Output for 5.5.9
539ef0f800c04
Output for 5.5.8
539ef0f80108a
Output for 5.5.7
539ef0f801214
Output for 5.5.6
539ef0f8012f6
Output for 5.5.5
539ef0f800e63
Output for 5.5.4
539ef0f800df7
Output for 5.5.3
539ef0f8010cd
Output for 5.5.2
539ef0f8012c2
Output for 5.5.1
539ef0f800f13
Output for 5.5.0
539ef0f801435
Output for 5.4.45
539ef0f8010b4
Output for 5.4.44
539ef0f801008
Output for 5.4.43
539ef0f801023
Output for 5.4.42
539ef0f800f8e
Output for 5.4.41
539ef0f800d7c
Output for 5.4.40
539ef0f800dc0
Output for 5.4.39
539ef0f8010b7
Output for 5.4.38
539ef0f800d5a
Output for 5.4.37
539ef0f801034
Output for 5.4.36
539ef0f800de2
Output for 5.4.35
539ef0f801022
Output for 5.4.34
539ef0f800dc3
Output for 5.4.32
539ef0f800dcf
Output for 5.4.31
539ef0f800ea6
Output for 5.4.30
539ef0f8011ab
Output for 5.4.29
539ef0f800c0d
Output for 5.4.28
539ef0f800baf
Output for 5.4.27
539ef0f800b3b
Output for 5.4.26
539ef0f800f6a
Output for 5.4.25
539ef0f800efc
Output for 5.4.24
539ef0f800ed4
Output for 5.4.23
539ef0f800a12
Output for 5.4.22
539ef0f800d12
Output for 5.4.21
539ef0f80108f
Output for 5.4.19
539ef0f800b0b
Output for 5.4.18
539ef0f800f9d
Output for 5.4.17
539ef0f800ada
Output for 5.4.16
539ef0f800fab
Output for 5.4.15
539ef0f800b52
Output for 5.4.14
539ef0f8007e1
Output for 5.4.13
539ef0f800923
Output for 5.3.4, 5.4.12
539ef0f8008a7
Output for 5.4.11
539ef0f8009ae
Output for 5.4.10
539ef0f800908
Output for 5.4.9
539ef0f800905
Output for 5.4.8
539ef0f800b14
Output for 5.4.7
539ef0f800625
Output for 5.4.6
539ef0f8009b8
Output for 5.4.5
539ef0f8007e6
Output for 5.4.4
539ef0f8006d2
Output for 5.4.3
539ef0f8009bf
Output for 5.4.2
539ef0f8008c5
Output for 5.4.1
539ef0f8008d5
Output for 5.4.0
539ef0f8008bc
Output for 5.3.29
539ef0f8009b1
Output for 5.3.28
539ef0f80085b
Output for 5.3.27
539ef0f80082b
Output for 5.3.26
539ef0f80085d
Output for 5.3.25
539ef0f8007ab
Output for 5.3.24
539ef0f8009d2
Output for 5.3.23
539ef0f80079e
Output for 5.3.22
539ef0f8018f4
Output for 5.3.21
539ef0f8009b0
Output for 5.3.20
539ef0f800889
Output for 5.3.19
539ef0f80096f
Output for 5.3.18
539ef0f800643
Output for 5.3.17
539ef0f800956
Output for 5.3.16
539ef0f80088e
Output for 5.3.15
539ef0f800950
Output for 5.3.14
539ef0f8005cc
Output for 5.3.13
539ef0f800769
Output for 5.3.12
539ef0f800887
Output for 5.3.11
539ef0f8008b6
Output for 5.3.10
539ef0f800930
Output for 5.3.9
539ef0f80060f
Output for 5.3.8
539ef0f8007ca
Output for 5.3.7
539ef0f80068d
Output for 5.3.6
539ef0f800941
Output for 5.3.5
539ef0f800811
Output for 5.3.3
539ef0f800801
Output for 5.3.2
539ef0f800750
Output for 5.3.1
539ef0f80093f
Output for 5.3.0
539ef0f8008ad
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.4.9
Warning: uniqid() expects at least 1 parameter, 0 given in /in/oTSVq on line 9