3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace API; class a { function foo() { echo "ello!"; $this->calling(); } function calling() { echo "I'm calling from a"; } } class b extends a { function foo() { $this->calling(); // This's the mistakes.. $this->anotherOne(); public function calling() { echo "I'm calling from B!"; } function anotherOne() { echo "aaaaa"; } } } $tryMe = new \API\b(); $tryMe->foo();

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.2.80.0770.00614.21
7.2.70.0700.01114.35
7.2.60.1200.00414.48
7.2.50.0960.00514.48
7.2.40.0630.00714.67
7.2.30.1200.00714.62
7.2.20.1040.00514.67
7.2.10.0690.00614.63
7.2.00.1250.00314.68
7.1.190.0690.00513.43
7.1.180.0840.00613.42
7.1.170.0670.00313.54
7.1.160.0990.00813.60
7.1.150.1240.00413.64
7.1.140.0660.00713.45
7.1.130.0880.00613.59
7.1.120.0660.00613.61
7.1.110.1020.00413.49
7.1.100.0950.00613.43
7.1.90.1370.00713.46
7.1.80.1710.00613.54
7.1.70.1390.00613.71
7.1.60.1360.01031.86
7.1.50.1620.00731.79
7.1.40.1800.00931.66
7.1.30.1880.00731.57
7.1.20.1710.01131.67
7.1.10.1500.01113.51
7.1.00.1180.00513.57

preferences:
138.31 ms | 1394 KiB | 7 Q