3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = "test"; class Test { __construct() { return $this->Output(); } class Output() { return $var; } } echo 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)
5.4.300.0300.05319.22
5.4.290.0230.05019.07
5.4.280.0270.04719.16
5.4.270.0400.06719.19
5.4.260.0370.04019.09
5.4.250.0230.05019.21
5.4.240.0300.06318.84
5.4.230.0330.04319.30
5.4.220.0330.04319.15
5.4.210.0230.07319.14
5.4.200.0230.05718.84
5.4.190.0270.05718.93
5.4.180.0270.03319.32
5.4.170.0330.07019.19
5.4.160.0270.06019.13
5.4.150.0270.04319.11
5.4.140.0170.04316.47
5.4.130.0370.04016.50
5.4.120.0370.05016.49
5.4.110.0270.06016.26
5.4.100.0300.06316.41
5.4.90.0330.06016.47
5.4.80.0330.07016.18
5.4.70.0270.06016.35
5.4.60.0300.06716.52
5.4.50.0370.06316.42
5.4.40.0330.07016.25
5.4.30.0400.06716.43
5.4.20.0300.04316.34
5.4.10.0400.03016.24
5.4.00.0270.06715.77
5.3.280.0270.07014.71
5.3.270.0270.04314.68
5.3.260.0270.04714.82
5.3.250.0270.04314.52
5.3.240.0200.04014.68
5.3.230.0270.04714.81
5.3.220.0330.06714.68
5.3.210.0300.07314.55
5.3.200.0330.06714.72
5.3.190.0270.06714.48
5.3.180.0300.04314.55
5.3.170.0300.06714.56
5.3.160.0230.04714.57
5.3.150.0330.05714.48
5.3.140.0200.04314.52
5.3.130.0270.04714.54
5.3.120.0300.06014.77
5.3.110.0230.03714.70
5.3.100.0330.04014.26
5.3.90.0430.05314.24
5.3.80.0270.06314.03
5.3.70.0300.06014.13
5.3.60.0370.04014.12
5.3.50.0270.07013.85
5.3.40.0270.04013.99
5.3.30.0230.07313.95
5.3.20.0330.06313.77
5.3.10.0230.05313.73
5.3.00.0330.06313.65

preferences:
139.54 ms | 1394 KiB | 7 Q