3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Singletone { private static $instance; private __construct { echo 'NEW!'; } public static function getInstance() { if (false === isset(self::instance)) { self::instance = new self; } return self::instance; } }

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.290.3800.04019.15
5.4.280.3800.03719.23
5.4.270.3530.04319.11
5.4.260.3900.03018.93
5.4.250.4000.03319.10
5.4.240.4470.04019.14
5.4.230.3830.03718.95
5.4.220.3730.03319.19
5.4.210.3630.03719.23
5.4.200.3800.04019.21
5.4.190.3730.03719.13
5.4.180.4070.04019.13
5.4.170.3800.03719.20
5.4.160.3430.03719.18
5.4.150.3830.03718.96
5.4.140.3500.04016.51
5.4.130.3770.04016.45
5.4.120.2700.03316.44
5.4.110.0070.04716.56
5.4.100.4230.03316.55
5.4.90.4500.03016.22
5.4.80.3770.03316.43
5.4.70.3870.03316.46
5.4.60.3900.04016.50
5.4.50.3830.03316.56
5.4.40.3970.03716.46
5.4.30.3870.03016.41
5.4.20.3830.03716.41
5.4.10.1800.03316.32
5.4.00.0070.07016.03
5.3.280.3870.03714.59
5.3.270.3470.04714.49
5.3.260.3670.03014.59
5.3.250.3570.04014.59
5.3.240.3570.03714.60
5.3.230.3300.03314.51
5.3.220.0030.04014.57
5.3.210.0030.08014.72
5.3.200.3130.04314.57
5.3.190.4430.04014.59
5.3.180.4000.04014.56
5.3.170.4270.04714.55
5.3.160.3800.02714.48
5.3.150.3570.03714.56
5.3.140.3700.04314.55
5.3.130.3700.04714.61
5.3.120.3870.04014.55
5.3.110.4130.03714.70
5.3.100.0070.05014.08
5.3.90.0000.04013.93
5.3.80.4230.03314.07
5.3.70.4270.02714.05
5.3.60.4470.03714.05
5.3.50.4670.03314.10
5.3.40.4470.04313.94
5.3.30.4200.04013.82
5.3.20.4170.03713.76
5.3.10.4470.03313.71
5.3.00.3830.03313.64

preferences:
141.91 ms | 1394 KiB | 7 Q