3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} class B { private $foo = 'foo'; private $bar; public function __construct (A $x) { $this->bar = $x; } } $b1 = new B(new A); $b2 = clone $b1; var_dump($b1); var_dump($b2);

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.0090.00618.30
8.3.50.0080.01021.14
8.3.40.0060.00918.70
8.3.30.0100.00319.04
8.3.20.0080.00020.14
8.3.10.0080.00022.10
8.3.00.0040.00422.31
8.2.180.0090.00918.39
8.2.170.0100.00322.96
8.2.160.0100.00720.39
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0050.00319.63
8.2.110.0060.00322.04
8.2.100.0060.00619.31
8.2.90.0040.00419.17
8.2.80.0050.00517.97
8.2.70.0060.00317.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0090.00018.21
8.2.30.0040.00417.86
8.2.20.0000.00717.60
8.2.10.0040.00417.71
8.2.00.0050.00317.53
8.1.280.0110.00725.92
8.1.270.0080.00020.35
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.72
8.1.230.0070.00418.91
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0040.00417.25
8.1.190.0040.00417.53
8.1.180.0000.00818.70
8.1.170.0030.00518.59
8.1.160.0080.00022.09
8.1.150.0040.00418.58
8.1.140.0000.00717.30
8.1.130.0000.00717.88
8.1.120.0000.00717.39
8.1.110.0030.00517.39
8.1.100.0040.00417.41
8.1.90.0000.00817.29
8.1.80.0040.00417.43
8.1.70.0000.00717.30
8.1.60.0040.00417.46
8.1.50.0030.00617.49
8.1.40.0040.00417.41
8.1.30.0040.00417.61
8.1.20.0000.00817.64
8.1.10.0040.00417.51
8.1.00.0040.00417.37
8.0.300.0040.00418.77
8.0.290.0070.00016.93
8.0.280.0030.00318.39
8.0.270.0070.00017.19
8.0.260.0000.00616.81
8.0.250.0030.00316.85
8.0.240.0000.00716.95
8.0.230.0060.00316.95
8.0.220.0070.00016.87
8.0.210.0080.00016.90
8.0.200.0030.00316.97
8.0.190.0040.00416.94
8.0.180.0070.00316.92
8.0.170.0030.00616.81
8.0.160.0000.00716.75
8.0.150.0030.00316.91
8.0.140.0000.00716.80
8.0.130.0000.00513.31
8.0.120.0000.00816.87
8.0.110.0050.00216.87
8.0.100.0040.00416.78
8.0.90.0000.00716.78
8.0.80.0120.00916.93
8.0.70.0000.00716.73
8.0.60.0070.00016.84
8.0.50.0000.00816.75
8.0.30.0120.00716.97
8.0.20.0170.00717.40
8.0.10.0050.00216.86
8.0.00.0070.01116.79
7.4.330.0000.00415.00
7.4.320.0030.00316.57
7.4.300.0030.00316.49
7.4.290.0000.00816.57
7.4.280.0070.00016.60
7.4.270.0030.00316.59
7.4.260.0030.00516.61
7.4.250.0040.00416.51
7.4.240.0050.00316.56
7.4.230.0000.00716.30
7.4.220.0060.01116.52
7.4.210.0080.00816.61
7.4.200.0030.00316.67
7.4.190.0030.00316.66
7.4.160.0060.01316.62
7.4.150.0120.00617.40
7.4.140.0080.01217.86
7.4.130.0130.00716.54
7.4.120.0090.01116.38
7.4.110.0030.01516.29
7.4.100.0060.01216.33
7.4.90.0090.00916.37
7.4.80.0140.00319.39
7.4.70.0090.00816.54
7.4.60.0070.01016.43
7.4.50.0000.00516.27
7.4.40.0130.00322.77
7.4.30.0050.01116.57
7.4.00.0070.01015.06
7.3.330.0000.00513.11
7.3.320.0000.00513.22
7.3.310.0030.00316.14
7.3.300.0020.00516.25
7.3.290.0080.00516.24
7.3.280.0110.00516.23
7.3.270.0110.00817.40
7.3.260.0110.00816.52
7.3.250.0110.00716.19
7.3.240.0150.00916.32
7.3.230.0120.00616.39
7.3.210.0060.01216.30
7.3.200.0110.00619.39
7.3.190.0110.00516.27
7.3.180.0110.00716.60
7.3.170.0170.00016.30
7.3.160.0130.00916.32
7.3.120.0060.00914.40
7.3.10.0080.00816.48
7.3.00.0060.00616.48
7.2.330.0060.01316.67
7.2.320.0060.01216.64
7.2.310.0110.00616.62
7.2.300.0070.01016.62
7.2.290.0090.00716.68
7.2.130.0030.01016.89
7.2.120.0040.00716.88
7.2.110.0030.00816.82
7.2.100.0060.00616.94
7.2.90.0010.01016.83
7.2.80.0010.00916.99
7.2.70.0040.00916.94
7.2.60.0040.00716.78
7.2.50.0040.00716.78
7.2.40.0070.00116.68
7.2.30.0060.00616.82
7.2.20.0070.00716.88
7.2.10.0070.00517.00
7.2.00.0060.00917.49
7.1.250.0050.00515.95
7.1.200.0060.00915.67
7.1.100.0060.01218.13
7.1.70.0100.00017.01
7.1.60.0100.01319.82
7.1.50.0090.00617.05
7.1.00.0030.03322.54
7.0.200.0060.00316.83
7.0.140.0070.07022.04
7.0.70.4670.04020.02
7.0.60.0030.08720.07
7.0.50.0030.08717.84
7.0.40.0130.07720.10
7.0.30.0170.03020.07
7.0.20.0270.05020.26
7.0.10.0300.04320.06
7.0.00.0130.06720.13
5.6.280.0070.07021.02
5.6.210.0030.08320.70
5.6.200.0000.05318.19
5.6.190.0130.07320.39
5.6.180.0230.06720.30
5.6.170.0400.05720.51
5.6.160.0070.03720.54
5.6.150.0100.03318.21
5.6.140.0070.03718.14
5.6.130.0100.06318.18
5.6.120.0070.04021.04
5.6.110.0170.07320.96
5.6.100.0030.05020.98
5.6.90.0130.07721.10
5.6.80.0070.08020.36
5.6.70.0170.08720.48
5.5.350.0030.04020.35
5.5.340.0130.03018.04
5.5.330.0000.05020.37
5.5.320.0130.05020.32
5.5.310.0300.06720.27
5.5.300.0070.06018.02
5.5.290.0030.08317.98
5.5.280.0130.07720.73
5.5.270.0100.08020.76
5.5.260.0030.07320.87
5.5.250.0100.07720.59
5.5.240.0030.05720.18
5.4.450.0130.04019.16
5.4.440.0100.04319.27
5.4.430.0170.06019.48
5.4.420.0200.03319.41
5.4.410.0100.04019.44
5.4.400.0230.03719.00
5.4.390.0170.03719.16
5.4.380.0200.06318.98
5.4.370.0270.07018.95
5.4.360.0330.06319.13
5.4.350.0230.07319.24
5.4.340.0230.07719.32
5.4.320.0230.06718.85
5.4.310.0270.05019.23
5.4.300.0300.07018.84
5.4.290.0270.06718.98
5.4.280.0200.03719.21
5.4.270.0300.05718.99
5.4.260.0270.03318.99
5.4.250.0230.07719.25
5.4.240.0330.06719.17
5.4.230.0230.04018.99
5.4.220.0230.04019.23
5.4.210.0130.04319.21
5.4.200.0270.04718.86
5.4.190.0270.05019.16
5.4.180.0270.05719.15
5.4.170.0230.06319.18
5.4.160.0270.06019.20
5.4.150.0300.06718.92
5.4.140.0270.04016.73
5.4.130.0170.06016.56
5.4.120.0270.06316.55
5.4.110.0330.08016.50
5.4.100.0270.06716.42
5.4.90.0300.06016.50
5.4.80.0370.07316.40
5.4.70.0230.03716.39
5.4.60.0200.03316.43
5.4.50.0200.04716.57
5.4.40.0230.04016.25
5.4.30.0130.06716.55
5.4.20.0270.04016.53
5.4.10.0230.05316.16
5.4.00.0200.07315.76
5.3.290.0170.07314.58
5.3.280.0230.07314.71
5.3.270.0230.06714.69
5.3.260.0200.07314.62
5.3.250.0370.05714.51
5.3.240.0200.04014.77
5.3.230.0370.05714.50
5.3.220.0230.04714.54
5.3.210.0270.06314.56
5.3.200.0230.07314.57
5.3.190.0200.06014.48
5.3.180.0070.05714.62
5.3.170.0300.06314.57
5.3.160.0200.03714.79
5.3.150.0200.05014.61
5.3.140.0230.05014.46
5.3.130.0200.07714.71
5.3.120.0370.06314.52
5.3.110.0170.08014.47
5.3.100.0270.07314.06
5.3.90.0300.05713.92
5.3.80.0170.04714.07
5.3.70.0200.04314.10
5.3.60.0200.07014.05
5.3.50.0200.07713.92
5.3.40.0200.07714.03
5.3.30.0200.05014.13
5.3.20.0230.06713.76
5.3.10.0370.05013.57
5.3.00.0200.06313.54
5.2.170.0230.05712.27
5.2.160.0130.06312.27
5.2.150.0200.05312.27
5.2.140.0200.06012.27
5.2.130.0330.04712.27
5.2.120.0100.06712.27
5.2.110.0300.05012.27
5.2.100.0270.05312.27
5.2.90.0270.04712.27
5.2.80.0170.04312.27
5.2.70.0230.03012.27
5.2.60.0200.03712.27
5.2.50.0200.05712.27
5.2.40.0170.03012.27
5.2.30.0230.04712.27
5.2.20.0130.04712.27
5.2.10.0170.02712.27
5.2.00.0130.03312.27
5.1.60.0170.02012.27
5.1.50.0130.02312.27
5.1.40.0170.05012.27
5.1.30.0130.03712.27
5.1.20.0230.02712.27
5.1.10.0130.03312.27
5.1.00.0070.03712.27
5.0.50.0130.04012.27
5.0.40.0070.03712.27
5.0.30.0130.03712.27
5.0.20.0100.02712.27
5.0.10.0100.02012.27
5.0.00.0100.04012.27
4.4.90.0100.04012.27
4.4.80.0070.01712.27
4.4.70.0130.02712.27
4.4.60.0030.03012.27
4.4.50.0100.02012.27
4.4.40.0030.02712.27
4.4.30.0070.03312.27
4.4.20.0130.01312.27
4.4.10.0170.02712.27
4.4.00.0030.04712.27
4.3.110.0170.02712.27
4.3.100.0070.02312.27
4.3.90.0130.01012.27
4.3.80.0070.04712.27
4.3.70.0100.03312.27
4.3.60.0070.03012.27
4.3.50.0130.03012.27
4.3.40.0030.04312.27
4.3.30.0100.03312.27
4.3.20.0000.03312.27
4.3.10.0030.01712.27
4.3.00.0070.01712.27

preferences:
41.87 ms | 401 KiB | 5 Q