3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(strtotime("23/02/2013")); die; abstract class T { static public $instanses; final private function __construct(){ } public static function getInstance() { if (!(static::$instanses instanceof static)) { static::$instanses = new static; } return static::$instanses; } } class A extends T { static public $instanses; } class B extends A { static public $instanses; } $t = A::getInstance(); var_dump($t); $t1 = B::getInstance(); var_dump($t1); new B(); ?>

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)
8.3.60.0140.00016.47
8.3.50.0340.00921.32
8.3.40.0080.00618.92
8.3.30.0040.01118.69
8.3.20.0050.00320.38
8.3.10.0020.00523.57
8.3.00.0080.00019.97
8.2.180.0100.00616.50
8.2.170.0030.01322.96
8.2.160.0100.00720.37
8.2.150.0110.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00619.22
8.2.120.0080.00026.35
8.2.110.0070.00321.03
8.2.100.0040.00817.84
8.2.90.0040.00418.09
8.2.80.0040.00419.28
8.2.70.0040.00417.75
8.2.60.0080.00017.88
8.2.50.0000.00817.63
8.2.40.0040.00419.60
8.2.30.0040.00420.62
8.2.20.0060.00317.80
8.2.10.0030.00618.17
8.2.00.0070.00018.03
8.1.280.0150.00625.92
8.1.270.0100.01020.46
8.1.260.0150.00028.09
8.1.250.0040.00428.09
8.1.240.0090.00022.47
8.1.230.0070.00422.69
8.1.220.0000.00817.76
8.1.210.0050.00318.78
8.1.200.0050.00317.35
8.1.190.0050.00317.48
8.1.180.0000.00818.10
8.1.170.0000.00718.94
8.1.160.0050.00320.77
8.1.150.0000.00818.89
8.1.140.0000.00819.51
8.1.130.0030.00517.61
8.1.120.0050.00217.56
8.1.110.0050.00317.41
8.1.100.0050.00217.51
8.1.90.0000.00817.51
8.1.80.0030.00417.54
8.1.70.0070.00017.45
8.1.60.0040.00417.49
8.1.50.0000.00817.45
8.1.40.0000.00917.54
8.1.30.0030.00717.60
8.1.20.0000.00817.71
8.1.10.0040.00417.49
8.1.00.0040.00417.56
8.0.300.0070.00019.73
8.0.290.0040.00416.75
8.0.280.0030.00318.44
8.0.270.0030.00517.21
8.0.260.0000.00617.21
8.0.250.0030.00316.99
8.0.240.0060.00017.06
8.0.230.0000.00716.94
8.0.220.0040.00417.03
8.0.210.0040.00416.94
8.0.200.0070.00017.11
8.0.190.0050.00317.00
8.0.180.0040.00417.05
8.0.170.0050.00317.07
8.0.160.0040.00417.05
8.0.150.0090.00316.90
8.0.140.0040.00416.92
8.0.130.0060.00013.36
8.0.120.0040.00416.89
8.0.110.0000.00716.94
8.0.100.0030.00516.92
8.0.90.0040.00416.95
8.0.80.0060.00917.01
8.0.70.0000.00816.89
8.0.60.0000.00716.91
8.0.50.0040.00416.91
8.0.30.0150.00517.25
8.0.20.0120.00617.40
8.0.10.0050.00317.27
8.0.00.0070.01116.72
7.4.330.0030.00316.82
7.4.320.0000.00616.52
7.4.300.0030.00316.59
7.4.290.0000.00716.52
7.4.280.0030.00716.41
7.4.270.0030.00616.50
7.4.260.0070.00016.54
7.4.250.0000.00816.41
7.4.240.0040.00316.63
7.4.230.0030.00316.68
7.4.220.0080.01216.51
7.4.210.0000.01516.54
7.4.200.0070.00016.41
7.4.160.0110.00816.39
7.4.150.0090.00917.40
7.4.140.0130.01017.86
7.4.130.0090.01016.47
7.4.120.0150.00316.52
7.4.110.0150.00416.68
7.4.100.0110.01216.68
7.4.90.0040.01316.44
7.4.80.0060.01319.39
7.4.70.0110.00516.62
7.4.60.0070.01016.51
7.4.50.0030.01216.69
7.4.40.0090.00916.36
7.4.30.0120.00616.27
7.4.00.0100.00614.86
7.3.330.0030.00313.14
7.3.320.0060.00013.34
7.3.310.0070.00016.43
7.3.300.0000.00716.23
7.3.290.0040.00416.25
7.3.280.0110.00816.31
7.3.270.0030.01317.40
7.3.260.0140.00716.49
7.3.250.0100.00816.50
7.3.240.0050.01116.49
7.3.230.0060.01216.53
7.3.210.0110.00716.63
7.3.200.0160.00616.43
7.3.190.0150.00316.45
7.3.180.0150.00316.52
7.3.170.0140.00316.59
7.3.160.0070.00716.49
7.2.330.0110.00716.59
7.2.320.0070.01416.65
7.2.310.0160.00016.66
7.2.300.0030.01616.77
7.2.290.0000.01716.80
7.2.60.0040.00716.75
7.2.00.0100.01019.30
7.1.200.0000.01315.77
7.1.100.0030.01017.95
7.1.70.0060.00317.27
7.1.60.0070.01719.13
7.1.50.0040.00716.77
7.1.00.0100.06722.42
7.0.200.0030.00616.86
7.0.60.0000.09019.95
7.0.50.0130.07317.88
7.0.40.0030.04320.27
7.0.30.0300.07720.15
7.0.20.0370.07720.30
7.0.10.0100.08320.15
7.0.00.0000.05720.21
5.6.280.0000.05721.07
5.6.210.0070.06020.57
5.6.200.0100.08018.16
5.6.190.0130.08720.57
5.6.180.0300.08320.61
5.6.170.0270.05720.58
5.6.160.0100.08020.55
5.6.150.0000.04318.15
5.6.140.0070.08018.13
5.6.130.0000.05318.29
5.6.120.0130.06721.12
5.6.110.0070.03721.12
5.6.100.0030.07020.98
5.6.90.0100.05020.84
5.6.80.0100.06020.54
5.5.350.0200.07020.29
5.5.340.0000.05317.93
5.5.330.0030.08320.35
5.5.320.0270.04320.36
5.5.310.0370.06720.27
5.5.300.0070.08317.95
5.5.290.0030.08317.98
5.5.280.0100.03720.83
5.5.270.0130.07320.76
5.5.260.0100.08020.88
5.5.250.0100.08020.59
5.5.240.0200.07720.26

preferences:
52.83 ms | 401 KiB | 5 Q