3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { } var_dump( get_class(new class implements Foo {}), get_class(new class implements Foo {}) );
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.26, 8.3.0 - 8.3.14, 8.4.1 - 8.4.2
string(27) "Foo@anonymous/in/s6fm1:8$0" string(27) "Foo@anonymous/in/s6fm1:9$1"
Output for 7.4.3 - 7.4.33
string(29) "class@anonymous/in/s6fm1:8$0" string(29) "class@anonymous/in/s6fm1:9$1"
Output for 7.4.0
string(39) "class@anonymous/in/s6fm10x7f5cc807a04c" string(39) "class@anonymous/in/s6fm10x7f5cc807a078"
Output for 7.3.33
string(39) "class@anonymous/in/s6fm10x7fa199abd04c" string(39) "class@anonymous/in/s6fm10x7fa199abd078"
Output for 7.3.32
string(39) "class@anonymous/in/s6fm10x7f7df9c1804c" string(39) "class@anonymous/in/s6fm10x7f7df9c18078"
Output for 7.3.31
string(39) "class@anonymous/in/s6fm10x7f64d926d04c" string(39) "class@anonymous/in/s6fm10x7f64d926d078"
Output for 7.3.30
string(39) "class@anonymous/in/s6fm10x7fd59ede604c" string(39) "class@anonymous/in/s6fm10x7fd59ede6078"
Output for 7.3.29
string(39) "class@anonymous/in/s6fm10x7f8d781af04c" string(39) "class@anonymous/in/s6fm10x7f8d781af078"
Output for 7.3.28
string(39) "class@anonymous/in/s6fm10x7fcf58fd104c" string(39) "class@anonymous/in/s6fm10x7fcf58fd1078"
Output for 7.3.27
string(39) "class@anonymous/in/s6fm10x7f8ea435f04c" string(39) "class@anonymous/in/s6fm10x7f8ea435f078"
Output for 7.3.26
string(39) "class@anonymous/in/s6fm10x7ff5e35b404c" string(39) "class@anonymous/in/s6fm10x7ff5e35b4078"
Output for 7.3.25
string(39) "class@anonymous/in/s6fm10x7f2e1908004c" string(39) "class@anonymous/in/s6fm10x7f2e19080078"
Output for 7.3.24
string(39) "class@anonymous/in/s6fm10x7f1e67e9804c" string(39) "class@anonymous/in/s6fm10x7f1e67e98078"
Output for 7.3.23
string(39) "class@anonymous/in/s6fm10x7f3ba790204c" string(39) "class@anonymous/in/s6fm10x7f3ba7902078"
Output for 7.3.21
string(39) "class@anonymous/in/s6fm10x7fb60da8304c" string(39) "class@anonymous/in/s6fm10x7fb60da83078"
Output for 7.3.20
string(39) "class@anonymous/in/s6fm10x7fd2fd8e004c" string(39) "class@anonymous/in/s6fm10x7fd2fd8e0078"
Output for 7.3.19
string(39) "class@anonymous/in/s6fm10x7fb4c9f0604c" string(39) "class@anonymous/in/s6fm10x7fb4c9f06078"
Output for 7.3.18
string(39) "class@anonymous/in/s6fm10x7fcb3943a04c" string(39) "class@anonymous/in/s6fm10x7fcb3943a078"
Output for 7.3.17
string(39) "class@anonymous/in/s6fm10x7f279261304c" string(39) "class@anonymous/in/s6fm10x7f2792613078"
Output for 7.3.16
string(39) "class@anonymous/in/s6fm10x7f838c99504c" string(39) "class@anonymous/in/s6fm10x7f838c995078"
Output for 7.3.12
string(39) "class@anonymous/in/s6fm10x7f8a57f8304c" string(39) "class@anonymous/in/s6fm10x7f8a57f83078"
Output for 7.3.11
string(39) "class@anonymous/in/s6fm10x7f23a11cf04c" string(39) "class@anonymous/in/s6fm10x7f23a11cf078"
Output for 7.3.10
string(39) "class@anonymous/in/s6fm10x7ff66371d04c" string(39) "class@anonymous/in/s6fm10x7ff66371d078"
Output for 7.3.9
string(39) "class@anonymous/in/s6fm10x7f3ac380704c" string(39) "class@anonymous/in/s6fm10x7f3ac3807078"
Output for 7.3.8
string(39) "class@anonymous/in/s6fm10x7f2ac44a604c" string(39) "class@anonymous/in/s6fm10x7f2ac44a6078"
Output for 7.3.7
string(39) "class@anonymous/in/s6fm10x7f2a305d604c" string(39) "class@anonymous/in/s6fm10x7f2a305d6078"
Output for 7.3.6
string(39) "class@anonymous/in/s6fm10x7f966cc1c04c" string(39) "class@anonymous/in/s6fm10x7f966cc1c078"
Output for 7.3.5
string(39) "class@anonymous/in/s6fm10x7f2a5333e04c" string(39) "class@anonymous/in/s6fm10x7f2a5333e078"
Output for 7.3.4
string(39) "class@anonymous/in/s6fm10x7ffa7f43d04c" string(39) "class@anonymous/in/s6fm10x7ffa7f43d078"
Output for 7.3.3
string(39) "class@anonymous/in/s6fm10x7f51a7f3a04c" string(39) "class@anonymous/in/s6fm10x7f51a7f3a078"
Output for 7.3.2
string(39) "class@anonymous/in/s6fm10x7f5bbbc0404c" string(39) "class@anonymous/in/s6fm10x7f5bbbc04078"
Output for 7.3.1
string(39) "class@anonymous/in/s6fm10x7fb2d5bf904c" string(39) "class@anonymous/in/s6fm10x7fb2d5bf9078"
Output for 7.3.0
string(39) "class@anonymous/in/s6fm10x7f8e4efd504c" string(39) "class@anonymous/in/s6fm10x7f8e4efd5078"
Output for 7.2.33
string(39) "class@anonymous/in/s6fm10x7f89332de04c" string(39) "class@anonymous/in/s6fm10x7f89332de078"
Output for 7.2.32
string(39) "class@anonymous/in/s6fm10x7f25e301504c" string(39) "class@anonymous/in/s6fm10x7f25e3015078"
Output for 7.2.31
string(39) "class@anonymous/in/s6fm10x7f947870104c" string(39) "class@anonymous/in/s6fm10x7f9478701078"
Output for 7.2.30
string(39) "class@anonymous/in/s6fm10x7f29f521104c" string(39) "class@anonymous/in/s6fm10x7f29f5211078"
Output for 7.2.29
string(39) "class@anonymous/in/s6fm10x7f318a7ca04c" string(39) "class@anonymous/in/s6fm10x7f318a7ca078"
Output for 7.2.25
string(39) "class@anonymous/in/s6fm10x7f5c71fb504c" string(39) "class@anonymous/in/s6fm10x7f5c71fb5078"
Output for 7.2.24
string(39) "class@anonymous/in/s6fm10x7f6e28e9f04c" string(39) "class@anonymous/in/s6fm10x7f6e28e9f078"
Output for 7.2.23
string(39) "class@anonymous/in/s6fm10x7f5c9c54b04c" string(39) "class@anonymous/in/s6fm10x7f5c9c54b078"
Output for 7.2.22
string(39) "class@anonymous/in/s6fm10x7f06240e804c" string(39) "class@anonymous/in/s6fm10x7f06240e8078"
Output for 7.2.21
string(39) "class@anonymous/in/s6fm10x7f2de49d804c" string(39) "class@anonymous/in/s6fm10x7f2de49d8078"
Output for 7.2.20
string(39) "class@anonymous/in/s6fm10x7f04f4ef104c" string(39) "class@anonymous/in/s6fm10x7f04f4ef1078"
Output for 7.2.19
string(39) "class@anonymous/in/s6fm10x7f5b6d04504c" string(39) "class@anonymous/in/s6fm10x7f5b6d045078"
Output for 7.2.18
string(39) "class@anonymous/in/s6fm10x7fa9cfc5c04c" string(39) "class@anonymous/in/s6fm10x7fa9cfc5c078"
Output for 7.2.17
string(39) "class@anonymous/in/s6fm10x7f9a8da9104c" string(39) "class@anonymous/in/s6fm10x7f9a8da91078"
Output for 7.2.16
string(39) "class@anonymous/in/s6fm10x7f044783604c" string(39) "class@anonymous/in/s6fm10x7f0447836078"
Output for 7.2.15
string(39) "class@anonymous/in/s6fm10x7fe3ca04004c" string(39) "class@anonymous/in/s6fm10x7fe3ca040078"
Output for 7.2.14
string(39) "class@anonymous/in/s6fm10x7f41f91c004c" string(39) "class@anonymous/in/s6fm10x7f41f91c0078"
Output for 7.2.13
string(39) "class@anonymous/in/s6fm10x7f677c79d04c" string(39) "class@anonymous/in/s6fm10x7f677c79d078"
Output for 7.2.12
string(39) "class@anonymous/in/s6fm10x7fc432c4504c" string(39) "class@anonymous/in/s6fm10x7fc432c45078"
Output for 7.2.11
string(39) "class@anonymous/in/s6fm10x7f4f1bcd904c" string(39) "class@anonymous/in/s6fm10x7f4f1bcd9078"
Output for 7.2.10
string(39) "class@anonymous/in/s6fm10x7fe9bdd6104c" string(39) "class@anonymous/in/s6fm10x7fe9bdd61078"
Output for 7.2.9
string(39) "class@anonymous/in/s6fm10x7f9a1209f04c" string(39) "class@anonymous/in/s6fm10x7f9a1209f078"
Output for 7.2.8
string(39) "class@anonymous/in/s6fm10x7fe69b4c404c" string(39) "class@anonymous/in/s6fm10x7fe69b4c4078"
Output for 7.2.7
string(39) "class@anonymous/in/s6fm10x7fb41f49e04c" string(39) "class@anonymous/in/s6fm10x7fb41f49e078"
Output for 7.2.6
string(39) "class@anonymous/in/s6fm10x7f4a04a6d04c" string(39) "class@anonymous/in/s6fm10x7f4a04a6d078"
Output for 7.2.5
string(39) "class@anonymous/in/s6fm10x7effa115104c" string(39) "class@anonymous/in/s6fm10x7effa1151078"
Output for 7.2.4
string(39) "class@anonymous/in/s6fm10x7fafe2acf04c" string(39) "class@anonymous/in/s6fm10x7fafe2acf078"
Output for 7.2.3
string(39) "class@anonymous/in/s6fm10x7fc258d9a04c" string(39) "class@anonymous/in/s6fm10x7fc258d9a078"
Output for 7.2.2
string(39) "class@anonymous/in/s6fm10x7f681dc0904c" string(39) "class@anonymous/in/s6fm10x7f681dc09078"
Output for 7.2.1
string(39) "class@anonymous/in/s6fm10x7f5f54b6504c" string(39) "class@anonymous/in/s6fm10x7f5f54b65078"
Output for 7.2.0
string(39) "class@anonymous/in/s6fm10x7f1ab5f9b04c" string(39) "class@anonymous/in/s6fm10x7f1ab5f9b078"
Output for 7.1.33
string(39) "class@anonymous/in/s6fm10x7f8a02ade04c" string(39) "class@anonymous/in/s6fm10x7f8a02ade078"
Output for 7.1.32
string(39) "class@anonymous/in/s6fm10x7f3e6650604c" string(39) "class@anonymous/in/s6fm10x7f3e66506078"
Output for 7.1.31
string(39) "class@anonymous/in/s6fm10x7f1ffc7f804c" string(39) "class@anonymous/in/s6fm10x7f1ffc7f8078"
Output for 7.1.30
string(39) "class@anonymous/in/s6fm10x7f5c094f304c" string(39) "class@anonymous/in/s6fm10x7f5c094f3078"
Output for 7.1.29
string(39) "class@anonymous/in/s6fm10x7f1039a0404c" string(39) "class@anonymous/in/s6fm10x7f1039a04078"
Output for 7.1.28
string(39) "class@anonymous/in/s6fm10x7f7f3940e04c" string(39) "class@anonymous/in/s6fm10x7f7f3940e078"
Output for 7.1.27
string(39) "class@anonymous/in/s6fm10x7ff5eaadf04c" string(39) "class@anonymous/in/s6fm10x7ff5eaadf078"
Output for 7.1.26
string(39) "class@anonymous/in/s6fm10x7f619861c04c" string(39) "class@anonymous/in/s6fm10x7f619861c078"
Output for 7.1.25
string(39) "class@anonymous/in/s6fm10x7f5d91f3704c" string(39) "class@anonymous/in/s6fm10x7f5d91f37078"
Output for 7.1.24
string(39) "class@anonymous/in/s6fm10x7f1627a2304c" string(39) "class@anonymous/in/s6fm10x7f1627a23078"
Output for 7.1.23
string(39) "class@anonymous/in/s6fm10x7f4316ed804c" string(39) "class@anonymous/in/s6fm10x7f4316ed8078"
Output for 7.1.22
string(39) "class@anonymous/in/s6fm10x7f194285504c" string(39) "class@anonymous/in/s6fm10x7f1942855078"
Output for 7.1.21
string(39) "class@anonymous/in/s6fm10x7f1891f6304c" string(39) "class@anonymous/in/s6fm10x7f1891f63078"
Output for 7.1.20
string(39) "class@anonymous/in/s6fm10x7fdb92b2b04c" string(39) "class@anonymous/in/s6fm10x7fdb92b2b078"
Output for 7.1.19
string(39) "class@anonymous/in/s6fm10x7f6ae27cb04c" string(39) "class@anonymous/in/s6fm10x7f6ae27cb078"
Output for 7.1.18
string(39) "class@anonymous/in/s6fm10x7f4aa8b1d04c" string(39) "class@anonymous/in/s6fm10x7f4aa8b1d078"
Output for 7.1.17
string(39) "class@anonymous/in/s6fm10x7fd454d8704c" string(39) "class@anonymous/in/s6fm10x7fd454d87078"
Output for 7.1.16
string(39) "class@anonymous/in/s6fm10x7ff1ec03b04c" string(39) "class@anonymous/in/s6fm10x7ff1ec03b078"
Output for 7.1.15
string(39) "class@anonymous/in/s6fm10x7fb70694c04c" string(39) "class@anonymous/in/s6fm10x7fb70694c078"
Output for 7.1.14
string(39) "class@anonymous/in/s6fm10x7f53bf91904c" string(39) "class@anonymous/in/s6fm10x7f53bf919078"
Output for 7.1.13
string(39) "class@anonymous/in/s6fm10x7f4f1b9f704c" string(39) "class@anonymous/in/s6fm10x7f4f1b9f7078"
Output for 7.1.12
string(39) "class@anonymous/in/s6fm10x7effb007a04c" string(39) "class@anonymous/in/s6fm10x7effb007a078"
Output for 7.1.11
string(39) "class@anonymous/in/s6fm10x7f3809da904c" string(39) "class@anonymous/in/s6fm10x7f3809da9078"
Output for 7.1.10
string(39) "class@anonymous/in/s6fm10x7f3c0d79c04c" string(39) "class@anonymous/in/s6fm10x7f3c0d79c078"
Output for 7.1.9
string(39) "class@anonymous/in/s6fm10x7fc03882f04c" string(39) "class@anonymous/in/s6fm10x7fc03882f078"
Output for 7.1.8
string(39) "class@anonymous/in/s6fm10x7fdbc1dd704c" string(39) "class@anonymous/in/s6fm10x7fdbc1dd7078"
Output for 7.1.7
string(39) "class@anonymous/in/s6fm10x7f790d33604c" string(39) "class@anonymous/in/s6fm10x7f790d336078"
Output for 7.1.6
string(39) "class@anonymous/in/s6fm10x7fc6a8e4004c" string(39) "class@anonymous/in/s6fm10x7fc6a8e40078"
Output for 7.1.5
string(39) "class@anonymous/in/s6fm10x7f8ed71a704c" string(39) "class@anonymous/in/s6fm10x7f8ed71a7078"
Output for 7.1.4
string(39) "class@anonymous/in/s6fm10x7f24b072e04c" string(39) "class@anonymous/in/s6fm10x7f24b072e078"
Output for 7.1.3
string(39) "class@anonymous/in/s6fm10x7f5ddac7304c" string(39) "class@anonymous/in/s6fm10x7f5ddac73078"
Output for 7.1.2
string(39) "class@anonymous/in/s6fm10x7f570f20704c" string(39) "class@anonymous/in/s6fm10x7f570f207078"
Output for 7.1.1
string(39) "class@anonymous/in/s6fm10x7fa0bd61f04c" string(39) "class@anonymous/in/s6fm10x7fa0bd61f078"
Output for 7.1.0
string(39) "class@anonymous/in/s6fm10x7feac0a2904c" string(39) "class@anonymous/in/s6fm10x7feac0a29078"
Output for 7.0.33
string(39) "class@anonymous/in/s6fm10x7f34880d404c" string(39) "class@anonymous/in/s6fm10x7f34880d4078"
Output for 7.0.32
string(39) "class@anonymous/in/s6fm10x7fe74812d04c" string(39) "class@anonymous/in/s6fm10x7fe74812d078"
Output for 7.0.31
string(39) "class@anonymous/in/s6fm10x7f3b9777304c" string(39) "class@anonymous/in/s6fm10x7f3b97773078"
Output for 7.0.30
string(39) "class@anonymous/in/s6fm10x7f2da37ae04c" string(39) "class@anonymous/in/s6fm10x7f2da37ae078"
Output for 7.0.29
string(39) "class@anonymous/in/s6fm10x7fa92c30604c" string(39) "class@anonymous/in/s6fm10x7fa92c306078"
Output for 7.0.28
string(39) "class@anonymous/in/s6fm10x7fa62abff04c" string(39) "class@anonymous/in/s6fm10x7fa62abff078"
Output for 7.0.27
string(39) "class@anonymous/in/s6fm10x7f9ddefbf04c" string(39) "class@anonymous/in/s6fm10x7f9ddefbf078"
Output for 7.0.26
string(39) "class@anonymous/in/s6fm10x7f56a6d2704c" string(39) "class@anonymous/in/s6fm10x7f56a6d27078"
Output for 7.0.25
string(39) "class@anonymous/in/s6fm10x7f24875a304c" string(39) "class@anonymous/in/s6fm10x7f24875a3078"
Output for 7.0.24
string(39) "class@anonymous/in/s6fm10x7fa2e2b6d04c" string(39) "class@anonymous/in/s6fm10x7fa2e2b6d078"
Output for 7.0.23
string(39) "class@anonymous/in/s6fm10x7f1a79e3d04c" string(39) "class@anonymous/in/s6fm10x7f1a79e3d078"
Output for 7.0.22
string(39) "class@anonymous/in/s6fm10x7f2e5acd104c" string(39) "class@anonymous/in/s6fm10x7f2e5acd1078"
Output for 7.0.21
string(39) "class@anonymous/in/s6fm10x7f2a05ee604c" string(39) "class@anonymous/in/s6fm10x7f2a05ee6078"
Output for 7.0.20
string(39) "class@anonymous/in/s6fm10x7f1f69b4304c" string(39) "class@anonymous/in/s6fm10x7f1f69b43078"
Output for 7.0.19
string(39) "class@anonymous/in/s6fm10x7f5678c0d04c" string(39) "class@anonymous/in/s6fm10x7f5678c0d078"
Output for 7.0.18
string(39) "class@anonymous/in/s6fm10x7f02c0cd104c" string(39) "class@anonymous/in/s6fm10x7f02c0cd1078"
Output for 7.0.17
string(39) "class@anonymous/in/s6fm10x7f4b0177704c" string(39) "class@anonymous/in/s6fm10x7f4b01777078"
Output for 7.0.16
string(39) "class@anonymous/in/s6fm10x7f88165f504c" string(39) "class@anonymous/in/s6fm10x7f88165f5078"
Output for 7.0.15
string(39) "class@anonymous/in/s6fm10x7f5e9cfe204c" string(39) "class@anonymous/in/s6fm10x7f5e9cfe2078"
Output for 7.0.14
string(39) "class@anonymous/in/s6fm10x7fac18ae704c" string(39) "class@anonymous/in/s6fm10x7fac18ae7078"
Output for 7.0.13
string(39) "class@anonymous/in/s6fm10x7fe27ade504c" string(39) "class@anonymous/in/s6fm10x7fe27ade5078"
Output for 7.0.12
string(39) "class@anonymous/in/s6fm10x7f7fc8a8504c" string(39) "class@anonymous/in/s6fm10x7f7fc8a85078"
Output for 7.0.11
string(39) "class@anonymous/in/s6fm10x7f7f7490604c" string(39) "class@anonymous/in/s6fm10x7f7f74906078"
Output for 7.0.10
string(39) "class@anonymous/in/s6fm10x7f75cb8f104c" string(39) "class@anonymous/in/s6fm10x7f75cb8f1078"
Output for 7.0.9
string(39) "class@anonymous/in/s6fm10x7fe1aeca204c" string(39) "class@anonymous/in/s6fm10x7fe1aeca2078"
Output for 7.0.8
string(39) "class@anonymous/in/s6fm10x7f2f4504004c" string(39) "class@anonymous/in/s6fm10x7f2f45040078"
Output for 7.0.7
string(39) "class@anonymous/in/s6fm10x7fe59ae1e04c" string(39) "class@anonymous/in/s6fm10x7fe59ae1e078"
Output for 7.0.6
string(39) "class@anonymous/in/s6fm10x7fe293c5704c" string(39) "class@anonymous/in/s6fm10x7fe293c57078"
Output for 7.0.5
string(39) "class@anonymous/in/s6fm10x7fe98abab04c" string(39) "class@anonymous/in/s6fm10x7fe98abab078"
Output for 7.0.4
string(39) "class@anonymous/in/s6fm10x7f5c860ce04c" string(39) "class@anonymous/in/s6fm10x7f5c860ce078"
Output for 7.0.3
string(39) "class@anonymous/in/s6fm10x7f9ab959704c" string(39) "class@anonymous/in/s6fm10x7f9ab9597078"
Output for 7.0.2
string(39) "class@anonymous/in/s6fm10x7f3c6ab9e04c" string(39) "class@anonymous/in/s6fm10x7f3c6ab9e078"
Output for 7.0.1
string(39) "class@anonymous/in/s6fm10x7fab1ce7904c" string(39) "class@anonymous/in/s6fm10x7fab1ce79078"
Output for 7.0.0
string(39) "class@anonymous/in/s6fm10x7fc80f08604c" string(39) "class@anonymous/in/s6fm10x7fc80f086078"
Output for 5.6.0 - 5.6.40
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/s6fm1 on line 8
Process exited with code 255.

preferences:
52.45 ms | 610 KiB | 5 Q