3v4l.org

run code in 300+ PHP versions simultaneously
<?php class someClass { public function __construct($db) { // this is where you get given the db connection } // your email methods in here public function verify() { // something } } /* To go into the Mage */ protected function someModel($db) { $mailer = new someClass($db); } /* Used like this */ Mage::getInstance()->using('database/someModel')->verify();

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.1.00.0330.06020.85
7.0.140.0170.05721.93
7.0.130.0330.05720.31
7.0.120.0030.06022.04
7.0.110.0200.05322.12
7.0.100.0570.05720.26
7.0.90.0170.05322.11
7.0.80.0100.05321.96
7.0.70.0070.06021.97
7.0.60.0100.05322.20
7.0.50.0130.05322.00
7.0.40.0030.06021.98
7.0.30.0070.05322.14
7.0.20.0070.05722.10
7.0.10.0130.05021.99
7.0.00.0170.04722.12
5.6.290.0100.05320.92
5.6.280.0070.06320.90
5.6.270.0200.06320.79
5.6.260.0130.06321.10
5.6.250.0130.05721.09
5.6.240.0200.05720.89
5.6.230.0100.05720.89
5.6.220.0000.06320.76
5.6.210.0100.05320.84
5.6.200.0100.06020.88
5.6.190.0130.05320.92
5.6.180.0030.06720.88
5.6.170.0000.06320.78
5.6.160.0030.06020.87
5.6.150.0030.06320.78
5.6.140.0100.06321.05
5.6.130.0100.06020.88
5.6.120.0130.05321.04
5.6.110.0200.05020.84
5.6.100.0030.06721.03
5.6.90.0030.06320.87
5.6.80.0070.06020.27
5.6.70.0070.05720.24
5.6.60.0030.05720.41
5.6.50.0100.05720.47
5.6.40.0070.05320.21
5.6.30.0100.05320.23
5.6.20.0100.06720.43
5.6.10.0100.05020.24
5.6.00.0070.06020.16

preferences:
141.79 ms | 1394 KiB | 7 Q