3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $foo = 1; public function getFoo() { return $this->foo; } } Class Bar { public $foo; public function __construct() { $this->foo = new Foo(); } public function getOriginalFoo() { return clone $this->foo->getFoo(); } } $bar = new Bar(); var_dump($bar->getOriginalFoo());

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.0110.01118.43
8.3.50.0140.00716.32
8.3.40.0150.00419.06
8.3.30.0130.00718.72
8.3.20.0160.00320.42
8.3.10.0120.00623.53
8.3.00.0100.01019.78
8.2.180.0160.00616.63
8.2.170.0060.01322.96
8.2.160.0150.00620.53
8.2.150.0040.01524.18
8.2.140.0110.00724.66
8.2.130.0110.00726.16
8.2.120.0040.01517.50
8.2.110.0000.01020.40
8.2.100.0040.00817.72
8.2.90.0020.00519.28
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0040.00417.89
8.2.50.0000.00818.07
8.2.40.0060.00319.52
8.2.30.0000.00819.78
8.2.20.0050.00317.71
8.2.10.0040.00417.96
8.2.00.0000.00717.88
8.1.280.0140.00725.92
8.1.270.0070.01120.33
8.1.260.0070.01026.35
8.1.250.0140.00428.09
8.1.240.0060.00622.05
8.1.230.0040.00822.82
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0070.00317.38
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00818.49
8.1.160.0030.00521.89
8.1.150.0020.00518.83
8.1.140.0080.00017.39
8.1.130.0070.00017.71
8.1.120.0070.00017.30
8.1.110.0050.00217.42
8.1.100.0000.00717.32
8.1.90.0000.00717.29
8.1.80.0040.00417.41
8.1.70.0030.00517.33
8.1.60.0030.00617.60
8.1.50.0040.00417.53
8.1.40.0080.00017.55
8.1.30.0030.00517.56
8.1.20.0040.00417.62
8.1.10.0040.00417.53
8.1.00.0030.00517.37
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0030.00318.39
8.0.270.0000.00717.23
8.0.260.0080.00017.20
8.0.250.0000.00816.88
8.0.240.0040.00416.93
8.0.230.0000.00816.93
8.0.220.0040.00416.89
8.0.210.0030.00316.83
8.0.200.0000.00716.84
8.0.190.0060.00616.84
8.0.180.0050.00516.80
8.0.170.0030.00516.90
8.0.160.0030.00616.90
8.0.150.0000.00716.85
8.0.140.0050.00316.85
8.0.130.0030.00313.32
8.0.120.0050.00316.84
8.0.110.0050.00316.90
8.0.100.0000.00716.71
8.0.90.0000.00716.76
8.0.80.0090.00616.85
8.0.70.0040.00416.91
8.0.60.0000.00817.00
8.0.50.0000.00717.01
8.0.30.0090.00917.04
8.0.20.0140.00717.40
8.0.10.0070.00016.87
8.0.00.0120.00516.59
7.4.330.0030.00315.08
7.4.320.0000.00716.54
7.4.300.0040.00416.50
7.4.290.0110.00016.58
7.4.280.0040.00416.42
7.4.270.0000.00716.50
7.4.260.0070.00016.57
7.4.250.0000.00816.49
7.4.240.0050.00216.57
7.4.230.0030.00316.70
7.4.220.0130.00316.58
7.4.210.0100.00816.55
7.4.200.0000.00716.63
7.4.160.0090.01216.52
7.4.150.0100.00717.40
7.4.140.0090.01417.86
7.4.130.0080.01116.43
7.4.120.0080.01116.51
7.4.110.0100.00716.50
7.4.100.0090.00916.51
7.4.90.0070.01016.58
7.4.80.0110.01119.39
7.4.70.0030.01316.59
7.4.60.0030.01416.54
7.4.50.0040.00416.32
7.4.40.0100.00616.55
7.4.30.0120.01216.42
7.4.00.0100.00315.07
7.3.330.0020.00213.14
7.3.320.0040.00413.38
7.3.310.0000.00716.26
7.3.300.0000.00616.38
7.3.290.0050.00216.22
7.3.280.0110.00816.37
7.3.270.0100.00717.40
7.3.260.0120.00616.38
7.3.240.0140.00916.60
7.3.230.0110.00816.57
7.3.210.0100.00716.43
7.3.200.0140.00316.39
7.3.190.0170.00716.27
7.3.180.0130.00316.46
7.3.170.0090.00916.41
7.3.160.0030.01616.42
7.2.330.0130.00616.79
7.2.320.0110.00716.69
7.2.310.0130.00316.77
7.2.300.0100.00616.41
7.2.290.0150.00316.48
7.2.60.0040.01116.81
7.2.00.0030.01019.35
7.1.200.0030.00715.70
7.1.100.0030.01017.84
7.1.70.0000.01017.09
7.1.60.0100.01019.12
7.1.50.0060.00616.84
7.1.00.0030.07722.45
7.0.200.1600.01315.01
7.0.60.0070.06720.08
7.0.50.0070.04017.96
7.0.40.0200.05720.13
7.0.30.0270.06720.33
7.0.20.0230.07720.15
7.0.10.0000.04320.12
7.0.00.0230.04020.06
5.6.280.0030.04720.82
5.6.210.0070.08320.55
5.6.200.0100.04718.23
5.6.190.0030.04720.77
5.6.180.0470.05720.40
5.6.170.0230.04020.50
5.6.160.0100.08020.44
5.6.150.0100.07718.14
5.6.140.0000.05018.30
5.6.130.0070.06718.11
5.6.120.0070.06721.13
5.6.110.0030.08721.09
5.6.100.0000.04721.13
5.6.90.0130.07720.97
5.6.80.0030.08320.40
5.6.70.0170.08320.41
5.5.350.0300.07320.33
5.5.340.0100.07717.98
5.5.330.0000.09020.21
5.5.320.0030.05020.25
5.5.310.0300.03720.35
5.5.300.0070.04717.98
5.5.290.0130.07717.95
5.5.280.0170.06020.66
5.5.270.0100.04720.90
5.5.260.0300.06320.89
5.5.250.0200.03320.47
5.5.240.0230.07720.20
5.4.450.0630.04719.62
5.4.440.0630.04719.46
5.4.430.0500.05719.38
5.4.420.0700.05019.30
5.4.410.0630.04719.34
5.4.400.0700.05719.26
5.4.390.0730.05019.23
5.4.380.0600.05719.13
5.4.370.0570.05319.14
5.4.360.0570.06018.87
5.4.350.0670.05319.37
5.4.340.0770.04719.11
5.4.320.0700.06019.29
5.4.310.0630.06319.14
5.4.300.0730.06019.16
5.4.290.0500.05318.84
5.4.280.0700.03718.97
5.4.270.0670.04718.87
5.4.260.0600.04319.25
5.4.250.0570.05019.10
5.4.240.0630.04319.28
5.4.230.0600.04719.24
5.4.220.0700.05719.12
5.4.210.0600.05019.08
5.4.200.0530.05019.30
5.4.190.0470.06019.09
5.4.180.0600.05019.23
5.4.170.0570.05319.13
5.4.160.0630.04718.96
5.4.150.0530.05719.26
5.4.140.0570.05716.39
5.4.130.0500.05016.56
5.4.120.0530.05016.61
5.4.110.0470.05716.65
5.4.100.0570.04316.57
5.4.90.0530.05016.50
5.4.80.0670.04716.31
5.4.70.0270.07016.58
5.4.60.0400.05016.52
5.4.50.0030.07016.53
5.4.40.0070.07016.16
5.4.30.0070.07016.52
5.4.20.0070.06716.34

preferences:
51.28 ms | 400 KiB | 5 Q