3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public test1; public test2; protected test3; private test4; public function method1() {} public function method2() {} protected function method3() {} private function method4() {} } echo count( new test );

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.0.90.0330.06319.89
7.0.80.0400.05319.96
7.0.70.0270.06319.92
7.0.60.0330.05319.95
7.0.50.0370.05020.34
7.0.40.0330.06320.25
7.0.30.0300.05720.33
7.0.20.0330.06020.34
7.0.10.0270.06320.23
7.0.00.0330.06020.19
5.6.240.0130.05320.67
5.6.230.0070.06720.62
5.6.220.0100.05720.64
5.6.210.0100.07320.64
5.6.200.0100.06321.06
5.6.190.0170.05321.06
5.6.180.0100.05721.17
5.6.170.0100.06021.02
5.6.160.0130.07021.17
5.6.150.0070.06021.10
5.6.140.0070.06321.19
5.6.130.0000.06721.05
5.6.120.0130.05720.98
5.6.110.0130.05321.16
5.6.100.0070.06021.07
5.6.90.0100.06021.07
5.6.80.0200.05720.46
5.6.70.0070.05720.43
5.6.60.0070.05320.49
5.6.50.0130.05020.52
5.6.40.0130.06320.44
5.6.30.0170.05320.56
5.6.20.0130.05320.43
5.6.10.0100.05720.37
5.6.00.0230.06020.43

preferences:
141.03 ms | 1394 KiB | 7 Q