3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class CarPrototype { protected $doors; protected $wheels; abstract function __clone(); function getDoors() { return $this->doors; } function setDoors($doors) { $this->doors = $doors; } function __toString() { echo $this->doors . ' ' . $this->wheels; } } class NormalCarPrototype extends CarPrototype { function __construct() { $this->doors = 4; $this->wheels = 4; } function __clone() { } } $car = new NormalCarPrototype(); $sandero = clone $car; $duster = clone $car; echo $sandero;

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.0110.00716.75
8.3.60.0090.00916.63
8.3.50.0080.01222.13
8.3.40.0100.00718.84
8.3.30.0070.00718.79
8.3.20.0070.00020.38
8.3.10.0080.00023.59
8.3.00.0080.00019.43
8.2.190.0150.00616.85
8.2.180.0070.01418.28
8.2.170.0160.00322.96
8.2.160.0100.01020.52
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0060.00321.92
8.2.100.0120.00317.92
8.2.90.0030.00619.22
8.2.80.0050.00317.97
8.2.70.0090.00017.63
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0090.00319.14
8.2.30.0070.00020.52
8.2.20.0000.00917.63
8.2.10.0040.00417.94
8.2.00.0040.00418.06
8.1.280.0110.00425.92
8.1.270.0080.00022.13
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.61
8.1.230.0080.00317.78
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0050.00317.35
8.1.180.0030.00618.10
8.1.170.0060.00318.51
8.1.160.0000.00722.02
8.1.150.0040.00418.88
8.1.140.0000.00919.46
8.1.130.0070.00017.75
8.1.120.0040.00417.47
8.1.110.0020.00517.54
8.1.100.0000.00817.37
8.1.90.0000.00717.41
8.1.80.0060.00317.43
8.1.70.0070.00017.46
8.1.60.0040.00417.48
8.1.50.0050.00317.51
8.1.40.0030.00617.55
8.1.30.0030.00517.61
8.1.20.0040.00417.54
8.1.10.0030.00517.45
8.1.00.0000.00817.54
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.45
8.0.270.0000.00717.26
8.0.260.0030.00317.27
8.0.250.0040.00416.91
8.0.240.0000.00717.00
8.0.230.0000.00816.91
8.0.220.0000.00716.86
8.0.210.0090.00016.84
8.0.200.0030.00317.06
8.0.190.0060.00617.05
8.0.180.0060.00316.96
8.0.170.0030.00517.04
8.0.160.0000.00816.85
8.0.150.0000.00716.85
8.0.140.0030.00716.80
8.0.130.0000.00713.43
8.0.120.0050.00316.99
8.0.110.0060.00316.95
8.0.100.0040.00416.85
8.0.90.0040.00416.80
8.0.80.0060.01617.02
8.0.70.0040.00416.75
8.0.60.0040.00416.84
8.0.50.0080.00016.84
8.0.30.0110.00517.16
8.0.20.0120.00917.40
8.0.10.0070.00017.03
8.0.00.0100.01116.92
7.4.330.0050.00015.08
7.4.320.0000.00616.54
7.4.300.0030.00316.63
7.4.290.0000.00716.61
7.4.280.0040.00416.53
7.4.270.0030.00716.61
7.4.260.0030.00716.60
7.4.250.0030.00516.39
7.4.240.0020.00616.53
7.4.230.0000.00716.72
7.4.220.0140.00316.42
7.4.210.0000.01416.47
7.4.200.0000.00716.42
7.4.160.0110.00716.55
7.4.150.0170.00717.40
7.4.140.0160.00817.86
7.4.130.0110.00716.55
7.4.120.0080.00916.48
7.4.110.0070.01316.48
7.4.100.0100.00716.69
7.4.90.0060.01116.64
7.4.80.0040.01419.39
7.4.70.0100.00716.51
7.4.60.0090.00616.33
7.4.50.0040.00416.37
7.4.40.0110.01116.59
7.4.30.0160.00316.60
7.4.00.0060.01114.75
7.3.330.0030.00313.32
7.3.320.0000.00513.37
7.3.310.0000.00716.21
7.3.300.0030.00316.30
7.3.290.0100.00716.38
7.3.280.0090.00816.32
7.3.270.0080.00817.40
7.3.260.0030.01416.73
7.3.250.0090.01116.42
7.3.240.0110.00516.45
7.3.230.0110.01116.57
7.3.210.0000.01516.35
7.3.200.0100.00616.55
7.3.190.0030.01216.55
7.3.180.0040.01416.52
7.3.170.0120.00916.67
7.3.160.0060.01016.50
7.3.120.0100.00714.92
7.3.110.0060.01214.83
7.3.100.0030.00914.84
7.3.90.0120.00314.86
7.3.80.0080.00515.04
7.3.70.0060.00914.80
7.3.60.0030.00614.61
7.3.50.0040.00814.63
7.3.40.0090.00614.69
7.3.30.0060.00314.92
7.3.20.0030.00616.46
7.3.10.0030.01016.59
7.3.00.0030.00816.82
7.2.330.0120.01116.85
7.2.320.0090.01216.71
7.2.310.0120.00316.57
7.2.300.0100.00716.80
7.2.290.0030.01416.52
7.2.250.0090.00615.09
7.2.240.0000.02114.99
7.2.230.0030.00615.27
7.2.220.0060.00915.22
7.2.210.0030.01215.30
7.2.200.0070.01015.14
7.2.190.0070.01015.05
7.2.180.0040.01115.14
7.2.170.0040.01115.14
7.2.130.0000.01116.94
7.2.120.0040.00716.84
7.2.110.0070.00717.11
7.2.100.0030.00916.81
7.2.90.0090.00316.73
7.2.80.0030.00617.06
7.2.70.0060.00617.02
7.2.60.0040.01116.96
7.2.50.0090.00316.95
7.2.40.0070.00417.20
7.2.30.0050.00516.85
7.2.20.0060.00316.68
7.2.10.0100.00016.97
7.2.00.0040.01118.10
7.1.330.0030.01015.96
7.1.320.0080.00515.60
7.1.310.0090.00915.53
7.1.300.0030.01015.77
7.1.290.0100.00015.79
7.1.280.0040.01115.81
7.1.270.0060.00615.82
7.1.260.0030.00815.65
7.1.250.0040.00715.57
7.1.240.0030.00715.77
7.1.230.0000.01115.96
7.1.220.0060.00615.79
7.1.210.0000.01315.84
7.1.200.0040.00415.48
7.1.190.0030.00815.57
7.1.180.0060.00615.69
7.1.170.0040.00415.48
7.1.160.0030.01015.54
7.1.150.0130.00015.89
7.1.140.0080.00315.96
7.1.130.0030.01015.83
7.1.120.0000.01515.97
7.1.110.0070.00715.66
7.1.100.0060.00615.50
7.1.90.0070.00415.67
7.1.80.0070.00415.98
7.1.70.0060.00616.56
7.1.60.0050.00716.60
7.1.50.0050.01016.22
7.1.40.0040.00415.75
7.1.30.0070.00315.49
7.1.20.0000.01015.64
7.1.10.0040.00715.74
7.1.00.0030.04319.03
7.0.330.0070.00315.59
7.0.320.0060.00615.61
7.0.310.0070.00415.40
7.0.300.0060.00615.41
7.0.290.0040.00715.62
7.0.280.0060.00615.18
7.0.270.0050.00515.58
7.0.260.0040.00415.57
7.0.250.0030.00915.37
7.0.240.0000.01115.39
7.0.230.0030.00615.41
7.0.220.0040.00815.25
7.0.210.0000.01015.37
7.0.200.0030.01016.04
7.0.190.0040.00815.34
7.0.180.0030.00815.13
7.0.170.0030.00915.19
7.0.160.0060.00615.45
7.0.150.0000.01115.45
7.0.140.0000.01115.11
7.0.130.0070.00415.51
7.0.120.0000.00915.43
7.0.110.0030.00615.35
7.0.100.0000.01215.54
7.0.90.0090.00615.15
7.0.80.0030.00615.34
7.0.70.0030.01015.50
7.0.60.0060.03017.70
7.0.50.0080.04016.63
7.0.40.0050.04816.84
7.0.30.0960.02516.84
7.0.20.0140.02516.65
7.0.10.0100.04616.78
7.0.00.0030.05016.79
5.6.380.0000.01414.41
5.6.370.0000.00814.66
5.6.360.0110.00014.49
5.6.350.0070.00414.24
5.6.340.0090.00614.18
5.6.330.0030.01014.50
5.6.320.0060.00614.09
5.6.310.0060.00314.54
5.6.300.0050.00314.33
5.6.290.0100.00014.58
5.6.280.0050.03817.53
5.6.270.0070.00414.02
5.6.260.0060.00614.02
5.6.250.0060.00313.98
5.6.240.0090.00014.18
5.6.230.0000.00914.19
5.6.220.0040.00814.33
5.6.210.0030.02317.40
5.6.200.0070.02716.01
5.6.190.0060.02817.52
5.6.180.0080.03717.51
5.6.170.0130.02617.52
5.6.160.0040.03217.37
5.6.150.0030.02516.20
5.6.140.0070.04216.20
5.6.130.0050.04216.22
5.6.120.0080.04417.86
5.6.110.0050.04517.66
5.6.100.0080.04317.73
5.6.90.0000.03517.79
5.6.80.0070.02217.44
5.6.70.0080.00014.22
5.6.60.0000.01014.08
5.6.50.0000.01114.19
5.6.40.0100.00314.36
5.6.30.0000.00914.15
5.6.20.0040.01214.59
5.6.10.0080.00414.41
5.6.00.0000.01014.23
5.5.380.0090.00010.87
5.5.370.0040.00411.01
5.5.360.0090.00011.21
5.5.350.2250.02315.74
5.5.340.0050.03214.69
5.5.330.0070.01815.77
5.5.320.0120.03015.60
5.5.310.0150.03515.75
5.5.300.0050.04114.49
5.5.290.0110.03414.70
5.5.280.0080.04015.96
5.5.270.0050.03916.03
5.5.260.0080.03816.07
5.5.250.0070.04215.84
5.5.240.0190.03315.61
5.5.230.0000.00911.05
5.5.220.0000.00610.98
5.5.210.0030.00310.99
5.5.200.0060.00011.30
5.5.190.0050.00511.01
5.5.180.0030.00510.99
5.5.170.0000.01011.12
5.5.160.0000.00811.27
5.5.150.0060.00311.30
5.5.140.0050.00310.98
5.5.130.0070.00311.29
5.5.120.0090.00010.93
5.5.110.0020.00511.05
5.5.100.0000.01011.05
5.5.90.0000.00711.34
5.5.80.0040.00710.72
5.5.70.0030.00311.37
5.5.60.0000.00811.21
5.5.50.0030.00611.27
5.5.40.0030.00611.17
5.5.30.0000.00710.97
5.5.20.0040.00411.24
5.5.10.0090.00011.22
5.5.00.0040.00411.23

preferences:
33.26 ms | 401 KiB | 5 Q