3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { final protected function __clone() { throw new Exception("No cloning!"); } } class B extends A { // this should probably not be legal function copy() { return clone $this; } } var_dump((new B)->copy());

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.4.120.0120.00820.57
8.4.110.0110.00817.96
8.4.100.0160.00517.98
8.4.90.0090.01022.11
8.4.80.0090.01118.83
8.4.70.0050.01018.96
8.4.60.0090.00818.88
8.4.50.0120.00818.78
8.4.40.0190.00017.69
8.4.30.0090.00618.72
8.4.20.0060.01319.81
8.4.10.0070.01319.50
8.3.250.0100.00919.12
8.3.240.0110.00816.96
8.3.230.0070.01216.81
8.3.220.0030.00518.80
8.3.210.0130.00716.83
8.3.200.0060.00516.66
8.3.190.0110.00916.98
8.3.180.0090.00918.84
8.3.170.0110.00718.81
8.3.160.0060.01218.48
8.3.150.0110.00719.12
8.3.140.0040.00418.96
8.3.130.0030.00518.58
8.3.120.0050.00318.81
8.3.110.0110.00020.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0040.00418.43
8.3.70.0090.00616.63
8.3.60.0110.00716.63
8.3.50.0070.01024.41
8.3.40.0090.00619.02
8.3.30.0000.01418.79
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0130.00616.73
8.2.280.0120.00718.52
8.2.270.0090.00016.62
8.2.260.0030.00617.06
8.2.250.0120.00618.58
8.2.240.0030.00616.97
8.2.230.0080.00022.58
8.2.220.0070.00437.54
8.2.210.0040.00426.77
8.2.200.0060.00316.38
8.2.190.0120.00918.16
8.2.180.0070.00725.92
8.2.170.0070.00718.82
8.2.160.0060.00822.96
8.2.150.0100.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0070.00026.35
8.2.110.0030.00620.82
8.2.100.0060.00917.70
8.2.90.0030.00719.02
8.2.80.0080.00017.97
8.2.70.0030.00517.63
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0070.00018.03
8.2.30.0080.00018.06
8.2.20.0040.00418.00
8.2.10.0070.00019.25
8.2.00.0050.00319.25
8.1.330.0110.00716.08
8.1.320.0130.00617.86
8.1.310.0160.00316.59
8.1.300.0030.00619.90
8.1.290.0090.00030.84
8.1.280.0040.01125.92
8.1.270.0060.00323.99
8.1.260.0070.01128.09
8.1.250.0120.00628.09
8.1.240.0040.00421.39
8.1.230.0110.00022.31
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0040.00418.66
8.1.160.0050.00318.70
8.1.150.0070.00018.82
8.1.140.0000.00818.88
8.1.130.0030.00520.02
8.1.120.0040.00417.39
8.1.110.0080.00017.29
8.1.100.0030.00517.40
8.1.90.0050.00317.43
8.1.80.0050.00517.42
8.1.70.0000.00717.41
8.1.60.0050.00317.50
8.1.50.0120.00017.47
8.1.40.0020.00517.37
8.1.30.0090.00017.43
8.1.20.0000.00717.49
8.1.10.0100.00017.41
8.1.00.0040.00417.44
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0000.00818.44
8.0.270.0000.00717.92
8.0.260.0030.00318.38
8.0.250.0030.00316.86
8.0.240.0000.00916.95
8.0.230.0000.00716.98
8.0.220.0000.00816.93
8.0.210.0030.00316.92
8.0.200.0000.00716.84
8.0.190.0070.00017.01
8.0.180.0000.01016.91
8.0.170.0030.00516.85
8.0.160.0040.00416.93
8.0.150.0080.00016.93
8.0.140.0000.00716.93
8.0.130.0000.00513.41
8.0.120.0000.00716.99
8.0.110.0080.00017.07
8.0.100.0070.00016.99
8.0.90.0090.00016.89
8.0.80.0070.01116.90
8.0.70.0000.00817.06
8.0.60.0030.00316.92
8.0.50.0080.00016.81
8.0.30.0140.00317.15
8.0.20.0140.00717.21
8.0.10.0040.00417.08
8.0.00.0120.00616.99
7.4.330.0050.00015.55
7.4.320.0000.00716.54
7.4.300.0040.00416.54
7.4.290.0070.00016.51
7.4.280.0040.00416.52
7.4.270.0040.00416.41
7.4.260.0030.00313.20
7.4.250.0000.00716.52
7.4.240.0060.00216.53
7.4.230.0040.00416.24
7.4.220.0000.00716.64
7.4.210.0060.00916.53
7.4.200.0030.00316.28
7.4.130.0150.00416.51
7.4.120.0090.01216.50
7.4.110.0090.00916.34
7.4.100.0090.00916.44
7.4.90.0060.01516.46
7.4.80.0110.00819.39
7.4.70.0100.01116.44
7.4.60.0120.00616.67
7.4.50.0090.00916.30
7.4.40.0060.01116.63
7.4.30.0150.00616.48
7.4.20.0090.01216.15
7.4.10.0070.01016.24
7.4.00.0100.00716.65
7.3.330.0070.00016.37
7.3.320.0000.00513.36
7.3.310.0030.00316.31
7.3.300.0000.00816.44
7.3.290.0100.00716.34
7.3.260.0100.00716.61
7.3.240.0130.00616.46
7.3.230.0060.01216.29
7.3.210.0140.00516.36
7.3.200.0140.00916.34
7.3.190.0030.01316.34
7.3.180.0120.00516.27
7.3.170.0050.01216.52
7.3.160.0090.00616.36
7.3.150.0140.00316.57
7.3.140.0100.00716.55
7.3.130.0090.00916.34
7.3.120.0030.01516.36
7.3.110.0060.01116.58
7.3.100.0030.01716.54
7.3.90.0090.00616.32
7.3.80.0110.00716.41
7.3.70.0040.01616.25
7.3.60.0110.00616.39
7.3.50.0150.00316.40
7.3.40.0110.01116.34
7.3.30.0120.01016.36
7.3.20.0080.00916.32
7.3.10.0140.00316.36
7.3.00.0080.01216.27
7.2.330.0110.00616.52
7.2.320.0070.01416.56
7.2.310.0140.00316.55
7.2.300.0120.00516.37
7.2.290.0080.00816.34
7.2.280.0030.01416.54
7.2.270.0150.00416.34
7.2.260.0130.00316.64
7.2.250.0040.01216.52
7.2.240.0090.00916.47
7.2.230.0100.00716.38
7.2.220.0060.01516.58
7.2.210.0090.01216.61
7.2.200.0130.00316.50
7.2.190.0060.01216.43
7.2.180.0110.00616.39
7.2.170.0150.00816.45
7.2.160.0130.00516.61
7.2.150.0090.01316.48
7.2.140.0250.01116.63
7.2.130.0090.01216.60
7.2.120.0150.00716.49
7.2.110.0120.01216.55
7.2.100.0120.00916.53
7.2.90.0110.00716.50
7.2.80.0130.00616.65
7.2.70.0110.00816.48
7.2.60.0110.00716.52
7.2.50.0110.00716.47
7.2.40.0060.01116.57
7.2.30.0070.01116.66
7.2.20.0200.00016.49
7.2.10.0110.00716.53
7.2.00.0130.00316.46

preferences:
28.75 ms | 403 KiB | 5 Q