3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $test = 'that'; public function bar() { $new = clone $this; $new->test = 'weird!'; } public function getTest() { return $this->test; } } $foo1 = new Foo; echo $foo1->getTest(); $foo2 = $foo1->bar(); echo $foo2->getTest();

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.0100.00717.00
8.3.50.0140.00718.05
8.3.40.0120.00318.90
8.3.30.0070.00719.00
8.3.20.0030.00620.21
8.3.10.0000.00823.48
8.3.00.0000.00719.91
8.2.180.0060.00916.88
8.2.170.0070.01122.96
8.2.160.0140.00420.35
8.2.150.0070.00024.18
8.2.140.0070.00324.66
8.2.130.0060.00321.12
8.2.120.0040.00426.35
8.2.110.0080.00322.08
8.2.100.0060.00617.91
8.2.90.0040.00418.98
8.2.80.0040.00417.97
8.2.70.0090.00017.38
8.2.60.0030.00618.04
8.2.50.0060.00318.07
8.2.40.0060.00321.11
8.2.30.0080.00020.61
8.2.20.0080.00017.62
8.2.10.0020.00518.01
8.2.00.0000.00717.90
8.1.280.0130.00725.92
8.1.270.0050.00518.93
8.1.260.0070.00028.09
8.1.250.0000.00828.09
8.1.240.0080.00023.74
8.1.230.0080.00419.10
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0090.00017.38
8.1.190.0040.00417.53
8.1.180.0080.00018.10
8.1.170.0070.00318.51
8.1.160.0000.00720.70
8.1.150.0070.00018.67
8.1.140.0050.00319.50
8.1.130.0070.00017.63
8.1.120.0030.00317.46
8.1.110.0000.00717.28
8.1.100.0090.00017.41
8.1.90.0040.00317.30
8.1.80.0040.00417.39
8.1.70.0070.00017.35
8.1.60.0000.00717.53
8.1.50.0000.00917.43
8.1.40.0000.00917.54
8.1.30.0000.00817.69
8.1.20.0050.00317.69
8.1.10.0070.00017.48
8.1.00.0070.00017.39
8.0.300.0080.00018.77
8.0.290.0040.00416.88
8.0.280.0000.00818.43
8.0.270.0000.00717.17
8.0.260.0000.00617.17
8.0.250.0000.00617.01
8.0.240.0030.00516.89
8.0.230.0000.00716.88
8.0.220.0030.00316.78
8.0.210.0000.00816.79
8.0.200.0030.00316.86
8.0.190.0030.00516.90
8.0.180.0040.00416.82
8.0.170.0040.00416.89
8.0.160.0000.00716.88
8.0.150.0000.00816.80
8.0.140.0000.00716.87
8.0.130.0050.00013.27
8.0.120.0000.00716.84
8.0.110.0040.00416.89
8.0.100.0040.00416.68
8.0.90.0040.00416.89
8.0.80.0090.00616.80
8.0.70.0020.00516.95
8.0.60.0000.00716.93
8.0.50.0030.00416.86
8.0.30.0080.01017.05
8.0.20.0170.00417.40
8.0.10.0000.00816.88
8.0.00.0060.01116.72
7.4.330.0000.00715.08
7.4.320.0040.00416.34
7.4.300.0030.00316.50
7.4.290.0000.00816.49
7.4.280.0040.00416.50
7.4.270.0070.00016.52
7.4.260.0030.00316.35
7.4.250.0080.00016.41
7.4.240.0000.00716.49
7.4.230.0000.00716.41
7.4.220.0070.00716.60
7.4.210.0040.01116.45
7.4.200.0000.00716.62
7.4.160.0110.00416.38
7.4.150.0110.01517.40
7.4.140.0050.01317.86
7.4.130.0040.01516.52
7.4.120.0110.01016.55
7.4.110.0140.00716.45
7.4.100.0100.00716.34
7.4.90.0140.00316.41
7.4.80.0060.01119.39
7.4.70.0100.00616.55
7.4.60.0000.01616.56
7.4.50.0120.00316.61
7.4.40.0130.00916.49
7.4.30.0110.00816.51
7.4.00.0070.00715.02
7.3.330.0030.00313.30
7.3.320.0000.00613.35
7.3.310.0070.00016.41
7.3.300.0070.00016.29
7.3.290.0080.00716.35
7.3.280.0060.01116.33
7.3.270.0160.01017.40
7.3.260.0070.01716.66
7.3.250.0120.00816.36
7.3.240.0080.00816.43
7.3.230.0120.00616.52
7.3.210.0140.00316.39
7.3.200.0070.01316.44
7.3.190.0100.01416.52
7.3.180.0040.01216.50
7.3.170.0100.00716.38
7.3.160.0100.00616.48
7.3.10.0030.00716.60
7.3.00.0060.00616.51
7.2.330.0080.00816.82
7.2.320.0030.01416.37
7.2.310.0080.00816.75
7.2.300.0040.01316.42
7.2.290.0110.00716.48
7.2.130.0050.00916.85
7.2.120.0030.00616.57
7.2.110.0060.00916.60
7.2.100.0060.00316.61
7.2.90.0030.00716.62
7.2.80.0040.01116.90
7.2.70.0050.00816.96
7.2.60.0020.01116.87
7.2.50.0070.00716.97
7.2.40.0060.00616.70
7.2.30.0110.00016.70
7.2.20.0030.01016.86
7.2.10.0100.00716.84
7.2.00.0090.00418.13
7.1.250.0040.00715.60
7.1.200.0040.00415.71
7.1.100.0000.01118.32
7.1.70.0070.00317.32
7.1.60.0180.00719.50
7.1.50.0000.01316.87
7.1.00.0000.08022.45
7.0.200.0000.00816.79
7.0.60.0100.07719.98
7.0.50.0100.04717.86
7.0.40.0070.08020.10
7.0.30.0300.06320.09
7.0.20.0300.09020.34
7.0.10.0030.08320.24
7.0.00.0100.07720.11
5.6.280.0000.04020.94
5.6.210.0000.08320.57
5.6.200.0030.06018.29
5.6.190.0100.08320.63
5.6.180.0570.07320.48
5.6.170.0230.04020.56
5.6.160.0100.07720.55
5.6.150.0000.04318.14
5.6.140.0000.07718.18
5.6.130.0100.08018.28
5.6.120.0100.08021.13
5.6.110.0000.09721.05
5.6.100.0100.06721.02
5.6.90.0070.07321.02
5.6.80.0170.07020.29
5.5.350.0130.07320.44
5.5.340.0070.07717.94
5.5.330.0000.05020.31
5.5.320.0030.08320.33
5.5.310.0300.06720.27
5.5.300.0070.04018.07
5.5.290.0070.04717.98
5.5.280.0000.09020.80
5.5.270.0170.07720.72
5.5.260.0130.04720.80
5.5.250.0130.07320.45
5.5.240.0170.07320.37

preferences:
56.55 ms | 400 KiB | 5 Q