3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public $bar; } class Foo { /** * @var Bar */ public $bar; } $bar = new Bar(); $bar->bar = 'BAR'; $foo = new Foo(); $foo->bar = $bar; $clonedFoo = clone($foo); assert($clonedFoo !== $foo); assert($clonedFoo->bar !== $foo->bar);

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.70.0120.00418.55
8.3.60.0110.00718.43
8.3.50.0160.00621.04
8.3.40.0130.00618.95
8.3.30.0120.00318.79
8.3.20.0030.01220.16
8.3.10.0080.00023.63
8.3.00.0040.00422.32
8.2.180.0070.01116.88
8.2.170.0100.01022.96
8.2.160.0070.01020.35
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00517.63
8.2.110.0070.00320.52
8.2.100.0110.00017.72
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0040.00717.93
8.2.50.0060.00618.07
8.2.40.0040.00420.98
8.2.30.0000.00719.83
8.2.20.0000.00817.50
8.2.10.0080.00017.91
8.2.00.0070.00017.98
8.1.280.0070.01025.92
8.1.270.0040.00420.36
8.1.260.0100.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00323.54
8.1.230.0110.00022.18
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.00817.23
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0050.00318.65
8.1.160.0000.00721.98
8.1.150.0000.00818.81
8.1.140.0030.00517.38
8.1.130.0030.00517.50
8.1.120.0020.00517.37
8.1.110.0050.00217.43
8.1.100.0000.00717.38
8.1.90.0040.00417.28
8.1.80.0040.00417.33
8.1.70.0050.00317.38
8.1.60.0000.00917.50
8.1.50.0000.00817.41
8.1.40.0030.00617.50
8.1.30.0060.00317.62
8.1.20.0000.00717.65
8.1.10.0040.00817.55
8.1.00.0040.00417.54
8.0.300.0030.00518.77
8.0.290.0000.00716.75
8.0.280.0030.00318.29
8.0.270.0030.00317.28
8.0.260.0030.00317.02
8.0.250.0040.00416.85
8.0.240.0000.00817.04
8.0.230.0030.00316.86
8.0.220.0070.00016.82
8.0.210.0000.00816.77
8.0.200.0000.00616.88
8.0.190.0000.00816.83
8.0.180.0000.00716.79
8.0.170.0040.00416.90
8.0.160.0050.00216.95
8.0.150.0030.00316.84
8.0.140.0070.00016.77
8.0.130.0050.00313.27
8.0.120.0040.00416.88
8.0.110.0020.00516.78
8.0.100.0000.00716.82
8.0.90.0050.00316.89
8.0.80.0100.01316.84
8.0.70.0030.00516.80
8.0.60.0030.00516.66
8.0.50.0050.00216.77
8.0.30.0150.00317.05
8.0.20.0130.00617.40
8.0.10.0000.00717.05
8.0.00.0080.01116.69
7.4.330.0000.00515.14
7.4.320.0060.00016.49
7.4.300.0000.00616.34
7.4.290.0030.00516.57
7.4.280.0060.00316.56
7.4.270.0000.00716.55
7.4.260.0070.00016.57
7.4.250.0000.00716.44
7.4.240.0040.00316.59
7.4.230.0050.00216.57
7.4.220.0060.01316.65
7.4.210.0030.01216.70
7.4.200.0070.00016.34
7.4.160.0130.00316.41
7.4.150.0120.00617.40
7.4.140.0080.01517.86
7.4.130.0130.00716.55
7.4.120.0120.00816.52
7.4.110.0130.00316.48
7.4.100.0060.01316.50
7.4.90.0170.00016.53
7.4.80.0150.00819.39
7.4.70.0140.00316.59
7.4.60.0030.01316.58
7.4.50.0000.00816.39
7.4.40.0070.01016.62
7.4.30.0100.00716.39
7.4.00.0140.00315.09
7.3.330.0000.00513.29
7.3.320.0030.00313.49
7.3.310.0000.00716.59
7.3.300.0030.00316.34
7.3.290.0040.01016.41
7.3.280.0110.00816.40
7.3.270.0090.00917.40
7.3.260.0070.01016.41
7.3.250.0100.00816.46
7.3.240.0120.01216.39
7.3.230.0140.00516.39
7.3.210.0060.01016.43
7.3.200.0190.00719.39
7.3.190.0030.01316.53
7.3.180.0060.00916.47
7.3.170.0060.01216.63
7.3.160.0060.01316.39
7.3.10.0030.01016.63
7.3.00.0120.00316.55
7.2.330.0110.00816.53
7.2.320.0100.00716.61
7.2.310.0090.00916.45
7.2.300.0060.01216.73
7.2.290.0130.00916.61
7.2.130.0000.01416.72
7.2.120.0000.01216.94
7.2.110.0000.01216.45
7.2.100.0040.00416.56
7.2.90.0060.00916.87
7.2.80.0160.00216.61
7.2.70.0060.00916.94
7.2.60.0080.00616.85
7.2.50.0000.01016.72
7.2.40.0080.00516.99
7.2.30.0130.00616.92
7.2.20.0080.00816.41
7.2.10.0050.00616.68
7.2.00.0050.00818.31
7.1.250.0120.00015.52
7.1.200.0070.00415.82
7.1.100.0040.00418.33
7.1.70.0030.01016.88
7.1.60.0100.01320.03
7.1.50.0070.01417.03
7.1.00.0070.07022.32
7.0.200.0240.00714.97
7.0.100.0070.07320.01
7.0.90.0230.05020.03
7.0.80.0030.04319.94
7.0.70.0330.07019.98
7.0.60.0230.07720.04
7.0.50.0000.08320.34
7.0.40.0070.07320.11
7.0.30.0070.08720.11
7.0.20.0070.07320.13
7.0.10.0030.08320.04
7.0.00.0070.06720.06
5.6.280.0030.03021.09
5.6.250.0200.07720.81
5.6.240.0030.08720.71
5.6.230.0200.03720.58
5.6.220.0130.07720.63
5.6.210.0030.04020.59
5.6.200.0100.07021.07
5.6.190.0030.05720.95
5.6.180.0130.07720.89
5.6.170.0100.05320.93
5.6.160.0070.03721.05
5.6.150.0030.06721.07
5.6.140.0130.07321.05
5.6.130.0030.07021.11
5.6.120.0100.07021.11
5.6.110.0000.09021.16
5.6.100.0030.04721.14
5.6.90.0070.08721.09
5.6.80.0100.07720.32
5.6.70.0100.06320.51
5.6.60.0100.04720.48
5.6.50.0070.07720.33
5.6.40.0070.04720.49
5.6.30.0100.07720.43
5.6.20.0100.07320.41
5.6.10.0000.05320.38
5.6.00.0030.08020.36
5.5.380.0170.06320.40
5.5.370.0000.08020.36
5.5.360.0070.08320.38
5.5.350.0100.07720.37
5.5.340.0170.07320.88
5.5.330.0070.04020.80
5.5.320.0100.07720.82
5.5.310.0030.05020.93
5.5.300.0000.08020.80
5.5.290.0000.08320.92
5.5.280.0130.05020.77
5.5.270.0070.08020.90
5.5.260.0130.06320.88
5.5.250.0170.07020.61
5.5.240.0030.05020.31
5.5.230.0070.06720.10
5.5.220.0100.04020.01
5.5.210.0130.06720.26
5.5.200.0070.07320.11
5.5.190.0100.07719.99
5.5.180.0030.04320.23
5.5.160.0130.06020.25
5.5.150.0170.04720.21
5.5.140.0100.06320.08
5.5.130.0030.07020.18
5.5.120.0100.07020.24
5.5.110.0030.04720.20
5.5.100.0070.07320.11
5.5.90.0000.04019.97
5.5.80.0030.08320.10
5.5.70.0200.06020.10
5.5.60.0030.05020.04
5.5.50.0030.08020.09
5.5.40.0000.09020.05
5.5.30.0030.06320.09
5.5.20.0100.08020.04
5.5.10.0130.07020.09
5.5.00.0070.08020.02
5.4.450.0000.04319.51
5.4.440.0130.04719.37
5.4.430.0200.06319.48
5.4.420.0030.05719.45
5.4.410.0130.07019.38
5.4.400.0070.07019.21
5.4.390.0030.08318.86
5.4.380.0130.05019.23
5.4.370.0070.07718.90
5.4.360.0030.05019.17
5.4.350.0100.06718.95
5.4.340.0030.05719.14
5.4.320.0070.07718.95
5.4.310.0100.05718.85
5.4.300.0100.03318.95
5.4.290.0100.06319.14
5.4.280.0000.09018.93
5.4.270.0070.06719.14
5.4.260.0000.05018.87
5.4.250.0030.03719.04
5.4.240.0070.06019.04
5.4.230.0030.07319.03
5.4.220.0100.07019.05
5.4.210.0070.03318.84
5.4.200.0130.06718.89
5.4.190.0100.07719.24
5.4.180.0100.05719.02
5.4.170.0030.03718.99
5.4.160.0100.06319.02
5.4.150.0070.08019.02
5.4.140.0070.07316.59
5.4.130.0030.07016.49
5.4.120.0070.05016.46
5.4.110.0070.07016.53
5.4.100.0000.08016.56
5.4.90.0000.07716.40
5.4.80.0070.04016.55
5.4.70.0070.06716.51
5.4.60.0070.04016.49
5.4.50.0070.06716.30
5.4.40.0070.07316.55
5.4.30.0100.06316.36
5.4.20.0000.04316.29
5.4.10.0030.06716.40
5.4.00.0070.07015.93

preferences:
60.43 ms | 404 KiB | 6 Q