3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $test; function __construct() { $test = 999; } } class B extends A { protected $test2; function __construct() { $test2 = 99999; } } class C extends B { protected $test; protected $test2; function Myfunction() { echo 'VAL: ' . $test; echo 'VAL2: ' . $test2; } } $obj = new C; $obj->Myfunction(); ?>

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.0050.01321.92
8.3.40.0110.00418.57
8.3.30.0160.00018.75
8.3.20.0040.00418.48
8.3.10.0050.00319.18
8.3.00.0060.00323.51
8.2.180.0210.00016.50
8.2.170.0100.01022.96
8.2.160.0100.00320.44
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00421.08
8.2.110.0090.00019.39
8.2.100.0060.00618.22
8.2.90.0000.00919.08
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0050.00317.91
8.2.50.0040.00418.10
8.2.40.0030.00620.46
8.2.30.0050.00521.27
8.2.20.0040.00417.71
8.2.10.0040.00417.79
8.2.00.0080.00017.80
8.1.280.0140.00425.92
8.1.270.0070.00023.99
8.1.260.0130.00726.35
8.1.250.0000.00828.09
8.1.240.0090.00022.57
8.1.230.0050.00520.32
8.1.220.0000.00817.79
8.1.210.0030.00518.77
8.1.200.0000.00817.35
8.1.190.0030.00717.23
8.1.180.0040.00418.10
8.1.170.0000.00818.34
8.1.160.0040.00422.08
8.1.150.0050.00218.47
8.1.140.0040.00417.38
8.1.130.0030.00317.75
8.1.120.0000.00717.45
8.1.110.0040.00417.30
8.1.100.0000.00717.35
8.1.90.0000.00717.38
8.1.80.0040.00417.45
8.1.70.0040.00417.37
8.1.60.0040.00417.59
8.1.50.0000.00817.48
8.1.40.0000.00817.49
8.1.30.0040.00417.66
8.1.20.0040.00417.67
8.1.10.0000.00917.56
8.1.00.0030.00617.51
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.36
8.0.270.0000.00717.24
8.0.260.0070.00016.88
8.0.250.0000.00716.99
8.0.240.0030.00616.94
8.0.230.0040.00416.99
8.0.220.0090.00016.98
8.0.210.0030.00316.96
8.0.200.0030.00516.88
8.0.190.0000.00816.98
8.0.180.0050.00316.85
8.0.170.0000.00716.99
8.0.160.0040.00416.91
8.0.150.0000.00816.98
8.0.140.0050.00216.75
8.0.130.0000.00513.41
8.0.120.0040.00416.81
8.0.110.0080.00016.77
8.0.100.0050.00216.91
8.0.90.0070.00016.77
8.0.80.0070.01016.87
8.0.70.0040.00416.74
8.0.60.0070.00016.75
8.0.50.0100.00016.81
8.0.30.0080.01016.84
8.0.20.0140.00517.40
8.0.10.0040.00417.07
8.0.00.0100.00816.69
7.4.330.0050.00014.75
7.4.320.0030.00316.57
7.4.300.0000.00716.46
7.4.290.0030.00316.55
7.4.280.0040.00416.59
7.4.270.0030.00316.50
7.4.260.0000.00713.23
7.4.250.0000.00716.53
7.4.240.0030.00316.49
7.4.230.0030.00316.70
7.4.220.0060.00916.58
7.4.210.0030.01316.62
7.4.200.0030.00316.71
7.4.190.0040.00416.66
7.4.160.0130.01016.50
7.4.150.0090.00917.40
7.4.140.0140.00517.86
7.4.130.0060.01116.68
7.4.120.0060.01116.54
7.4.110.0070.01016.50
7.4.100.0060.01216.55
7.4.90.0120.00616.42
7.4.80.0040.01219.39
7.4.70.0100.00716.49
7.4.60.0030.01316.36
7.4.50.0000.00416.51
7.4.40.0030.00922.52
7.4.30.0170.00016.55
7.4.00.0070.00814.88
7.3.330.0000.00513.25
7.3.320.0030.00313.16
7.3.310.0030.00316.33
7.3.300.0040.00416.30
7.3.290.0060.00916.27
7.3.280.0070.00916.28
7.3.270.0060.01817.40
7.3.260.0090.00918.24
7.3.250.0140.00716.42
7.3.240.0060.01516.33
7.3.230.0060.01116.39
7.3.210.0100.00616.43
7.3.200.0100.00719.39
7.3.190.0070.01016.28
7.3.180.0080.00816.41
7.3.170.0060.00916.41
7.3.160.0110.01116.32
7.3.120.0070.01014.93
7.3.110.0100.00714.97
7.3.100.0090.00614.93
7.3.90.0060.00615.04
7.3.80.0040.01114.93
7.3.70.0030.00914.64
7.3.60.0090.00014.54
7.3.50.0070.00414.84
7.3.40.0110.00714.77
7.3.30.0080.00514.94
7.3.20.0100.00316.69
7.3.10.0070.00716.57
7.3.00.0040.00416.39
7.2.330.0120.00616.74
7.2.320.0070.01016.41
7.2.310.0130.00916.66
7.2.300.0030.01416.70
7.2.290.0070.01016.56
7.2.250.0070.01314.89
7.2.240.0030.01315.18
7.2.230.0040.01115.09
7.2.220.0110.00414.58
7.2.210.0060.00914.78
7.2.200.0030.00915.05
7.2.190.0070.01015.18
7.2.180.0060.00915.13
7.2.170.0110.00814.94
7.2.00.0030.00619.44
7.1.330.0070.00715.54
7.1.320.0040.00715.52
7.1.310.0040.01115.96
7.1.300.0070.00415.43
7.1.290.0000.01515.46
7.1.280.0060.00315.29
7.1.270.0030.01015.57
7.1.260.0120.00315.61
7.1.200.0070.00715.43
7.1.100.0040.00817.88
7.1.70.0000.00917.00
7.1.60.0140.01119.40
7.1.50.0260.01334.63
7.1.00.0000.03722.54
7.0.200.0040.00416.72
7.0.140.0130.06322.07
7.0.70.0070.06021.66
7.0.60.0000.06321.58
7.0.50.0100.07022.10
7.0.40.0070.08020.12
7.0.30.0000.09020.14
7.0.20.0070.08720.19
7.0.10.0000.06320.10
7.0.00.0030.05319.95
5.6.280.0000.07720.81
5.6.220.0030.04720.68
5.6.210.0070.04720.47
5.6.200.0030.08320.97
5.6.190.0000.09021.04
5.6.180.0070.07721.17
5.6.170.0070.07721.11
5.6.160.0000.05720.96
5.6.150.0000.09021.18
5.6.140.0030.08320.95
5.6.130.0070.05320.94
5.6.120.0070.06021.10
5.6.110.0000.06721.11
5.6.100.0000.06021.04
5.6.90.0100.05321.15
5.6.80.0070.08020.50
5.6.70.0070.05720.55
5.6.60.0000.08320.54
5.6.50.0030.08020.50
5.6.40.0000.08320.47
5.6.30.0100.06320.40
5.6.20.0070.07720.39
5.6.10.0000.07020.32
5.6.00.0000.06720.45
5.5.360.0030.06720.41
5.5.350.0000.04320.43
5.5.340.0030.08320.81
5.5.330.0100.08020.88
5.5.320.0030.08320.77
5.5.310.0030.08020.87
5.5.300.0070.08020.79
5.5.290.0030.08320.87
5.5.280.0000.07720.88
5.5.270.0030.08020.80
5.5.260.0030.08020.80
5.5.250.0230.06020.46
5.5.240.0030.08020.27
5.5.230.0000.07020.27
5.5.220.0000.06320.27
5.5.210.0030.08020.03
5.5.200.0070.08020.13
5.5.190.0070.07720.24
5.5.180.0070.08020.27
5.5.160.0070.06320.00
5.5.150.0030.08020.19
5.5.140.0000.08020.08
5.5.130.0070.07320.15
5.5.120.0130.07020.22
5.5.110.0070.07320.23
5.5.100.0070.07720.09
5.5.90.0070.07720.05
5.5.80.0070.08020.08
5.5.70.0070.08020.11
5.5.60.0030.04720.15
5.5.50.0000.05020.09
5.5.40.0030.08019.93
5.5.30.0100.06720.12
5.5.20.0000.07019.94
5.5.10.0000.08319.93
5.5.00.0130.06020.13
5.4.450.0030.07719.38
5.4.440.0030.05719.20
5.4.430.0000.06719.48
5.4.420.0100.07319.20
5.4.410.0000.07019.32
5.4.400.0070.07019.11
5.4.390.0070.07719.13
5.4.380.0030.08019.23
5.4.370.0000.08019.16
5.4.360.0100.07019.04
5.4.350.0000.06019.10
5.4.340.0070.07719.16
5.4.320.0000.06719.14
5.4.310.0070.04719.13
5.4.300.0030.07319.13
5.4.290.0030.04019.13
5.4.280.0070.07319.12
5.4.270.0030.06719.09
5.4.260.0030.06019.04
5.4.250.0030.07019.17
5.4.240.0100.07018.94
5.4.230.0100.06319.04
5.4.220.0030.07719.02
5.4.210.0030.07018.94
5.4.200.0030.03719.02
5.4.190.0000.04019.04
5.4.180.0030.08319.19
5.4.170.0070.07718.89
5.4.160.0030.05319.07
5.4.150.0070.06018.86
5.4.140.0100.07016.31
5.4.130.0030.07316.46
5.4.120.0030.07016.52
5.4.110.0070.05716.39
5.4.100.0030.03716.42
5.4.90.0030.03316.49
5.4.80.0030.04316.52
5.4.70.0000.05016.38
5.4.60.0000.08016.46
5.4.50.0000.05316.43
5.4.40.0030.07016.38
5.4.30.0030.05716.32
5.4.20.0070.04016.44
5.4.10.0100.05016.39
5.4.00.0000.04315.91
5.3.290.0000.06315.73
5.3.280.0070.06715.73
5.3.270.0070.08015.73
5.3.260.0000.06015.73
5.3.250.0070.07315.73
5.3.240.0000.06015.73
5.3.230.0070.07715.73
5.3.220.0030.06715.73
5.3.210.0170.06715.73
5.3.200.0070.07315.73
5.3.190.0000.06715.73
5.3.180.0000.07015.73
5.3.170.0030.03715.73
5.3.160.0070.07715.73
5.3.150.0070.07315.73
5.3.140.0030.06315.73
5.3.130.0070.07315.73
5.3.120.0000.06715.73
5.3.110.0100.07015.73
5.3.100.0030.04315.73
5.3.90.0070.07015.73
5.3.80.0000.05315.73
5.3.70.0000.04315.73
5.3.60.0030.04015.73
5.3.50.0030.07315.73
5.3.40.0030.04015.73
5.3.30.0100.06715.73
5.3.20.0070.06315.73
5.3.10.0030.04715.73
5.3.00.0070.06015.73
5.2.170.0000.04315.73
5.2.160.0000.05715.73
5.2.150.0070.05715.73
5.2.140.0070.05715.73
5.2.130.0000.03715.73
5.2.120.0000.06015.73
5.2.110.0000.06715.73
5.2.100.0030.03015.73
5.2.90.0000.04315.73
5.2.80.0030.05715.73
5.2.70.0030.05315.73
5.2.60.0000.06315.73
5.2.50.0000.04315.73
5.2.40.0100.05715.73
5.2.30.0030.05715.73
5.2.20.0030.06015.73
5.2.10.0000.06315.73
5.2.00.0030.05315.73
5.1.60.0000.05315.73
5.1.50.0030.05315.73
5.1.40.0000.06015.73
5.1.30.0000.03715.73
5.1.20.0070.03715.73
5.1.10.0000.04315.73
5.1.00.0030.04715.73
5.0.50.0070.03715.73
5.0.40.0030.04015.73
5.0.30.0070.05315.73
5.0.20.0000.04315.73
5.0.10.0030.04015.73
5.0.00.0030.04315.73
4.4.90.0030.03315.73
4.4.80.0030.02315.73
4.4.70.0030.03315.73
4.4.60.0030.02315.73
4.4.50.0070.03015.73
4.4.40.0000.04715.73
4.4.30.0000.02715.73
4.4.20.0030.03715.73
4.4.10.0030.03315.73
4.4.00.0030.05015.73
4.3.110.0030.03315.73
4.3.100.0000.03715.73
4.3.90.0000.03015.73
4.3.80.0070.05015.73
4.3.70.0030.03315.73
4.3.60.0000.03015.73
4.3.50.0000.03315.73
4.3.40.0000.05315.73
4.3.30.0030.03315.73
4.3.20.0000.02715.73
4.3.10.0070.03315.73
4.3.00.0030.03315.73

preferences:
46.01 ms | 401 KiB | 5 Q