3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MainClass{ protected $theobject; function __construct(){ $this->theobject = new AnotherClass(); } } class TheClass extends MainClass{ function SoemFunction(){ $this->theobject->SomeFunction(); } } class AnotherClass { function SomeFunction() { echo 'works'; } } $foo = new TheClass; $foo->SoemFunction();

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.0140.00718.67
8.3.30.0100.01019.08
8.3.20.0040.00420.35
8.3.10.0040.00422.13
8.3.00.0000.00822.40
8.2.170.0090.01222.96
8.2.160.0100.00319.04
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0160.00326.16
8.2.120.0030.00719.23
8.2.110.0030.00722.07
8.2.100.0000.01219.51
8.2.90.0030.00619.18
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0060.00617.93
8.2.50.0040.00418.07
8.2.40.0090.00020.07
8.2.30.0070.00018.01
8.2.20.0000.00717.55
8.2.10.0040.00417.56
8.2.00.0040.00417.62
8.1.270.0040.00422.02
8.1.260.0040.00426.35
8.1.250.0030.00728.09
8.1.240.0030.00623.85
8.1.230.0070.00319.02
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0040.00417.39
8.1.180.0040.00418.57
8.1.170.0030.00618.57
8.1.160.0040.00422.13
8.1.150.0000.01118.62
8.1.140.0040.00417.30
8.1.130.0000.00717.88
8.1.120.0000.00717.32
8.1.110.0040.00417.30
8.1.100.0070.00017.37
8.1.90.0040.00417.40
8.1.80.0050.00217.27
8.1.70.0000.00717.38
8.1.60.0000.00817.48
8.1.50.0000.00717.50
8.1.40.0040.00417.51
8.1.30.0050.00317.46
8.1.20.0060.00317.64
8.1.10.0080.00017.42
8.1.00.0000.01117.36
8.0.300.0000.00718.77
8.0.290.0040.00417.04
8.0.280.0000.00718.32
8.0.270.0000.00716.73
8.0.260.0030.00316.82
8.0.250.0030.00316.76
8.0.240.0050.00316.89
8.0.230.0000.00716.90
8.0.220.0030.00316.86
8.0.210.0030.00316.82
8.0.200.0000.00616.86
8.0.190.0030.00616.81
8.0.180.0040.00416.81
8.0.170.0040.00416.84
8.0.160.0000.00716.79
8.0.150.0060.00316.79
8.0.140.0040.00416.70
8.0.130.0030.00313.25
8.0.120.0040.00416.75
8.0.110.0000.00716.87
8.0.100.0050.00316.83
8.0.90.0040.00416.71
8.0.80.0030.01216.79
8.0.70.0040.00416.71
8.0.60.0040.00416.80
8.0.50.0040.00416.71
8.0.30.0110.00817.01
8.0.20.0110.00717.40
8.0.10.0000.00716.80
8.0.00.0080.00916.54
7.4.330.0060.00015.00
7.4.320.0000.00616.58
7.4.300.0000.00716.65
7.4.290.0000.00716.50
7.4.280.0030.00316.40
7.4.270.0000.00616.40
7.4.260.0000.00716.41
7.4.250.0040.00416.50
7.4.240.0050.00216.58
7.4.230.0070.00016.40
7.4.220.0100.00716.61
7.4.210.0050.01416.51
7.4.200.0000.00716.70
7.4.190.0040.00416.40
7.4.160.0100.00716.53
7.4.150.0070.01017.40
7.4.140.0070.01417.86
7.4.130.0050.01416.55
7.4.120.0080.00816.48
7.4.110.0100.00716.63
7.4.100.0170.00716.48
7.4.90.0090.01516.51
7.4.80.0060.01019.39
7.4.70.0130.00716.33
7.4.60.0220.01516.39
7.4.50.0000.00816.66
7.4.40.0070.01022.77
7.4.30.0090.00716.58
7.4.10.0040.01414.42
7.4.00.0120.00514.91
7.3.330.0040.00413.10
7.3.320.0030.00313.17
7.3.310.0040.00416.29
7.3.300.0040.00416.30
7.3.290.0080.00616.27
7.3.280.0040.01016.29
7.3.270.0120.00617.40
7.3.260.0090.00916.52
7.3.250.0090.01016.40
7.3.240.0230.00016.32
7.3.230.0120.00616.39
7.3.210.0060.01216.30
7.3.200.0120.00916.37
7.3.190.0190.00416.39
7.3.180.0060.01016.37
7.3.170.0090.00616.56
7.3.160.0100.00716.48
7.3.130.0090.00914.68
7.3.120.0080.01014.58
7.3.110.0060.01314.52
7.3.100.0040.01115.05
7.3.90.0000.01314.89
7.3.80.0060.00614.71
7.3.70.0030.01014.51
7.3.60.0090.00614.63
7.3.50.0100.00714.71
7.3.40.0040.00714.84
7.3.30.0080.00414.12
7.3.20.0000.01516.61
7.3.10.0120.00416.85
7.3.00.0030.00616.49
7.2.330.0030.01316.70
7.2.320.0060.00916.42
7.2.310.0140.00816.47
7.2.300.0130.00716.77
7.2.290.0160.00416.38
7.2.260.0070.01414.66
7.2.250.0040.01515.26
7.2.240.0030.01315.17
7.2.230.0100.00714.91
7.2.220.0060.00915.16
7.2.210.0030.00915.08
7.2.200.0070.00715.20
7.2.190.0030.00915.14
7.2.180.0090.00614.66
7.2.170.0060.01215.19
7.2.160.0030.00815.01
7.2.150.0000.01816.57
7.2.140.0070.01016.63
7.2.130.0130.00316.65
7.2.120.0090.00616.93
7.2.110.0000.01716.80
7.2.100.0080.00816.66
7.2.90.0100.00716.50
7.2.80.0000.01016.63
7.2.70.0120.00016.67
7.2.60.0090.00316.85
7.2.50.0040.01116.84
7.2.40.0120.00616.62
7.2.30.0140.00016.98
7.2.20.0120.00316.63
7.2.10.0120.00416.70
7.2.00.0140.00316.72
7.1.330.0060.00915.73
7.1.320.0070.01015.78
7.1.310.0000.00915.88
7.1.300.0030.01015.78
7.1.290.0060.01015.39
7.1.280.0040.00815.39
7.1.270.0030.00615.07
7.1.260.0110.00415.06
7.1.250.0100.00315.70
7.1.240.0120.00615.34
7.1.230.0100.00715.26
7.1.220.0000.01315.45
7.1.210.0060.00915.74
7.1.200.0000.01415.69
7.1.190.0000.01315.84
7.1.180.0030.01015.56
7.1.170.0100.00315.63
7.1.160.0070.00715.50
7.1.150.0070.00715.63
7.1.140.0050.00515.49
7.1.130.0040.01115.37
7.1.120.0100.00015.05
7.1.110.0130.00315.65
7.1.100.0040.00415.45
7.1.90.0000.01315.55
7.1.80.0000.00915.68
7.1.70.0210.00316.17
7.1.60.0070.01317.60
7.1.50.0080.01016.20
7.1.40.0000.00915.36
7.1.30.0040.01215.55
7.1.20.0080.00415.63
7.1.10.0120.00315.45
7.1.00.0070.04219.01
7.0.330.0060.00915.29
7.0.320.0000.01315.40
7.0.310.0040.01115.40
7.0.300.0110.00315.11
7.0.290.0030.01015.00
7.0.280.0090.00615.45
7.0.270.0040.01515.05
7.0.260.0030.01015.03
7.0.250.0000.01315.08
7.0.240.0040.01215.13
7.0.230.0070.00715.06
7.0.220.0040.00715.50
7.0.210.0100.00315.11
7.0.200.0020.00916.04
7.0.190.0070.00715.02
7.0.180.0030.00915.55
7.0.170.0070.00415.09
7.0.160.0070.00714.90
7.0.150.0080.00815.07
7.0.140.0040.04218.72
7.0.130.0070.00415.26
7.0.120.0030.00914.81
7.0.110.0060.00915.07
7.0.100.0050.03917.68
7.0.90.0060.02717.51
7.0.80.0050.02517.74
7.0.70.0050.04517.73
7.0.60.0100.03517.65
7.0.50.0050.03317.78
7.0.40.0070.04016.61
7.0.30.0030.04816.62
7.0.20.0090.03816.66
7.0.10.0070.04616.63
7.0.00.0080.03416.63
5.6.400.0060.00614.07
5.6.390.0070.00314.35
5.6.380.0070.00414.43
5.6.370.0100.00714.48
5.6.360.0030.01014.40
5.6.350.0000.01114.14
5.6.340.0060.00614.32
5.6.330.0040.01113.78
5.6.320.0030.00614.45
5.6.310.0030.01014.00
5.6.300.0120.00313.85
5.6.290.0030.01014.16
5.6.280.0050.04117.73
5.6.270.0070.01014.39
5.6.260.0060.00913.85
5.6.250.0120.03917.43
5.6.240.0100.03317.36
5.6.230.0120.02317.35
5.6.220.0080.04817.24
5.6.210.0040.03417.29
5.6.200.0050.04517.71
5.6.190.0070.04317.89
5.6.180.0110.02817.71
5.6.170.0130.02617.68
5.6.160.0040.02517.81
5.6.150.0050.03217.75
5.6.140.0050.03617.54
5.6.130.0100.03817.68
5.6.120.0050.04517.72
5.6.110.0090.02817.72
5.6.100.0070.04117.50
5.6.90.0000.04917.67
5.6.80.0050.02417.38
5.6.70.0100.02517.25
5.6.60.0050.03917.22
5.6.50.0010.04617.31
5.6.40.0090.03917.24
5.6.30.0050.02517.40
5.6.20.0050.02817.24
5.6.10.0060.04017.19
5.6.00.0030.04417.13
5.5.380.0080.04217.17
5.5.370.0090.02517.51
5.5.360.0090.03917.40
5.5.350.0080.03817.35
5.5.340.0050.04817.56
5.5.330.0080.02517.68
5.5.320.0060.04817.63
5.5.310.0050.03417.48
5.5.300.0080.02717.38
5.5.290.0090.03117.48
5.5.280.0130.04517.73
5.5.270.0080.04317.50
5.5.260.0120.04417.41
5.5.250.0110.02317.48
5.5.240.0050.04817.37
5.5.230.0080.03917.20
5.5.220.0090.03017.29
5.5.210.0080.03817.28
5.5.200.0120.02017.25
5.5.190.0100.03917.24
5.5.180.0070.02517.26
5.5.170.0100.00314.24
5.5.160.0050.04717.40
5.5.150.0130.02717.28
5.5.140.0110.04017.22
5.5.130.0100.04017.10
5.5.120.0080.02817.04
5.5.110.0050.04517.30
5.5.100.0090.02217.20
5.5.90.0030.02517.11
5.5.80.0000.04416.99
5.5.70.0070.04117.07
5.5.60.0100.04017.22
5.5.50.0050.02417.10
5.5.40.0020.03317.19
5.5.30.0050.04717.16
5.5.20.0090.02617.22
5.5.10.0090.04017.14
5.5.00.0100.03017.17
5.4.450.0060.03915.20
5.4.440.0070.03715.33
5.4.430.0060.02415.31
5.4.420.0070.03115.04
5.4.410.0130.03715.23
5.4.400.0130.03615.22
5.4.390.0110.03815.04
5.4.380.0030.03014.98
5.4.370.0030.02615.11
5.4.360.0060.04114.87
5.4.350.0100.03015.13
5.4.340.0090.03015.12
5.4.330.0030.00310.88
5.4.320.0060.02314.99
5.4.310.0090.02414.95
5.4.300.0030.02814.93
5.4.290.0060.03514.98
5.4.280.0030.02514.88
5.4.270.0130.03614.96
5.4.260.0140.01315.09
5.4.250.0050.03715.05
5.4.240.0050.03814.96
5.4.230.0070.03814.78
5.4.220.0090.02815.05
5.4.210.0060.04014.83
5.4.200.0070.04015.04
5.4.190.0050.02214.71
5.4.180.0070.03214.88
5.4.170.0050.04415.16
5.4.160.0040.04215.09
5.4.150.0060.04315.09
5.4.140.0080.04013.73
5.4.130.0100.03013.52
5.4.120.0050.02113.83
5.4.110.0120.04213.74
5.4.100.0030.03513.75
5.4.90.0020.02813.56
5.4.80.0060.04113.74
5.4.70.0030.02513.57
5.4.60.0070.02313.76
5.4.50.0070.04013.69
5.4.40.0030.04113.82
5.4.30.0080.03013.68
5.4.20.0030.03813.67
5.4.10.0030.03513.63
5.4.00.0030.04113.41
5.3.290.0080.03812.61
5.3.280.0070.03912.55
5.3.270.0070.03012.62
5.3.260.0050.02512.68
5.3.250.0090.03312.66
5.3.240.0030.03612.62
5.3.230.0030.04412.48
5.3.220.0090.03412.49
5.3.210.0050.04312.53
5.3.200.0020.03612.41
5.3.190.0060.03312.37
5.3.180.0050.04212.50
5.3.170.0080.02012.57
5.3.160.0030.02112.67
5.3.150.0090.03712.51
5.3.140.0030.03612.61
5.3.130.0100.03812.60
5.3.120.0060.02012.60
5.3.110.0060.02612.58
5.3.100.0110.02312.39
5.3.90.0060.03812.24
5.3.80.0050.02512.19
5.3.70.0070.03012.08
5.3.60.0070.03612.16
5.3.50.0020.03112.28
5.3.40.0070.03512.18
5.3.30.0050.03812.21
5.3.20.0070.03512.23
5.3.10.0030.04312.02
5.3.00.0080.02711.91
5.2.170.0030.05711.14
5.2.160.0070.04711.03
5.2.150.0030.06311.07
5.2.140.0100.06711.16
5.2.130.0000.06011.17
5.2.120.0100.05711.04
5.2.110.0070.06011.00
5.2.100.0070.05711.05
5.2.90.0030.03711.02
5.2.80.0070.03011.14
5.2.70.0030.06310.96
5.2.60.0070.05711.19
5.2.50.0070.06011.13
5.2.40.0030.03010.89
5.2.30.0070.03011.03
5.2.20.0030.05010.82
5.2.10.0030.03311.00
5.2.00.0100.05310.63
5.1.60.0000.05310.00
5.1.50.0030.0279.88
5.1.40.0030.0579.97
5.1.30.0030.05010.27
5.1.20.0100.06010.22
5.1.10.0070.0309.96
5.1.00.0070.05310.08
5.0.50.0100.0308.63
5.0.40.0070.0438.50
5.0.30.0000.0578.40
5.0.20.0070.0338.40
5.0.10.0130.0238.40
5.0.00.0000.0738.40
4.4.90.0070.0308.40
4.4.80.0030.0238.40
4.4.70.0030.0338.40
4.4.60.0030.0238.40
4.4.50.0070.0138.40
4.4.40.0070.0308.40
4.4.30.0030.0178.40
4.4.20.0000.0308.40
4.4.10.0000.0238.40
4.4.00.0000.0438.40
4.3.110.0030.0238.40
4.3.100.0100.0238.40
4.3.90.0030.0378.40
4.3.80.0070.0238.40
4.3.70.0030.0338.40
4.3.60.0030.0208.40
4.3.50.0000.0378.40
4.3.40.0030.0508.40
4.3.30.0030.0278.40
4.3.20.0030.0338.40
4.3.10.0000.0408.40
4.3.00.0000.0308.40

preferences:
69.9 ms | 400 KiB | 5 Q