3v4l.org

run code in 300+ PHP versions simultaneously
<?php class classA { public $prop1 = "I'm a class property!"; public function setProperty($newval) { $this->prop1 = $newval; } protected function getProperty() { return $this->prop1 . "<br />"; } } class classB extends classA { public function getProperty() { return 'B: ' . $this->prop1 . "<br />"; } public function callProtected() { return $this->getProperty(); } public function callProtected2() { return parent::getProperty(); } } $testobj = new classB; echo $testobj->callProtected(); echo $testobj->callProtected2(); ?>

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.0060.00918.55
8.3.60.0070.01016.38
8.3.50.0150.00716.54
8.3.40.0070.01118.85
8.3.30.0080.00618.72
8.3.20.0050.00318.79
8.3.10.0080.00018.38
8.3.00.0090.00019.38
8.2.180.0060.00916.63
8.2.170.0150.00022.96
8.2.160.0110.00718.79
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00019.64
8.2.110.0030.00719.16
8.2.100.0040.00817.77
8.2.90.0080.00017.63
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0040.00418.03
8.2.50.0040.00418.07
8.2.40.0060.00319.36
8.2.30.0050.00517.70
8.2.20.0070.00317.80
8.2.10.0000.00717.75
8.2.00.0030.00617.73
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0000.00920.93
8.1.230.0070.00417.64
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.83
8.1.160.0020.00518.95
8.1.150.0040.00418.64
8.1.140.0000.00817.36
8.1.130.0000.00717.42
8.1.120.0070.00017.40
8.1.110.0070.00017.39
8.1.100.0030.00517.29
8.1.90.0040.00417.35
8.1.80.0070.00017.45
8.1.70.0000.00717.48
8.1.60.0050.00317.54
8.1.50.0080.00017.57
8.1.40.0000.00817.41
8.1.30.0020.00517.63
8.1.20.0070.00317.69
8.1.10.0040.00417.63
8.1.00.0030.00717.55
8.0.300.0030.00518.77
8.0.290.0000.01016.63
8.0.280.0000.00718.50
8.0.270.0000.00717.18
8.0.260.0030.00316.83
8.0.250.0030.00716.99
8.0.240.0030.00316.99
8.0.230.0040.00416.91
8.0.220.0030.00616.89
8.0.210.0030.00316.89
8.0.200.0030.00316.98
8.0.190.0050.00316.97
8.0.180.0000.00816.86
8.0.170.0090.00016.93
8.0.160.0000.00716.80
8.0.150.0080.00016.73
8.0.140.0040.00416.84
8.0.130.0030.00313.32
8.0.120.0090.00016.87
8.0.110.0040.00416.93
8.0.100.0040.00416.76
8.0.90.0030.00516.73
8.0.80.0030.01116.84
8.0.70.0000.00716.94
8.0.60.0000.00816.88
8.0.50.0000.00816.71
8.0.30.0070.00717.07
8.0.20.0090.00917.23
8.0.10.0050.00316.98
8.0.00.0120.00616.79
7.4.330.0050.00012.88
7.4.320.0040.00416.58
7.4.300.0000.00616.51
7.4.290.0080.00316.61
7.4.280.0030.00616.61
7.4.270.0000.00616.63
7.4.260.0030.00313.28
7.4.250.0080.00016.50
7.4.240.0000.00716.52
7.4.230.0030.00316.70
7.4.220.0130.01316.51
7.4.210.0090.01216.53
7.4.200.0030.00316.61
7.4.190.0080.00016.77
7.4.160.0110.00716.63
7.4.150.0100.01016.44
7.4.140.0150.00317.86
7.4.130.0120.00616.72
7.4.120.0190.00316.35
7.4.110.0090.00916.53
7.4.100.0070.01016.49
7.4.90.0030.01916.41
7.4.80.0100.00619.39
7.4.70.0030.01416.52
7.4.60.0060.00916.56
7.4.50.0000.00616.68
7.4.40.0100.00716.63
7.4.30.0040.01216.56
7.4.10.0030.01614.69
7.4.00.0050.01214.90
7.3.330.0030.00313.30
7.3.320.0000.00513.29
7.3.310.0030.00316.19
7.3.300.0000.00616.25
7.3.290.0090.00716.27
7.3.280.0150.00616.34
7.3.270.0100.00616.51
7.3.260.0130.01316.24
7.3.240.0100.00616.23
7.3.230.0090.00916.23
7.3.210.0070.01016.36
7.3.200.0080.00816.40
7.3.190.0040.01316.09
7.3.180.0050.01116.16
7.3.170.0120.01216.54
7.3.160.0120.00316.51
7.3.130.0040.01514.61
7.3.120.0060.01014.78
7.3.110.0050.01214.69
7.3.100.0080.00714.70
7.3.90.0080.00714.62
7.3.80.0050.00614.58
7.3.70.0020.00714.82
7.3.60.0050.00814.72
7.3.50.0070.00514.48
7.3.40.0050.00714.65
7.3.30.0040.00914.51
7.3.20.0050.00816.58
7.3.10.0060.00616.28
7.3.00.0020.01316.59
7.2.330.0070.01016.84
7.2.320.0130.01016.77
7.2.310.0090.01416.44
7.2.300.0100.00716.60
7.2.290.0120.00616.66
7.2.260.0060.01214.92
7.2.250.0070.01114.66
7.2.240.0110.00314.75
7.2.230.0040.01014.86
7.2.220.0060.00714.96
7.2.210.0030.00915.14
7.2.200.0050.01014.98
7.2.190.0050.00815.07
7.2.180.0050.01014.80
7.2.170.0060.00714.77
7.2.160.0050.00714.72
7.2.150.0070.00716.55
7.2.140.0080.00816.84
7.2.130.0050.00916.90
7.2.120.0070.00516.88
7.2.110.0050.00517.09
7.2.100.0050.00716.81
7.2.90.0040.00716.82
7.2.80.0040.00816.81
7.2.70.0040.01016.69
7.2.60.0060.00716.92
7.2.50.0060.00616.90
7.2.40.0010.01316.82
7.2.30.0080.00916.88
7.2.20.0050.00916.61
7.2.10.0060.00716.93
7.2.00.0070.00717.73
7.1.330.0080.00515.43
7.1.320.0060.00815.65
7.1.310.0050.01015.65
7.1.300.0050.01015.54
7.1.290.0030.00715.64
7.1.280.0030.00715.55
7.1.270.0050.00815.69
7.1.260.0030.01015.42
7.1.250.0050.00515.46
7.1.240.0030.00615.70
7.1.230.0090.00315.78
7.1.220.0000.00815.17
7.1.210.0080.00815.55
7.1.200.0060.00615.73
7.1.190.0080.00315.48
7.1.180.0070.00715.72
7.1.170.0060.00615.38
7.1.160.0030.01015.55
7.1.150.0070.00715.27
7.1.140.0000.01515.87
7.1.130.0040.01215.71
7.1.120.0040.00815.74
7.1.110.0030.01015.69
7.1.100.0100.00316.71
7.1.90.0040.00815.71
7.1.80.0070.00715.73
7.1.70.0030.00516.32
7.1.60.0080.01117.25
7.1.50.0170.00825.27
7.1.40.0080.00315.72
7.1.30.0070.00415.49
7.1.20.0090.00615.61
7.1.10.0070.00415.36
7.1.00.0000.03319.06
7.0.330.0060.00615.43
7.0.320.0070.00715.32
7.0.310.0040.00814.98
7.0.300.0040.00715.19
7.0.290.0050.00415.25
7.0.280.0000.01315.07
7.0.270.0000.01615.32
7.0.260.0000.01015.27
7.0.250.0050.00815.21
7.0.240.0000.01315.26
7.0.230.0030.01015.33
7.0.220.0060.00615.38
7.0.210.0030.00915.18
7.0.200.0050.00715.91
7.0.190.0110.00315.23
7.0.180.0050.00515.24
7.0.170.0040.00715.35
7.0.160.0030.01115.19
7.0.150.0070.00715.44
7.0.140.0050.03818.66
7.0.130.0030.00715.18
7.0.120.0030.03918.60
7.0.110.0000.01315.11
7.0.100.0080.00615.50
7.0.90.0060.00615.39
7.0.80.0090.00315.34
7.0.70.0070.00715.41
7.0.60.0100.03517.53
7.0.50.0080.02016.53
7.0.40.0070.02716.76
7.0.30.0130.02316.73
7.0.20.0150.03216.76
7.0.10.0120.04216.60
7.0.00.0100.04316.56
5.6.400.0000.01114.07
5.6.390.0000.01313.84
5.6.380.0060.00614.04
5.6.370.0000.01214.57
5.6.360.0070.01014.07
5.6.350.0040.00414.37
5.6.340.0000.00913.81
5.6.330.0070.00714.06
5.6.320.0030.01314.15
5.6.310.0060.00914.45
5.6.300.0060.00914.41
5.6.290.0000.00814.55
5.6.280.0040.03917.58
5.6.270.0060.00614.33
5.6.260.0040.01114.43
5.6.250.0100.00314.29
5.6.240.0100.00314.20
5.6.230.0070.00714.44
5.6.220.0030.00914.65
5.6.210.0060.02217.19
5.6.200.0010.02616.22
5.6.190.0030.05017.20
5.6.180.0150.03317.46
5.6.170.0170.03917.37
5.6.160.0040.03517.26
5.6.150.0070.04416.11
5.6.140.0060.02616.06
5.6.130.0070.03616.13
5.6.120.0060.03117.65
5.6.110.0070.04117.44
5.6.100.0050.03217.55
5.6.90.0120.04217.71
5.6.80.0030.04717.30
5.6.70.0090.00014.02
5.6.60.0040.01114.23
5.6.50.0060.00914.06
5.6.40.0060.00614.27
5.6.30.0100.00314.14
5.6.20.0080.00814.02
5.6.10.0080.00314.28
5.6.00.0150.00014.09
5.5.380.0090.00414.25
5.5.370.0090.00614.50
5.5.360.0060.01014.37
5.5.350.0240.03517.42
5.5.340.0120.03916.02
5.5.330.0120.02017.35
5.5.320.0200.02517.35
5.5.310.0210.04317.33
5.5.300.0030.04716.02
5.5.290.0100.04216.15
5.5.280.0070.02717.45
5.5.270.0060.03817.63
5.5.260.0060.04017.63
5.5.250.0020.02717.43
5.5.240.0060.04017.18
5.5.230.0000.01414.30
5.5.220.0000.01414.13
5.5.210.0030.01313.93
5.5.200.0080.00814.31
5.5.190.0090.00614.06
5.5.180.0030.00914.40
5.5.170.0110.00314.01
5.5.160.0070.01013.99
5.5.150.0030.00914.41
5.5.140.0130.00014.09
5.5.130.0030.01114.38
5.5.120.0090.00913.93
5.5.110.0040.01114.02
5.5.100.0110.00414.01
5.5.90.0000.01213.96
5.5.80.0060.00813.84
5.5.70.0060.00914.26
5.5.60.0030.00914.32
5.5.50.0030.00914.00
5.5.40.0100.00714.20
5.5.30.0170.00014.28
5.5.20.0030.01013.89
5.5.10.0000.01313.85
5.5.00.0000.01514.23
5.4.450.0080.04315.39
5.4.440.0090.03415.30
5.4.430.0030.04215.22
5.4.420.0070.04215.17
5.4.410.0120.03015.13
5.4.400.0060.03914.90
5.4.390.0040.04015.21
5.4.380.0040.03015.09
5.4.370.0090.03614.99
5.4.360.0050.04415.14
5.4.350.0100.03515.00
5.4.340.0050.02515.08
5.4.330.0100.00311.14
5.4.320.0070.02515.13
5.4.310.0050.02515.01
5.4.300.0030.02314.93
5.4.290.0100.01814.99
5.4.280.0030.02415.01
5.4.270.0050.02115.16
5.4.260.0050.02215.09
5.4.250.0050.02014.94
5.4.240.0060.01615.06
5.4.230.0000.02615.11
5.4.220.0050.02214.96
5.4.210.0050.02015.03
5.4.200.0080.02015.06
5.4.190.0040.02214.92
5.4.180.0040.02015.22
5.4.170.0030.02315.11
5.4.160.0050.02215.16
5.4.150.0050.02015.20
5.4.140.0000.02113.55
5.4.130.0030.01813.76
5.4.120.0040.01913.98
5.4.110.0070.02114.03
5.4.100.0010.02113.87
5.4.90.0050.01913.62
5.4.80.0070.01713.82
5.4.70.0030.02313.82
5.4.60.0000.02413.70
5.4.50.0070.01813.77
5.4.40.0030.03813.59
5.4.30.0070.03713.69
5.4.20.0050.02413.69
5.4.10.0050.04513.84
5.4.00.0080.03613.43
5.3.290.0050.02212.78
5.3.280.0030.02312.58
5.3.270.0050.02212.62
5.3.260.0020.02312.63
5.3.250.0030.02512.63
5.3.240.0070.02212.64
5.3.230.0050.02012.49
5.3.220.0030.02212.44
5.3.210.0100.02012.50
5.3.200.0030.01812.47
5.3.190.0050.02012.55
5.3.180.0020.02012.61
5.3.170.0050.02112.47
5.3.160.0020.02212.46
5.3.150.0110.01812.45
5.3.140.0040.02212.64
5.3.130.0020.03012.51
5.3.120.0020.03012.58
5.3.110.0050.04112.63
5.3.100.0020.04312.34
5.3.90.0050.02212.43
5.3.80.0050.03212.15
5.3.70.0070.02212.23
5.3.60.0050.03712.26
5.3.50.0050.04012.16
5.3.40.0060.04112.03
5.3.30.0180.03012.28
5.3.20.0060.03712.13
5.3.10.0020.02511.94
5.3.00.0070.03811.99
5.2.170.0030.06011.21
5.2.160.0100.04011.23
5.2.150.0030.03311.16
5.2.140.0000.04311.18
5.2.130.0030.05711.29
5.2.120.0130.04311.17
5.2.110.0000.03711.16
5.2.100.0100.05011.19
5.2.90.0130.05711.19
5.2.80.0070.07011.16
5.2.70.0030.05711.07
5.2.60.0130.06311.02
5.2.50.0070.04310.97
5.2.40.0100.03310.89
5.2.30.0070.03010.93
5.2.20.0070.02710.97
5.2.10.0030.05710.92
5.2.00.0070.06310.68
5.1.60.0030.0379.91
5.1.50.0030.0509.95
5.1.40.0100.05310.00
5.1.30.0030.06310.41
5.1.20.0000.04010.28
5.1.10.0000.0309.98
5.1.00.0000.04010.10
5.0.50.0100.0379.09
5.0.40.0030.0279.09
5.0.30.0030.0639.09
5.0.20.0030.0479.09
5.0.10.0030.0239.09
5.0.00.0100.0409.09
4.4.90.0000.0279.09
4.4.80.0000.0209.09
4.4.70.0030.0409.09
4.4.60.0100.0239.09
4.4.50.0000.0309.09
4.4.40.0170.0239.09
4.4.30.0030.0239.09
4.4.20.0070.0279.09
4.4.10.0070.0239.09
4.4.00.0000.0579.09
4.3.110.0030.0309.09
4.3.100.0000.0209.09
4.3.90.0030.0179.09
4.3.80.0000.0539.09
4.3.70.0070.0339.09
4.3.60.0070.0309.09
4.3.50.0070.0339.09
4.3.40.0000.0309.09
4.3.30.0000.0309.09
4.3.20.0030.0379.09
4.3.10.0030.0379.09
4.3.00.0030.0309.09

preferences:
56.33 ms | 401 KiB | 5 Q