3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a = 'foo'; protected function af() { return $this->a; } } class B extends A { public function f() { echo $this->a; } public function f2() { echo $this->af(); } } $b = new B; $b->f(); $b->f2();

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.40.0040.01118.85
8.3.30.0120.00919.04
8.3.20.0100.00720.34
8.3.10.0040.00421.95
8.3.00.0060.00322.23
8.2.170.0150.00022.96
8.2.160.0100.01019.21
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0000.00819.66
8.2.110.0060.00322.20
8.2.100.0100.00319.95
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0030.00717.50
8.2.60.0070.00017.93
8.2.50.0040.00418.07
8.2.40.0070.00018.09
8.2.30.0000.00818.11
8.2.20.0040.00417.56
8.2.10.0030.00617.61
8.2.00.0070.00317.57
8.1.270.0030.00522.10
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00923.96
8.1.230.0040.00819.15
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.21
8.1.190.0050.00317.41
8.1.180.0080.00018.70
8.1.170.0080.00018.51
8.1.160.0050.00322.02
8.1.150.0000.00718.54
8.1.140.0070.00017.44
8.1.130.0030.00317.93
8.1.120.0070.00017.39
8.1.110.0040.00417.33
8.1.100.0000.00717.32
8.1.90.0030.00517.41
8.1.80.0000.00717.32
8.1.70.0040.00417.29
8.1.60.0070.00017.60
8.1.50.0020.00517.41
8.1.40.0000.00817.50
8.1.30.0040.00417.60
8.1.20.0080.00017.55
8.1.10.0040.00417.57
8.1.00.0050.00217.56
8.0.300.0000.00718.77
8.0.290.0000.00717.16
8.0.280.0000.00818.51
8.0.270.0030.00317.32
8.0.260.0030.00316.87
8.0.250.0070.00017.06
8.0.240.0000.01016.90
8.0.230.0000.00716.88
8.0.220.0000.00716.96
8.0.210.0030.00416.78
8.0.200.0000.00616.84
8.0.190.0000.00716.97
8.0.180.0070.00016.81
8.0.170.0000.00716.86
8.0.160.0040.00416.95
8.0.150.0030.00316.79
8.0.140.0070.00316.87
8.0.130.0020.00413.32
8.0.120.0080.00016.87
8.0.110.0050.00216.82
8.0.100.0050.00216.88
8.0.90.0080.00017.01
8.0.80.0090.00616.89
8.0.70.0040.00416.84
8.0.60.0000.00716.88
8.0.50.0000.00716.91
8.0.30.0100.00817.12
8.0.20.0070.01217.40
8.0.10.0050.00216.95
8.0.00.0070.00916.78
7.4.330.0000.00615.00
7.4.320.0000.00616.55
7.4.300.0000.00616.52
7.4.290.0050.00516.52
7.4.280.0000.00716.50
7.4.270.0000.00616.60
7.4.260.0000.00816.60
7.4.250.0040.00416.61
7.4.240.0040.00416.61
7.4.230.0070.00016.40
7.4.220.0060.01216.63
7.4.210.0100.01016.61
7.4.200.0030.00316.67
7.4.190.0030.00316.48
7.4.160.0110.00716.47
7.4.150.0060.01117.40
7.4.140.0090.01017.86
7.4.130.0080.01316.48
7.4.120.0040.01216.59
7.4.110.0100.00716.64
7.4.100.0030.01316.52
7.4.90.0170.00616.51
7.4.80.0090.01219.39
7.4.70.0070.01016.54
7.4.60.0100.00716.49
7.4.50.0000.00816.54
7.4.40.0070.00722.77
7.4.30.0000.01616.36
7.4.10.0040.01415.16
7.4.00.0040.01114.79
7.3.330.0030.00313.08
7.3.320.0070.00013.09
7.3.310.0000.00716.15
7.3.300.0000.00716.34
7.3.290.0110.00316.25
7.3.280.0060.00816.32
7.3.270.0070.01117.40
7.3.260.0060.01116.55
7.3.250.0120.00516.34
7.3.240.0030.01316.27
7.3.230.0120.00916.39
7.3.210.0030.01516.27
7.3.200.0070.01019.39
7.3.190.0030.01516.32
7.3.180.0030.01316.34
7.3.170.0040.01216.43
7.3.160.0140.00716.38
7.3.130.0070.01414.88
7.3.120.0020.01314.84
7.3.110.0110.00714.97
7.3.100.0070.00714.79
7.3.90.0030.00914.73
7.3.80.0060.00614.77
7.3.70.0040.00814.72
7.3.60.0030.01014.51
7.3.50.0080.00814.84
7.3.40.0040.00414.84
7.3.30.0070.00714.81
7.3.20.0110.00416.47
7.3.10.0070.00716.77
7.3.00.0070.00716.77
7.2.330.0100.00716.81
7.2.320.0150.00416.66
7.2.310.0100.01016.41
7.2.300.0090.00616.36
7.2.290.0130.00316.66
7.2.260.0090.00614.99
7.2.250.0070.00714.80
7.2.240.0030.01415.19
7.2.230.0030.01015.11
7.2.220.0100.00315.13
7.2.210.0070.00714.98
7.2.200.0070.00714.66
7.2.190.0000.01415.20
7.2.180.0130.00014.74
7.2.170.0030.00714.95
7.2.160.0030.00615.19
7.2.150.0030.00717.06
7.2.140.0070.00716.83
7.2.130.0000.01316.48
7.2.120.0030.01016.90
7.2.110.0100.00617.09
7.2.100.0000.01416.71
7.2.90.0060.00816.87
7.2.80.0070.00716.55
7.2.70.0110.00716.90
7.2.60.0040.01416.88
7.2.50.0040.01116.92
7.2.40.0080.00417.07
7.2.30.0060.00916.96
7.2.20.0000.01616.88
7.2.10.0030.01016.91
7.2.00.0060.00316.58
7.1.330.0060.00915.77
7.1.320.0000.01715.64
7.1.310.0030.00915.68
7.1.300.0050.00315.55
7.1.290.0080.00415.24
7.1.280.0100.00315.48
7.1.270.0060.00915.51
7.1.260.0060.00615.55
7.1.250.0030.00915.66
7.1.240.0040.01215.69
7.1.230.0040.01215.32
7.1.220.0040.01115.66
7.1.210.0130.00015.60
7.1.200.0080.00615.60
7.1.190.0030.01215.79
7.1.180.0030.01315.63
7.1.170.0060.00615.52
7.1.160.0000.01415.58
7.1.150.0080.00315.79
7.1.140.0050.00315.52
7.1.130.0070.00715.69
7.1.120.0080.00015.58
7.1.110.0070.00715.50
7.1.100.0100.00315.81
7.1.90.0040.00715.47
7.1.80.0030.00915.64
7.1.70.0040.00716.27
7.1.60.0100.01017.67
7.1.50.0050.01316.21
7.1.40.0030.01015.87
7.1.30.0060.00615.66
7.1.20.0000.00815.63
7.1.10.0070.00315.79
7.1.00.0040.03919.11
7.0.330.0090.00315.12
7.0.320.0060.00615.37
7.0.310.0070.00715.11
7.0.300.0120.00315.39
7.0.290.0040.00815.20
7.0.280.0090.00615.27
7.0.270.0060.00615.33
7.0.260.0100.00315.33
7.0.250.0060.00315.52
7.0.240.0030.00715.41
7.0.230.0060.00315.51
7.0.220.0040.01215.37
7.0.210.0000.01315.13
7.0.200.0030.00515.87
7.0.190.0070.00715.15
7.0.180.0070.00715.38
7.0.170.0140.00015.35
7.0.160.0090.00015.38
7.0.150.0000.01415.06
7.0.140.0060.04018.75
7.0.130.0090.00315.33
7.0.120.0050.00515.04
7.0.110.0120.00315.41
7.0.100.0090.00315.09
7.0.90.0030.01715.10
7.0.80.0030.00915.35
7.0.70.0040.01115.13
7.0.60.0080.03017.64
7.0.50.0050.02216.69
7.0.40.0050.03816.66
7.0.30.0180.02616.74
7.0.20.0150.02916.69
7.0.10.0100.02516.85
7.0.00.0070.04816.68
5.6.400.0060.00314.39
5.6.390.0100.00314.42
5.6.380.0030.00914.59
5.6.370.0040.00814.52
5.6.360.0070.00714.43
5.6.350.0030.00714.25
5.6.340.0040.00414.51
5.6.330.0070.00714.21
5.6.320.0070.00414.15
5.6.310.0060.00614.48
5.6.300.0030.01014.32
5.6.290.0080.00314.27
5.6.280.0040.04217.71
5.6.270.0090.00614.25
5.6.260.0060.00914.36
5.6.250.0070.00414.03
5.6.240.0030.01714.29
5.6.230.0030.01214.21
5.6.220.0070.00714.12
5.6.210.0060.04117.58
5.6.200.0080.02216.21
5.6.190.0070.04517.42
5.6.180.1930.02317.44
5.6.170.0180.02817.51
5.6.160.0030.04317.37
5.6.150.0050.03616.35
5.6.140.0080.04016.15
5.6.130.0050.02816.19
5.6.120.0060.03817.71
5.6.110.0100.03517.81
5.6.100.0020.04617.65
5.6.90.0040.04617.72
5.6.80.0050.03517.20
5.6.70.0170.04117.37
5.6.60.0040.00814.29
5.6.50.0080.00514.23
5.6.40.0000.01014.17
5.6.30.0070.00714.25
5.6.20.0060.01014.20
5.6.10.0080.00614.29
5.6.00.0090.00614.37
5.5.380.0090.00014.13
5.5.370.0110.00014.27
5.5.360.0090.00614.27
5.5.350.0050.04517.46
5.5.340.0100.02516.14
5.5.330.0050.04817.44
5.5.320.0140.02417.39
5.5.310.0130.03217.36
5.5.300.0070.02816.13
5.5.290.0000.05315.99
5.5.280.0100.04117.33
5.5.270.0080.02817.56
5.5.260.0070.04317.49
5.5.250.0080.04017.44
5.5.240.0110.03917.11
5.5.230.0040.00714.15
5.5.220.0060.00614.03
5.5.210.0050.00514.34
5.5.200.0060.00914.32
5.5.190.0070.00714.24
5.5.180.0090.00614.27
5.5.170.0060.00914.39
5.5.160.0040.00814.20
5.5.150.0040.01114.33
5.5.140.0040.01113.97
5.5.130.0080.00613.80
5.5.120.0060.00614.17
5.5.110.0100.00014.32
5.5.100.0070.00714.18
5.5.90.0100.00314.20
5.5.80.0060.00314.39
5.5.70.0030.01214.17
5.5.60.0070.00314.29
5.5.50.0090.00314.04
5.5.40.0090.00314.07
5.5.30.0070.00714.29
5.5.20.0070.00714.18
5.5.10.0090.00613.90
5.5.00.0040.00813.92
5.4.450.0000.02615.19
5.4.440.0030.03015.23
5.4.430.0060.02015.32
5.4.420.0020.02215.33
5.4.410.0030.02215.30
5.4.400.0030.02315.09
5.4.390.0020.02214.99
5.4.380.0040.02014.75
5.4.370.0040.02215.05
5.4.360.0070.02314.93
5.4.350.0020.02015.01
5.4.340.0030.02015.18
5.4.330.0090.00311.17
5.4.320.0000.02414.97
5.4.310.0020.02215.07
5.4.300.0070.01815.16
5.4.290.0040.02114.99
5.4.280.0070.02214.95
5.4.270.0020.02414.97
5.4.260.0000.02715.21
5.4.250.0020.03414.97
5.4.240.0030.02815.13
5.4.230.0050.04515.00
5.4.220.0020.03814.96
5.4.210.0030.02714.90
5.4.200.0120.03315.05
5.4.190.0030.02815.15
5.4.180.0070.03515.20
5.4.170.0030.02515.05
5.4.160.0070.04014.97
5.4.150.0030.03014.92
5.4.140.0020.03013.55
5.4.130.0020.03513.67
5.4.120.0040.02413.69
5.4.110.0020.02913.79
5.4.100.0060.02113.71
5.4.90.0080.02013.79
5.4.80.0030.02713.66
5.4.70.0080.02513.67
5.4.60.0040.03213.61
5.4.50.0020.02713.54
5.4.40.0060.02713.73
5.4.30.0080.03213.71
5.4.20.0060.04013.76
5.4.10.0030.02813.73
5.4.00.0020.02613.55
5.3.290.0050.01812.77
5.3.280.0050.02512.60
5.3.270.0070.03112.46
5.3.260.0050.04012.60
5.3.250.0040.03512.55
5.3.240.0000.04112.68
5.3.230.0000.02812.54
5.3.220.0050.02712.63
5.3.210.0050.02512.49
5.3.200.0060.02312.52
5.3.190.0060.02812.50
5.3.180.0050.02512.58
5.3.170.0110.03512.62
5.3.160.0060.03212.56
5.3.150.0030.03712.64
5.3.140.0030.03512.58
5.3.130.0030.03012.49
5.3.120.0030.04212.51
5.3.110.0020.03812.63
5.3.100.0050.02412.38
5.3.90.0070.03012.19
5.3.80.0050.04212.26
5.3.70.0050.03312.29
5.3.60.0070.02512.24
5.3.50.0040.03512.26
5.3.40.0120.03012.26
5.3.30.0050.03012.17
5.3.20.0050.03512.10
5.3.10.0060.03812.06
5.3.00.0150.02312.02
5.2.170.0000.06312.33
5.2.160.0030.05312.33
5.2.150.0070.06012.33
5.2.140.0070.04312.33
5.2.130.0030.03712.33
5.2.120.0070.05712.33
5.2.110.0070.04712.33
5.2.100.0030.06012.33
5.2.90.0030.06312.33
5.2.80.0030.06012.33
5.2.70.0030.05712.33
5.2.60.0070.06312.33
5.2.50.0000.06012.33
5.2.40.0000.03712.33
5.2.30.0030.06012.33
5.2.20.0030.06012.33
5.2.10.0030.05012.33
5.2.00.0030.06012.33
5.1.60.0070.04312.33
5.1.50.0030.03712.33
5.1.40.0000.03312.33
5.1.30.0000.05012.33
5.1.20.0000.04712.33
5.1.10.0030.05712.33
5.1.00.0030.05012.33
5.0.50.0000.03712.33
5.0.40.0000.04012.33
5.0.30.0000.04712.33
5.0.20.0000.04012.33
5.0.10.0000.04012.33
5.0.00.0000.05312.33
4.4.90.0030.03312.33
4.4.80.0030.03312.33
4.4.70.0030.03012.33
4.4.60.0000.03012.33
4.4.50.0000.03712.33
4.4.40.0000.05712.33
4.4.30.0000.03012.33
4.4.20.0000.02012.33
4.4.10.0000.03312.33
4.4.00.0000.05312.33
4.3.110.0030.03012.33
4.3.100.0100.02712.33
4.3.90.0000.04012.33
4.3.80.0000.05312.33
4.3.70.0030.02712.33
4.3.60.0000.02312.33
4.3.50.0000.03312.33
4.3.40.0000.03312.33
4.3.30.0030.02012.33
4.3.20.0030.03012.33
4.3.10.0070.02712.33
4.3.00.0030.02712.33

preferences:
44.88 ms | 400 KiB | 5 Q