3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ConfiguratorDelegate { public function didSelectOption($option); } class ViewController implements ConfiguratorDelegate { public function didSelectOption($option) { echo "Selected option"; } __construct() { $configurator = new Configurator(); $configurator->delegate = $this; } } class Configurator { public $delegate; // This would be defined as an object that always implements ConfiguratorDelegate private function optionSelected($option) { if ($delegate) { $delegate->didSelectOption($option); } } } $myVC = new ViewController();

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)
5.4.150.0030.04718.83
5.4.140.0030.03716.46
5.4.130.0000.03716.48
5.4.120.0000.04016.34
5.4.110.0030.03716.72
5.4.100.0070.04016.46
5.4.90.0030.03316.35
5.4.80.0000.03716.50
5.4.70.0000.03716.41
5.4.60.0030.04316.40
5.4.50.0000.04316.32
5.4.40.0000.03716.46
5.4.30.0030.04016.27
5.4.20.0030.03316.25
5.4.10.0070.03016.64
5.4.00.0030.03315.82
5.3.250.0070.03314.61
5.3.240.0100.03014.50
5.3.230.0030.03714.63
5.3.220.0000.03714.57
5.3.210.0000.04014.46
5.3.200.0000.04014.75
5.3.190.0030.03714.57
5.3.180.0030.03714.72
5.3.170.0030.03714.62
5.3.160.0030.04014.59
5.3.150.0000.04014.58
5.3.140.0070.03314.59
5.3.130.0030.03714.55
5.3.120.0130.03714.61
5.3.110.0030.03714.55
5.3.100.0030.03714.04
5.3.90.0000.03714.02
5.3.80.0000.03714.04
5.3.70.0070.03714.18
5.3.60.0000.03714.09
5.3.50.0030.03313.84
5.3.40.0000.05714.09
5.3.30.0030.04314.05
5.3.20.0070.08013.64
5.3.10.0030.07313.82
5.3.00.0030.07313.59

preferences:
140.7 ms | 1394 KiB | 7 Q