3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { function __call($strMethod, $arrArgs) { return "PHP " .phpversion(); } } class B extends A { function getVersion() { return parent::getVersion() . " Rocks!"; } } $A = new A(); echo $A->getVersion() . "<br/>"; $B = new B(); echo $B->getVersion() . "<br/>"; ?>
based on HPRX0
Output for 7.1.0
PHP 7.1.0<br/>PHP 7.1.0 Rocks!<br/>
Output for 7.0.14
PHP 7.0.14<br/>PHP 7.0.14 Rocks!<br/>
Output for 7.0.6
PHP 7.0.6<br/>PHP 7.0.6 Rocks!<br/>
Output for 7.0.5
PHP 7.0.5<br/>PHP 7.0.5 Rocks!<br/>
Output for 7.0.4
PHP 7.0.4<br/>PHP 7.0.4 Rocks!<br/>
Output for 7.0.3
PHP 7.0.3<br/>PHP 7.0.3 Rocks!<br/>
Output for 7.0.2
PHP 7.0.2<br/>PHP 7.0.2 Rocks!<br/>
Output for 7.0.1
PHP 7.0.1<br/>PHP 7.0.1 Rocks!<br/>
Output for 7.0.0
PHP 7.0.0<br/>PHP 7.0.0 Rocks!<br/>
Output for 5.6.28
PHP 5.6.28<br/>PHP 5.6.28 Rocks!<br/>
Output for 5.6.21
PHP 5.6.21<br/>PHP 5.6.21 Rocks!<br/>
Output for 5.6.20
PHP 5.6.20<br/>PHP 5.6.20 Rocks!<br/>
Output for 5.6.19
PHP 5.6.19<br/>PHP 5.6.19 Rocks!<br/>
Output for 5.6.18
PHP 5.6.18<br/>PHP 5.6.18 Rocks!<br/>
Output for 5.6.17
PHP 5.6.17<br/>PHP 5.6.17 Rocks!<br/>
Output for 5.6.16
PHP 5.6.16<br/>PHP 5.6.16 Rocks!<br/>
Output for 5.6.15
PHP 5.6.15<br/>PHP 5.6.15 Rocks!<br/>
Output for 5.6.14
PHP 5.6.14<br/>PHP 5.6.14 Rocks!<br/>
Output for 5.6.13
PHP 5.6.13<br/>PHP 5.6.13 Rocks!<br/>
Output for 5.6.12
PHP 5.6.12<br/>PHP 5.6.12 Rocks!<br/>
Output for 5.6.11
PHP 5.6.11<br/>PHP 5.6.11 Rocks!<br/>
Output for 5.6.10
PHP 5.6.10<br/>PHP 5.6.10 Rocks!<br/>
Output for 5.6.9
PHP 5.6.9<br/>PHP 5.6.9 Rocks!<br/>
Output for 5.6.8
PHP 5.6.8<br/>PHP 5.6.8 Rocks!<br/>
Output for 5.6.7
PHP 5.6.7<br/>PHP 5.6.7 Rocks!<br/>
Output for 5.5.35
PHP 5.5.35<br/>PHP 5.5.35 Rocks!<br/>
Output for 5.5.34
PHP 5.5.34<br/>PHP 5.5.34 Rocks!<br/>
Output for 5.5.33
PHP 5.5.33<br/>PHP 5.5.33 Rocks!<br/>
Output for 5.5.32
PHP 5.5.32<br/>PHP 5.5.32 Rocks!<br/>
Output for 5.5.31
PHP 5.5.31<br/>PHP 5.5.31 Rocks!<br/>
Output for 5.5.30
PHP 5.5.30<br/>PHP 5.5.30 Rocks!<br/>
Output for 5.5.29
PHP 5.5.29<br/>PHP 5.5.29 Rocks!<br/>
Output for 5.5.28
PHP 5.5.28<br/>PHP 5.5.28 Rocks!<br/>
Output for 5.5.27
PHP 5.5.27<br/>PHP 5.5.27 Rocks!<br/>
Output for 5.5.26
PHP 5.5.26<br/>PHP 5.5.26 Rocks!<br/>
Output for 5.5.25
PHP 5.5.25<br/>PHP 5.5.25 Rocks!<br/>
Output for 5.5.24
PHP 5.5.24<br/>PHP 5.5.24 Rocks!<br/>
Output for 5.4.45
PHP 5.4.45<br/>PHP 5.4.45 Rocks!<br/>
Output for 5.4.44
PHP 5.4.44<br/>PHP 5.4.44 Rocks!<br/>
Output for 5.4.43
PHP 5.4.43<br/>PHP 5.4.43 Rocks!<br/>
Output for 5.4.42
PHP 5.4.42<br/>PHP 5.4.42 Rocks!<br/>
Output for 5.4.41
PHP 5.4.41<br/>PHP 5.4.41 Rocks!<br/>
Output for 5.4.40
PHP 5.4.40<br/>PHP 5.4.40 Rocks!<br/>
Output for 5.4.39
PHP 5.4.39<br/>PHP 5.4.39 Rocks!<br/>
Output for 5.4.38
PHP 5.4.38<br/>PHP 5.4.38 Rocks!<br/>
Output for 5.4.37
PHP 5.4.37<br/>PHP 5.4.37 Rocks!<br/>
Output for 5.4.36
PHP 5.4.36<br/>PHP 5.4.36 Rocks!<br/>
Output for 5.4.35
PHP 5.4.35<br/>PHP 5.4.35 Rocks!<br/>
Output for 5.4.34
PHP 5.4.34<br/>PHP 5.4.34 Rocks!<br/>
Output for 5.4.32
PHP 5.4.32<br/>PHP 5.4.32 Rocks!<br/>
Output for 5.4.31
PHP 5.4.31<br/>PHP 5.4.31 Rocks!<br/>
Output for 5.4.30
PHP 5.4.30<br/>PHP 5.4.30 Rocks!<br/>
Output for 5.4.29
PHP 5.4.29<br/>PHP 5.4.29 Rocks!<br/>
Output for 5.4.28
PHP 5.4.28<br/>PHP 5.4.28 Rocks!<br/>
Output for 5.4.27
PHP 5.4.27<br/>PHP 5.4.27 Rocks!<br/>
Output for 5.4.26
PHP 5.4.26<br/>PHP 5.4.26 Rocks!<br/>
Output for 5.4.25
PHP 5.4.25<br/>PHP 5.4.25 Rocks!<br/>
Output for 5.4.24
PHP 5.4.24<br/>PHP 5.4.24 Rocks!<br/>
Output for 5.4.23
PHP 5.4.23<br/>PHP 5.4.23 Rocks!<br/>
Output for 5.4.22
PHP 5.4.22<br/>PHP 5.4.22 Rocks!<br/>
Output for 5.4.21
PHP 5.4.21<br/>PHP 5.4.21 Rocks!<br/>
Output for 5.4.20
PHP 5.4.20<br/>PHP 5.4.20 Rocks!<br/>
Output for 5.4.19
PHP 5.4.19<br/>PHP 5.4.19 Rocks!<br/>
Output for 5.4.18
PHP 5.4.18<br/>PHP 5.4.18 Rocks!<br/>
Output for 5.4.17
PHP 5.4.17<br/>PHP 5.4.17 Rocks!<br/>
Output for 5.4.16
PHP 5.4.16<br/>PHP 5.4.16 Rocks!<br/>
Output for 5.4.15
PHP 5.4.15<br/>PHP 5.4.15 Rocks!<br/>
Output for 5.4.14
PHP 5.4.14<br/>PHP 5.4.14 Rocks!<br/>
Output for 5.4.13
PHP 5.4.13<br/>PHP 5.4.13 Rocks!<br/>
Output for 5.4.12
PHP 5.4.12<br/>PHP 5.4.12 Rocks!<br/>
Output for 5.4.11
PHP 5.4.11<br/>PHP 5.4.11 Rocks!<br/>
Output for 5.4.10
PHP 5.4.10<br/>PHP 5.4.10 Rocks!<br/>
Output for 5.4.9
PHP 5.4.9<br/>PHP 5.4.9 Rocks!<br/>
Output for 5.4.8
PHP 5.4.8<br/>PHP 5.4.8 Rocks!<br/>
Output for 5.4.7
PHP 5.4.7<br/>PHP 5.4.7 Rocks!<br/>
Output for 5.4.6
PHP 5.4.6<br/>PHP 5.4.6 Rocks!<br/>
Output for 5.4.5
PHP 5.4.5<br/>PHP 5.4.5 Rocks!<br/>
Output for 5.4.4
PHP 5.4.4<br/>PHP 5.4.4 Rocks!<br/>
Output for 5.4.3
PHP 5.4.3<br/>PHP 5.4.3 Rocks!<br/>
Output for 5.4.2
PHP 5.4.2<br/>PHP 5.4.2 Rocks!<br/>
Output for 5.4.1
PHP 5.4.1<br/>PHP 5.4.1 Rocks!<br/>
Output for 5.4.0
PHP 5.4.0<br/>PHP 5.4.0 Rocks!<br/>
Output for 5.3.29
PHP 5.3.29<br/>PHP 5.3.29 Rocks!<br/>
Output for 5.3.28
PHP 5.3.28<br/>PHP 5.3.28 Rocks!<br/>
Output for 5.3.27
PHP 5.3.27<br/>PHP 5.3.27 Rocks!<br/>
Output for 5.3.26
PHP 5.3.26<br/>PHP 5.3.26 Rocks!<br/>
Output for 5.3.25
PHP 5.3.25<br/>PHP 5.3.25 Rocks!<br/>
Output for 5.3.24
PHP 5.3.24<br/>PHP 5.3.24 Rocks!<br/>
Output for 5.3.23
PHP 5.3.23<br/>PHP 5.3.23 Rocks!<br/>
Output for 5.3.22
PHP 5.3.22<br/>PHP 5.3.22 Rocks!<br/>
Output for 5.3.21
PHP 5.3.21<br/>PHP 5.3.21 Rocks!<br/>
Output for 5.3.20
PHP 5.3.20<br/>PHP 5.3.20 Rocks!<br/>
Output for 5.3.19
PHP 5.3.19<br/>PHP 5.3.19 Rocks!<br/>
Output for 5.3.18
PHP 5.3.18<br/>PHP 5.3.18 Rocks!<br/>
Output for 5.3.17
PHP 5.3.17<br/>PHP 5.3.17 Rocks!<br/>
Output for 5.3.16
PHP 5.3.16<br/>PHP 5.3.16 Rocks!<br/>
Output for 5.3.15
PHP 5.3.15<br/>PHP 5.3.15 Rocks!<br/>
Output for 5.3.14
PHP 5.3.14<br/>PHP 5.3.14 Rocks!<br/>
Output for 5.3.13
PHP 5.3.13<br/>PHP 5.3.13 Rocks!<br/>
Output for 5.3.12
PHP 5.3.12<br/>PHP 5.3.12 Rocks!<br/>
Output for 5.3.11
PHP 5.3.11<br/>PHP 5.3.11 Rocks!<br/>
Output for 5.3.10
PHP 5.3.10<br/>PHP 5.3.10 Rocks!<br/>
Output for 5.3.9
PHP 5.3.9<br/>PHP 5.3.9 Rocks!<br/>
Output for 5.3.8
PHP 5.3.8<br/>PHP 5.3.8 Rocks!<br/>
Output for 5.3.7
PHP 5.3.7<br/>PHP 5.3.7 Rocks!<br/>
Output for 5.3.6
PHP 5.3.6<br/>PHP 5.3.6 Rocks!<br/>
Output for 5.3.5
PHP 5.3.5<br/>PHP 5.3.5 Rocks!<br/>
Output for 5.3.4
PHP 5.3.4<br/>PHP 5.3.4 Rocks!<br/>
Output for 5.3.3
PHP 5.3.3<br/>PHP 5.3.3 Rocks!<br/>
Output for 5.3.2
PHP 5.3.2<br/>PHP 5.3.2 Rocks!<br/>
Output for 5.3.1
PHP 5.3.1<br/>PHP 5.3.1 Rocks!<br/>
Output for 5.3.0
PHP 5.3.0<br/>PHP 5.3.0 Rocks!<br/>
Output for 5.2.17
PHP 5.2.17<br/>PHP 5.2.17 Rocks!<br/>
Output for 5.2.16
PHP 5.2.16<br/>PHP 5.2.16 Rocks!<br/>
Output for 5.2.15
PHP 5.2.15<br/>PHP 5.2.15 Rocks!<br/>
Output for 5.2.14
PHP 5.2.14<br/>PHP 5.2.14 Rocks!<br/>
Output for 5.2.13
PHP 5.2.13<br/>PHP 5.2.13 Rocks!<br/>
Output for 5.2.12
PHP 5.2.12<br/>PHP 5.2.12 Rocks!<br/>
Output for 5.2.11
PHP 5.2.11<br/>PHP 5.2.11 Rocks!<br/>
Output for 5.2.10
PHP 5.2.10<br/>PHP 5.2.10 Rocks!<br/>
Output for 5.2.9
PHP 5.2.9<br/>PHP 5.2.9 Rocks!<br/>
Output for 5.2.8
PHP 5.2.8<br/>PHP 5.2.8 Rocks!<br/>
Output for 5.2.7
PHP 5.2.7<br/>PHP 5.2.7 Rocks!<br/>
Output for 5.2.6
PHP 5.2.6<br/>PHP 5.2.6 Rocks!<br/>
Output for 5.2.5
PHP 5.2.5<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.2.4
PHP 5.2.4<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.2.3
PHP 5.2.3<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.2.2
PHP 5.2.2<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.2.1
PHP 5.2.1<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.2.0
PHP 5.2.0<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.1.6
PHP 5.1.6<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.1.5
PHP 5.1.5<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.1.4
PHP 5.1.4<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.1.3
PHP 5.1.3<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.1.2
PHP 5.1.2<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.1.1
PHP 5.1.1<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.1.0
PHP 5.1.0<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.0.5
PHP 5.0.5<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.0.4
PHP 5.0.4<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.0.3
PHP 5.0.3<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.0.2
PHP 5.0.2<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.0.1
PHP 5.0.1<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 5.0.0
PHP 5.0.0<br/> Fatal error: Call to undefined method A::getversion() in /in/pHKeW on line 10
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined method: a->getversion() in /in/pHKeW on line 15
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: getversion() in /in/pHKeW on line 15
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: getversion() in /in/pHKeW on line 15