3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { private function __clone() { } private function __construct() { } public static function getInstance() { return new self(); } public function getClone() { return clone ($this); } } class c extends a { public static function getInstance() { return parent::getInstance(); } public function getClone() { return parent::getClone(); } } $d = c::getInstance(); $e = $d->getClone();

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.0060.01518.43
8.3.50.0070.00716.64
8.3.40.0120.00318.84
8.3.30.0070.01118.67
8.3.20.0070.00020.29
8.3.10.0040.00421.64
8.3.00.0040.00420.80
8.2.180.0120.00618.13
8.2.170.0070.00722.96
8.2.160.0070.00722.21
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00220.52
8.2.120.0070.00026.35
8.2.110.0090.00022.04
8.2.100.0040.00817.78
8.2.90.0040.00417.84
8.2.80.0080.00017.97
8.2.70.0030.00517.50
8.2.60.0060.00317.80
8.2.50.0080.00018.10
8.2.40.0000.00822.26
8.2.30.0030.00519.06
8.2.20.0050.00218.06
8.2.10.0050.00218.04
8.2.00.0050.00317.93
8.1.280.0150.00325.92
8.1.270.0080.00021.92
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00922.06
8.1.230.0110.00020.96
8.1.220.0090.00017.74
8.1.210.0000.00818.91
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0040.00418.50
8.1.160.0050.00218.93
8.1.150.0040.00420.48
8.1.140.0000.00719.43
8.1.130.0000.00718.73
8.1.120.0000.00717.34
8.1.110.0040.00417.38
8.1.100.0050.00317.45
8.1.90.0040.00417.29
8.1.80.0000.00717.30
8.1.70.0000.00717.34
8.1.60.0040.00417.61
8.1.50.0030.00517.57
8.1.40.0000.00817.54
8.1.30.0030.00617.59
8.1.20.0000.00817.63
8.1.10.0050.00317.53
8.1.00.0070.00017.51
8.0.300.0080.00019.90
8.0.290.0070.00016.75
8.0.280.0000.00818.27
8.0.270.0070.00017.13
8.0.260.0060.00016.76
8.0.250.0030.00316.94
8.0.240.0070.00016.76
8.0.230.0070.00316.77
8.0.220.0030.00316.86
8.0.210.0030.00316.80
8.0.200.0070.00016.92
8.0.190.0080.00016.85
8.0.180.0070.00416.85
8.0.170.0070.00016.80
8.0.160.0070.00016.82
8.0.150.0070.00016.78
8.0.140.0050.00316.78
8.0.130.0040.00313.27
8.0.120.0000.00716.80
8.0.110.0030.00516.87
8.0.100.0030.00516.75
8.0.90.0030.00516.73
8.0.80.0120.00316.75
8.0.70.0070.00016.68
8.0.60.0040.00416.88
8.0.50.0040.00416.70
8.0.30.0140.00416.94
8.0.20.0100.01017.40
8.0.10.0000.00716.82
8.0.00.0110.00616.76
7.4.330.0000.00515.55
7.4.320.0030.00316.46
7.4.300.0060.00016.52
7.4.290.0070.00316.57
7.4.280.0030.00516.45
7.4.270.0000.00716.49
7.4.260.0040.00416.48
7.4.250.0030.00316.48
7.4.240.0000.00816.37
7.4.230.0030.00316.67
7.4.220.0110.00716.62
7.4.210.0080.00716.69
7.4.200.0030.00316.32
7.4.160.0090.00816.49
7.4.150.0090.01617.40
7.4.140.0080.01017.86
7.4.130.0090.00916.51
7.4.120.0120.01016.46
7.4.110.0040.01216.43
7.4.100.0100.01016.49
7.4.90.0070.01116.65
7.4.80.0130.00419.39
7.4.70.0100.00716.38
7.4.60.0120.00616.41
7.4.50.0030.01016.36
7.4.40.0040.01816.45
7.4.30.0100.00716.62
7.4.00.0060.00914.87
7.3.330.0000.00613.30
7.3.320.0030.00313.29
7.3.310.0030.00316.35
7.3.300.0030.00316.12
7.3.290.0070.00716.25
7.3.280.0100.00616.27
7.3.270.0090.00917.40
7.3.260.0100.01116.32
7.3.250.0090.01116.44
7.3.240.0090.00916.57
7.3.230.0050.01316.29
7.3.210.0030.01216.29
7.3.200.0130.00716.25
7.3.190.0060.01016.57
7.3.180.0120.00416.29
7.3.170.0060.01016.57
7.3.160.0110.00516.15
7.3.120.0070.01014.45
7.3.110.0120.00314.82
7.3.100.0060.00614.75
7.3.90.0090.00914.74
7.3.80.0030.00914.78
7.3.70.0000.01314.52
7.3.60.0090.00614.63
7.3.50.0000.01414.53
7.3.40.0030.01214.80
7.3.30.0030.01014.43
7.3.20.0060.00916.55
7.3.10.0070.00916.37
7.3.00.0130.00516.02
7.2.330.0100.00716.48
7.2.320.0050.01416.56
7.2.310.0090.00616.29
7.2.300.0130.00316.63
7.2.290.0130.00916.66
7.2.250.0070.01315.16
7.2.240.0070.01014.84
7.2.230.0070.01114.82
7.2.220.0130.00314.80
7.2.210.0070.01114.75
7.2.200.0100.00314.89
7.2.190.0040.01514.80
7.2.180.0090.00915.01
7.2.170.0000.01014.91
7.2.130.0140.00516.37
7.2.120.0190.00716.75
7.2.110.0090.01215.88
7.2.100.0230.00416.49
7.2.90.0190.00515.89
7.2.80.0160.00415.84
7.2.70.0150.00816.28
7.2.60.0080.01016.61
7.2.50.0140.00315.86
7.2.40.0120.00715.95
7.2.30.0110.00716.27
7.2.20.0120.00915.98
7.2.10.0090.00916.13
7.2.00.0080.00717.89
7.1.330.0040.01115.52
7.1.320.0030.01015.47
7.1.310.0140.00315.69
7.1.300.0030.01215.39
7.1.290.0060.01215.74
7.1.280.0080.00615.53
7.1.270.0030.01015.43
7.1.260.0000.01215.79
7.1.250.0080.01214.98
7.1.200.0090.00615.33
7.1.100.0030.00618.09
7.1.70.0070.00717.15
7.1.60.0500.00733.17
7.1.50.0400.00734.68
7.1.40.0170.01034.43
7.1.30.0270.01332.73
7.1.20.0630.01734.55
7.1.10.0830.01314.93
7.1.00.0170.01314.67
7.0.200.0230.01714.94
7.0.190.0070.01316.63
7.0.180.0130.01314.35
7.0.170.0170.01014.25
7.0.160.0430.01014.57
7.0.150.0030.00716.10
7.0.140.0230.01014.59
7.0.130.0170.01314.52
7.0.120.0230.01016.45
7.0.110.0030.01016.22
7.0.100.0230.01014.31
7.0.90.0230.00716.16
7.0.80.0230.00714.36
7.0.70.0330.01016.21
7.0.60.0200.02014.28
7.0.50.0070.01716.30
7.0.40.0130.01314.65
7.0.30.0200.01014.64
7.0.20.0230.00714.34
7.0.10.0170.01314.64
7.0.00.0270.01014.71

preferences:
40.03 ms | 401 KiB | 5 Q