3v4l.org

run code in 300+ PHP versions simultaneously
<?php public function rules() { $port = isset($this->port->id) ? $this->port->id : null; return [ 'name' => 'required|unique:ports,name,'.$port, 'state'=> 'required_if:country_id,1', 'country_id' => 'required' ]; }

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.10.0270.01717.70
7.2.00.0350.00317.39
7.1.130.0380.01316.52
7.1.120.0320.00716.47
7.1.110.0230.01315.91
7.1.100.0400.00615.88
7.1.90.0550.01315.59
7.1.80.0410.00715.64
7.1.70.0450.00315.08
7.1.60.0770.01033.21
7.1.50.0420.01332.72
7.1.40.0500.00732.33
7.1.30.0190.01532.53
7.1.20.0580.01932.50
7.1.10.0070.01014.38
7.1.00.0060.01014.55

preferences:
142.29 ms | 1394 KiB | 7 Q