3v4l.org

run code in 300+ PHP versions simultaneously
<?php static class PHPApprentice { private $velocity = ''; public function __construct () { } public function getVelocity () { return $this->velocity; } public function setVelocity ( $value ) { $this->velocity = $value; } } $rafa = (new PHPApprentice ())->setVelocity ( 'jj' ); echo $rafa->getVelocity ();

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.230.0160.04412.37
5.4.220.0130.04512.37
5.4.210.0190.04012.36
5.4.200.0200.04112.36
5.4.190.0200.04312.36
5.4.180.0140.04812.36
5.4.170.0180.04512.37
5.4.160.0190.04512.36
5.4.150.0150.04612.36
5.4.140.0190.04012.05
5.4.130.0220.09812.03
5.4.120.0130.04512.00
5.4.110.0330.09912.00
5.4.100.0210.04912.00
5.4.90.0170.04211.99
5.4.80.0340.08612.00
5.4.70.0180.03811.99
5.4.60.0140.04211.99
5.4.50.0160.04211.99
5.4.40.0170.04111.98
5.4.30.0110.05011.98
5.4.20.0160.04011.96
5.4.10.0140.04211.97
5.4.00.0150.04211.47
5.3.280.0200.05212.71
5.3.270.0140.04912.72
5.3.260.0180.04212.72
5.3.250.0180.04212.72
5.3.240.0140.04912.72
5.3.230.0170.04812.71
5.3.220.0350.08712.68
5.3.210.0270.03812.68
5.3.200.0130.05212.68
5.3.190.0170.04512.68
5.3.180.0150.04812.67
5.3.170.0130.05012.67
5.3.160.0150.04812.68
5.3.150.0330.08912.67
5.3.140.0170.04412.66
5.3.130.0210.04312.66
5.3.120.0150.04712.66
5.3.110.0180.04812.66
5.3.100.0200.04412.12
5.3.90.0120.04812.08
5.3.80.0350.06212.07
5.3.70.0160.04712.07
5.3.60.0250.04012.06
5.3.50.0100.05312.00
5.3.40.0120.05112.00
5.3.30.0130.04711.93
5.3.20.0140.04711.71
5.3.10.0190.04111.67
5.3.00.0260.06611.65

preferences:
138.75 ms | 1394 KiB | 7 Q