3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {protected $a = 'A'; /*public function __get($f){ return 'field_'.$f; }*/} class B extends A {protected $a = 'B';} class C extends A { public function foo() { $b = new B(); echo $b->a; } } $c = new C(); $c->foo();

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.0100.01018.55
8.3.50.0090.00721.95
8.3.40.0090.00918.84
8.3.30.0090.00619.22
8.3.20.0070.00020.13
8.3.10.0110.00421.82
8.3.00.0000.00819.02
8.2.180.0130.00625.92
8.2.170.0030.01422.96
8.2.160.0100.00322.96
8.2.150.0090.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.66
8.2.110.0100.00020.35
8.2.100.0120.00017.72
8.2.90.0000.00817.75
8.2.80.0030.00518.96
8.2.70.0040.00417.50
8.2.60.0000.00717.63
8.2.50.0080.00017.92
8.2.40.0000.00918.04
8.2.30.0000.00820.88
8.2.20.0080.00017.74
8.2.10.0020.00517.98
8.2.00.0040.00417.73
8.1.280.0100.00725.92
8.1.270.0050.00324.66
8.1.260.0070.00726.35
8.1.250.0090.00028.09
8.1.240.0060.00323.86
8.1.230.0080.00320.73
8.1.220.0050.00318.40
8.1.210.0090.00018.77
8.1.200.0000.00817.35
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0070.00017.62
8.1.160.0030.00618.82
8.1.150.0040.00418.82
8.1.140.0000.00717.29
8.1.130.0070.00317.82
8.1.120.0000.00817.36
8.1.110.0000.00817.27
8.1.100.0000.00717.30
8.1.90.0050.00217.36
8.1.80.0040.00417.35
8.1.70.0050.00317.28
8.1.60.0030.00517.59
8.1.50.0040.00417.55
8.1.40.0070.00017.49
8.1.30.0050.00317.55
8.1.20.0030.00517.52
8.1.10.0040.00417.48
8.1.00.0070.00017.52
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.23
8.0.270.0040.00417.18
8.0.260.0000.00717.06
8.0.250.0070.00016.94
8.0.240.0050.00216.95
8.0.230.0040.00416.95
8.0.220.0000.00716.92
8.0.210.0030.00316.74
8.0.200.0070.00016.80
8.0.190.0000.00716.94
8.0.180.0050.00316.80
8.0.170.0000.00816.79
8.0.160.0030.00316.87
8.0.150.0030.00316.81
8.0.140.0050.00216.86
8.0.130.0000.00513.33
8.0.120.0030.00516.77
8.0.110.0000.00816.87
8.0.100.0000.00716.68
8.0.90.0000.00716.95
8.0.80.0030.01316.93
8.0.70.0050.00216.89
8.0.60.0000.00816.79
8.0.50.0000.00816.76
8.0.30.0110.01116.94
8.0.20.0120.00617.40
8.0.10.0000.00717.07
8.0.00.0070.01016.59
7.4.330.0030.00315.03
7.4.320.0060.00016.48
7.4.300.0030.00316.60
7.4.290.0070.00016.64
7.4.280.0000.00816.58
7.4.270.0030.00316.61
7.4.260.0030.00316.54
7.4.250.0000.00816.48
7.4.240.0020.00516.63
7.4.230.0030.00316.49
7.4.220.0210.00316.55
7.4.210.0030.01316.46
7.4.200.0070.00016.61
7.4.160.0040.01216.38
7.4.150.0120.00617.40
7.4.140.0110.00817.86
7.4.130.0070.01316.43
7.4.120.0070.01016.58
7.4.110.0070.01516.48
7.4.100.0070.01016.50
7.4.90.0060.00916.70
7.4.80.0100.01019.39
7.4.70.0060.00916.52
7.4.60.0130.00316.48
7.4.50.0000.00816.21
7.4.40.0060.00916.33
7.4.30.0030.01916.45
7.4.10.0120.00715.03
7.4.00.0110.00515.02
7.3.330.0050.00013.32
7.3.320.0000.00513.34
7.3.310.0030.00316.18
7.3.300.0040.00416.23
7.3.290.0060.00916.33
7.3.280.0120.00616.38
7.3.270.0070.01017.40
7.3.260.0060.01216.49
7.3.250.0110.00616.39
7.3.240.0110.00816.34
7.3.230.0070.01416.55
7.3.210.0070.01416.46
7.3.200.0070.01119.39
7.3.190.0090.00616.45
7.3.180.0070.01016.49
7.3.170.0110.00916.34
7.3.160.0070.01016.49
7.3.130.0130.00514.80
7.3.120.0060.01014.77
7.3.110.0050.01214.57
7.3.100.0060.00814.89
7.3.90.0020.01414.72
7.3.80.0050.00614.67
7.3.70.0080.00714.61
7.3.60.0050.00914.76
7.3.50.0040.00914.56
7.3.40.0050.00814.54
7.3.30.0070.00714.51
7.3.20.0090.00316.38
7.3.10.0020.01016.37
7.3.00.0070.00816.50
7.2.330.0130.00616.38
7.2.320.0110.00716.77
7.2.310.0090.00916.74
7.2.300.0130.01116.41
7.2.290.0100.00716.61
7.2.260.0130.00715.06
7.2.250.0060.01215.09
7.2.240.0050.01114.94
7.2.230.0050.01115.06
7.2.220.0070.00715.08
7.2.210.0050.00814.96
7.2.200.0060.00614.96
7.2.190.0040.00914.98
7.2.180.0070.00514.81
7.2.170.0050.01114.99
7.2.160.0060.00914.85
7.2.150.0060.01116.81
7.2.140.0050.01116.72
7.2.130.0050.00916.72
7.2.120.0030.00916.84
7.2.110.0020.01016.69
7.2.100.0080.00616.81
7.2.90.0080.00716.56
7.2.80.0070.00916.81
7.2.70.0060.00816.69
7.2.60.0140.00916.53
7.2.50.0060.00816.88
7.2.40.0070.00716.64
7.2.30.0020.01216.85
7.2.20.0020.01116.47
7.2.10.0100.00716.85
7.2.00.0070.00617.58
7.1.330.0070.00815.72
7.1.320.0030.00915.53
7.1.310.0030.00815.51
7.1.300.0050.01015.44
7.1.290.0070.00615.68
7.1.280.0050.01115.46
7.1.270.0060.00615.55
7.1.260.0040.00615.49
7.1.250.0030.01215.50
7.1.240.0030.00915.62
7.1.230.0050.00815.71
7.1.220.0050.00515.72
7.1.210.0010.00715.50
7.1.200.0080.00415.67
7.1.190.0060.00915.59
7.1.180.0020.01415.64
7.1.170.0020.00615.69
7.1.160.0090.00515.60
7.1.150.0030.00815.64
7.1.140.0030.01215.65
7.1.130.0070.00615.37
7.1.120.0050.00816.63
7.1.110.0030.01016.28
7.1.100.0040.00916.70
7.1.90.0050.00816.49
7.1.80.0080.00716.40
7.1.70.0050.00616.35
7.1.60.0090.01221.39
7.1.50.0050.01320.75
7.1.40.0110.00621.82
7.1.30.0100.00721.84
7.1.20.0080.00921.94
7.1.10.0020.01215.87
7.1.00.0050.02717.58
7.0.330.0030.01015.00
7.0.320.0020.00915.22
7.0.310.0050.00615.24
7.0.300.0030.00915.12
7.0.290.0070.00615.07
7.0.280.0080.00515.14
7.0.270.0110.00515.03
7.0.260.0050.00816.17
7.0.250.0040.01116.14
7.0.240.0080.00515.96
7.0.230.0050.00916.01
7.0.220.0030.00815.89
7.0.210.0060.00615.62
7.0.200.0060.00716.04
7.0.190.0030.00915.74
7.0.180.0040.01115.61
7.0.170.0080.00815.64
7.0.160.0050.00615.52
7.0.150.0060.00715.48
7.0.140.0080.02317.25
7.0.130.0060.00915.61
7.0.120.0090.00415.61
7.0.110.0100.00215.55
7.0.100.0060.02616.72
7.0.90.0050.02716.78
7.0.80.0100.01916.61
7.0.70.0100.02516.61
7.0.60.0060.02216.69
7.0.50.0090.01316.87
7.0.40.0040.01915.80
7.0.30.0070.01915.80
7.0.20.0070.01615.80
7.0.10.0060.02615.71
7.0.00.0050.03115.79
5.6.400.0060.00914.12
5.6.390.0050.00914.21
5.6.380.0010.01214.26
5.6.370.0020.01014.38
5.6.360.0060.00914.27
5.6.350.0080.00514.23
5.6.340.0020.00913.85
5.6.330.0060.01214.08
5.6.320.0020.01214.34
5.6.310.0070.00714.19
5.6.300.0110.01916.41
5.6.290.0040.02816.38
5.6.280.0070.03317.45
5.6.270.0070.02716.47
5.6.260.0100.02216.47
5.6.250.0110.02817.64
5.6.240.0070.02717.55
5.6.230.0060.03817.43
5.6.220.0090.03617.50
5.6.210.0060.04017.36
5.6.200.0070.03817.54
5.6.190.0040.04417.57
5.6.180.0080.03417.57
5.6.170.0090.04317.51
5.6.160.0070.02917.58
5.6.150.0110.03817.47
5.6.140.0080.03417.65
5.6.130.0080.04017.63
5.6.120.0070.04017.59
5.6.110.0100.03417.47
5.6.100.0150.03217.45
5.6.90.0070.02717.54
5.6.80.0070.03817.21
5.6.70.0070.03817.28
5.6.60.0080.03217.26
5.6.50.0090.03217.14
5.6.40.0090.02817.28
5.6.30.0080.03017.21
5.6.20.0070.04317.20
5.6.10.0100.04017.19
5.6.00.0120.03817.25
5.5.380.0050.05418.88
5.5.370.0150.05718.95
5.5.360.0110.07218.91
5.5.350.0120.06219.01
5.5.340.0100.05119.46
5.5.330.0110.06419.34
5.5.320.0070.06319.39
5.5.310.0130.07519.34
5.5.300.0100.06919.28
5.5.290.0100.05419.44
5.5.280.0130.06719.29
5.5.270.0120.04819.39
5.5.260.0070.05419.29
5.5.250.0130.07319.12
5.5.240.0100.05618.79
5.5.230.0100.04818.83
5.5.220.0200.06118.83
5.5.210.0110.06318.78
5.5.200.0160.06718.85
5.5.190.0190.04418.81
5.5.180.0100.07718.75
5.5.160.0050.05218.76
5.5.150.0140.06318.59
5.5.140.0140.07018.72
5.5.130.0150.06118.79
5.5.120.0110.06718.67
5.5.110.0120.06618.72
5.5.100.0170.06818.63
5.5.90.0110.05918.63
5.5.80.0180.04418.65
5.5.70.0180.05718.52
5.5.60.0080.05318.61
5.5.50.0150.05618.68
5.5.40.0100.07518.71
5.5.30.0100.06718.50
5.5.20.0070.07718.71
5.5.10.0110.04518.66
5.5.00.0080.06418.51
5.4.450.0100.05619.33
5.4.440.0150.05519.35
5.4.430.0160.04919.28
5.4.420.0110.06519.39
5.4.410.0130.06219.21
5.4.400.0120.05219.07
5.4.390.0050.06719.08
5.4.380.0110.05319.02
5.4.370.0130.05319.02
5.4.360.0130.05219.04
5.4.350.0100.07419.06
5.4.340.0120.06318.90
5.4.320.0060.06719.03
5.4.310.0100.04518.89
5.4.300.0120.07319.05
5.4.290.0070.05119.16
5.4.280.0150.06018.94
5.4.270.0130.06218.88
5.4.260.0100.05119.09
5.4.250.0110.07219.03
5.4.240.0080.06119.15
5.4.230.0080.05719.02
5.4.220.0170.06219.13
5.4.210.0150.05818.93
5.4.200.0150.06418.98
5.4.190.0090.05519.11
5.4.180.0120.04819.09
5.4.170.0130.05619.03
5.4.160.0110.04619.02
5.4.150.0130.04219.04
5.4.140.0110.05616.51
5.4.130.0090.03916.32
5.4.120.0120.05616.60
5.4.110.0100.04416.47
5.4.100.0100.03916.56
5.4.90.0060.04116.59
5.4.80.0120.03416.63
5.4.70.0030.05116.50
5.4.60.0050.04616.41
5.4.50.0030.04516.45
5.4.40.0070.04016.42
5.4.30.0030.04416.52
5.4.20.0050.04516.54
5.4.10.0110.04216.54
5.4.00.0070.06015.96
5.3.290.0050.06814.71
5.3.280.0120.06114.69
5.3.270.0020.05814.77
5.3.260.0070.06914.76
5.3.250.0100.06114.70
5.3.240.0030.06714.80
5.3.230.0080.04214.63
5.3.220.0120.04014.65
5.3.210.0030.05114.74
5.3.200.0070.04214.77
5.3.190.0070.04514.73
5.3.180.0070.04214.62
5.3.170.0050.05114.63
5.3.160.0070.05114.77
5.3.150.0080.04314.72
5.3.140.0070.04414.61
5.3.130.0130.03914.63
5.3.120.0050.04714.62
5.3.110.0080.04614.61
5.3.100.0100.04514.18
5.3.90.0070.05214.16
5.3.80.0060.05514.09
5.3.70.0080.04714.08
5.3.60.0080.04814.10
5.3.50.0070.04713.98
5.3.40.0080.04014.05
5.3.30.0030.04413.84
5.3.20.0050.04213.77
5.3.10.0080.03813.74
5.3.00.0050.05513.79
5.2.170.0050.03611.24
5.2.160.0100.02911.21
5.2.150.0030.03811.27
5.2.140.0080.03311.33
5.2.130.0050.04311.14
5.2.120.0030.03411.25
5.2.110.0050.03411.22
5.2.100.0060.03311.25
5.2.90.0030.03410.97
5.2.80.0070.03311.23
5.2.70.0050.04011.25
5.2.60.0050.03811.26
5.2.50.0030.03511.12
5.2.40.0100.02811.20
5.2.30.0120.02710.94
5.2.20.0020.04411.07
5.2.10.0050.03411.02
5.2.00.0050.03310.86
5.1.60.0020.03110.02
5.1.50.0050.0289.91
5.1.40.0070.02610.07
5.1.30.0070.02610.33
5.1.20.0030.03510.47
5.1.10.0070.02610.24
5.1.00.0030.03110.24
5.0.50.0050.0238.62
5.0.40.0050.0218.31
5.0.30.0000.0388.42
5.0.20.0050.0258.31
5.0.10.0050.0218.26
5.0.00.0050.0338.31
4.4.90.0030.0188.22
4.4.80.0050.0188.22
4.4.70.0010.0238.22
4.4.60.0030.0228.22
4.4.50.0020.0198.22
4.4.40.0000.0308.22
4.4.30.0020.0178.22
4.4.20.0000.0208.22
4.4.10.0020.0208.22
4.4.00.0080.0238.22
4.3.110.0060.0148.22
4.3.100.0030.0188.22
4.3.90.0030.0178.22
4.3.80.0000.0298.22
4.3.70.0020.0188.22
4.3.60.0020.0188.22
4.3.50.0030.0178.22
4.3.40.0020.0288.22
4.3.30.0020.0188.22
4.3.20.0030.0178.22
4.3.10.0050.0158.22
4.3.00.0000.0208.22

preferences:
56.7 ms | 401 KiB | 5 Q