3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myModel() { function search($q,$count=10) { $results = $db->query("SOME SEARCH QUERY ? LIMIT ?",array($q,intval($count))); return $this->objectize($results); } } class myController() { function ajaxSearch() { $q = $this->post('query'); $model = new myModel(); return $model->search($q,10); } }

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.0190.06212.36
5.4.140.0180.05712.05
5.4.130.0290.06612.03
5.4.120.0250.05111.99
5.4.110.0130.04411.99
5.4.100.0130.04411.99
5.4.90.0150.04512.00
5.4.80.0130.04511.99
5.4.70.0160.05411.99
5.4.60.0220.05911.99
5.4.50.0110.04811.99
5.4.40.0140.04311.98
5.4.30.0130.04811.98
5.4.20.0190.06711.97
5.4.10.0110.04611.97
5.4.00.0140.05311.46
5.3.250.0090.05112.72
5.3.240.0110.05012.72
5.3.230.0150.05112.71
5.3.220.0220.05712.68
5.3.210.0140.06512.68
5.3.200.0140.04612.68
5.3.190.0130.04612.67
5.3.180.0200.05212.67
5.3.170.0160.06712.67
5.3.160.0150.04612.67
5.3.150.0120.05112.67
5.3.140.0240.06912.66
5.3.130.0210.06212.66
5.3.120.0130.04812.66
5.3.110.0140.04612.66
5.3.100.0190.07312.12
5.3.90.0120.05012.09
5.3.80.0150.04912.08
5.3.70.0170.04712.07
5.3.60.0150.04712.07
5.3.50.0170.05312.00
5.3.40.0130.05112.00
5.3.30.0160.05511.96
5.3.20.0110.05111.74
5.3.10.0150.05011.70
5.3.00.0160.04611.69

preferences:
141.09 ms | 1394 KiB | 7 Q