3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo() { public $var = 10; function t() { echo $this->var; } function t2() { echo 33; echo 44; } } $foo = new Foo(); $foo->t();

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.200.0330.05319.21
5.4.190.0370.07319.21
5.4.180.0400.06718.94
5.4.170.0400.06719.00
5.4.160.0400.03019.17
5.4.150.0470.06019.24
5.4.140.0270.06716.45
5.4.130.0400.05716.37
5.4.120.0300.04716.34
5.4.110.0300.04016.30
5.4.100.0430.04316.25
5.4.90.0470.05716.45
5.4.80.0370.04316.20
5.4.70.0530.05316.55
5.4.60.0370.04016.59
5.4.50.0330.04016.41
5.4.40.0430.06716.61
5.4.30.0430.05316.45
5.4.20.0530.06316.41
5.4.10.0330.07016.42
5.4.00.0270.03715.83
5.3.270.0230.04014.66
5.3.260.0230.05014.61
5.3.250.0300.03714.63
5.3.240.0370.04314.61
5.3.230.0300.04014.64
5.3.220.0530.05714.58
5.3.210.0400.06014.61
5.3.200.0430.06314.62
5.3.190.0370.05014.57
5.3.180.0330.04714.70
5.3.170.0200.04314.61
5.3.160.0370.04714.56
5.3.150.0400.04014.63
5.3.140.0470.05014.58
5.3.130.0470.06314.69
5.3.120.0370.05314.61
5.3.110.0270.04014.71
5.3.100.0200.04014.04
5.3.90.0270.03313.90
5.3.80.0200.04013.99
5.3.70.0200.03714.04
5.3.60.0200.03314.04
5.3.50.0270.03013.96
5.3.40.0270.03714.09
5.3.30.0170.04013.90
5.3.20.0200.03713.71
5.3.10.0400.03313.60
5.3.00.0400.06313.63

preferences:
141.73 ms | 1394 KiB | 7 Q