3v4l.org

run code in 300+ PHP versions simultaneously
<?php class fClass { public $a; public $b; function __construct($a,$b){ $this->a = $a; $this->b = $b; echo "Значения присвоены"; } } class sClass extends fClass{ public $c; function __construct($a,$b,$c){ parent::__construct($a,$b); $this->c = $c; } } $number = new sClass(1,2,3); print_r($number); ?>

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.0070.01416.63
8.3.50.0150.00422.10
8.3.40.0130.00618.68
8.3.30.0030.01019.05
8.3.20.0040.00420.20
8.3.10.0000.00721.73
8.3.00.0000.00817.63
8.2.180.0130.01016.88
8.2.170.0150.00718.83
8.2.160.0110.00422.96
8.2.150.0000.00825.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0120.00017.50
8.2.110.0040.00420.46
8.2.100.0070.00318.09
8.2.90.0040.00419.05
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0050.00319.94
8.2.30.0070.00017.92
8.2.20.0070.00017.63
8.2.10.0060.00318.00
8.2.00.0040.00418.02
8.1.280.0100.00325.92
8.1.270.0070.01120.29
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00021.93
8.1.230.0080.00419.11
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0030.00617.13
8.1.180.0040.00418.10
8.1.170.0030.00618.51
8.1.160.0090.00022.02
8.1.150.0050.00218.71
8.1.140.0000.00717.40
8.1.130.0080.00017.55
8.1.120.0040.00417.30
8.1.110.0070.00017.30
8.1.100.0000.00717.39
8.1.90.0040.00317.38
8.1.80.0000.00717.41
8.1.70.0000.00717.42
8.1.60.0060.00317.62
8.1.50.0030.00617.52
8.1.40.0050.00217.50
8.1.30.0030.00617.67
8.1.20.0030.00617.65
8.1.10.0080.00017.55
8.1.00.0000.00817.53
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.46
8.0.270.0000.00717.27
8.0.260.0000.00617.27
8.0.250.0090.00016.77
8.0.240.0030.00516.93
8.0.230.0040.00416.91
8.0.220.0000.00716.82
8.0.210.0040.00416.70
8.0.200.0060.00016.87
8.0.190.0000.00816.91
8.0.180.0050.00316.88
8.0.170.0040.00416.86
8.0.160.0000.00716.75
8.0.150.0080.00016.77
8.0.140.0040.00416.75
8.0.130.0000.00613.25
8.0.120.0050.00316.85
8.0.110.0070.00016.87
8.0.100.0000.00716.86
8.0.90.0040.00416.84
8.0.80.0130.00316.89
8.0.70.0070.00016.84
8.0.60.0040.00416.88
8.0.50.0050.00316.72
8.0.30.0160.01317.17
8.0.20.0080.01017.40
8.0.10.0040.00416.83
8.0.00.0100.00916.92
7.4.330.0000.00515.09
7.4.320.0040.00416.42
7.4.300.0030.00316.53
7.4.290.0000.00716.59
7.4.280.0000.00816.52
7.4.270.0030.00316.52
7.4.260.0030.00316.51
7.4.250.0080.00016.61
7.4.240.0020.00516.57
7.4.230.0000.00816.42
7.4.220.0130.00316.55
7.4.210.0060.00916.57
7.4.200.0000.00716.56
7.4.160.0150.00016.48
7.4.150.0030.01317.40
7.4.140.0100.00817.86
7.4.130.0080.01216.56
7.4.120.0100.00816.58
7.4.110.0170.00016.49
7.4.100.0030.01916.34
7.4.90.0130.01016.40
7.4.80.0090.00919.39
7.4.70.0190.00416.50
7.4.60.0110.00516.46
7.4.50.0030.00616.12
7.4.40.0090.00916.51
7.4.30.0130.00416.64
7.4.00.0090.00614.97
7.3.330.0000.00513.05
7.3.320.0000.00613.21
7.3.310.0040.00416.20
7.3.300.0030.00316.24
7.3.290.0050.01016.25
7.3.280.0100.00916.26
7.3.270.0100.00717.40
7.3.260.0070.01116.45
7.3.250.0110.01116.42
7.3.240.0100.00716.52
7.3.230.0130.00416.39
7.3.210.0130.00316.17
7.3.200.0100.00619.39
7.3.190.0120.00316.16
7.3.180.0110.00416.29
7.3.170.0100.01016.27
7.3.160.0030.01316.30
7.3.00.0100.00616.50
7.2.330.0100.00716.71
7.2.320.0120.00616.64
7.2.310.0120.00616.52
7.2.300.0110.00716.72
7.2.290.0120.01216.66
7.2.130.0140.00316.76
7.2.120.0120.00616.82
7.2.110.0040.00816.75
7.2.100.0140.00016.94
7.2.90.0090.00616.90
7.2.80.0090.00616.78
7.2.70.0090.00917.04
7.2.60.0090.00516.75
7.2.50.0030.00716.72
7.2.40.0080.00416.75
7.2.30.0130.00317.09
7.2.20.0070.00716.91
7.2.10.0070.01016.77
7.2.00.0050.00718.14
7.1.250.0030.00615.80
7.1.240.0070.00715.60
7.1.230.0090.00615.59
7.1.220.0100.00715.60
7.1.210.0060.00915.63
7.1.200.0050.00615.76
7.1.190.0060.01015.74
7.1.180.0090.00615.95
7.1.170.0070.01015.90
7.1.160.0000.00915.65
7.1.150.0000.01315.51
7.1.140.0070.01015.88
7.1.130.0030.01015.81
7.1.120.0100.00715.54
7.1.110.0030.00615.70
7.1.100.0060.00516.84
7.1.90.0030.00915.57
7.1.80.0030.01015.88
7.1.70.0090.00516.55
7.1.60.0060.01117.72
7.1.50.0080.00516.40
7.1.40.0140.00315.55
7.1.30.0080.00315.87
7.1.20.0060.00315.62
7.1.10.0030.01015.91
7.1.00.0080.04019.18
7.0.330.0050.00315.18
7.0.320.0000.01315.34
7.0.310.0070.00315.28
7.0.300.0070.00715.36
7.0.290.0000.01415.25
7.0.280.0100.00015.18
7.0.270.0100.00615.63
7.0.260.0030.01215.31
7.0.250.0110.00715.10
7.0.240.0040.00415.61
7.0.230.0100.01015.27
7.0.220.0000.01115.47
7.0.210.0120.00015.24
7.0.200.0020.00716.10
7.0.190.0030.01015.39
7.0.180.0030.00915.38
7.0.170.0060.00615.54
7.0.160.0000.01015.43
7.0.150.0030.00815.27
7.0.140.0070.00315.38
7.0.130.0040.00815.45
7.0.120.0000.03718.82
7.0.110.0050.04218.65
7.0.100.0090.03518.77
7.0.90.0030.03218.80
7.0.80.0050.02718.78
7.0.70.0020.04318.67
7.0.60.0020.04518.65
7.0.50.0070.04218.69
7.0.40.0020.04716.79
7.0.30.0110.03416.63
7.0.20.0110.02716.62
7.0.10.0060.02316.44
7.0.00.0080.02316.65
5.6.380.0030.01314.45
5.6.370.0100.00614.00
5.6.360.0030.01014.41
5.6.350.0040.00414.37
5.6.340.0100.00314.46
5.6.330.0070.00714.68
5.6.320.0080.00514.70
5.6.310.0060.00614.28
5.6.300.0040.00814.48
5.6.290.0110.00314.59
5.6.280.0020.04117.80
5.6.270.0060.04317.58
5.6.260.0060.04117.72
5.6.250.0050.03517.58
5.6.240.0000.04517.71
5.6.230.0070.02417.55
5.6.220.0020.03217.63
5.6.210.0100.03317.78
5.6.200.0020.02917.50
5.6.190.0030.04017.39
5.6.180.0030.02617.73
5.6.170.0080.02517.71
5.6.160.0070.03417.51
5.6.150.0050.03617.64
5.6.140.0000.04717.49
5.6.130.0020.02417.66
5.6.120.0030.02817.57
5.6.110.0040.04617.50
5.6.100.0050.02117.55
5.6.90.0030.02617.61
5.6.80.0040.02417.34
5.6.70.0040.02217.28
5.6.60.0020.02217.29
5.6.50.0000.03917.15
5.6.40.0000.02317.23
5.6.30.0040.03317.36
5.6.20.0060.01817.29
5.6.10.0050.02017.29
5.6.00.0050.02217.34
5.5.380.0040.02714.55
5.5.370.0020.03514.36
5.5.360.0000.03714.37
5.5.350.0070.02214.59
5.5.340.0070.03814.68
5.5.330.0000.04514.66
5.5.320.0030.02514.66
5.5.310.0050.04314.56
5.5.300.0000.02314.62
5.5.290.0080.03814.51
5.5.280.0000.02314.44
5.5.270.0030.02314.55
5.5.260.0020.02214.63
5.5.250.0030.02014.58
5.5.240.0000.02114.19
5.5.230.0030.02514.37
5.5.220.0020.03714.35
5.5.210.0080.02014.09
5.5.200.0040.02114.19
5.5.190.0030.03014.30
5.5.180.0020.02314.38
5.5.170.0030.00710.82
5.5.160.0020.02314.27
5.5.150.0020.03314.29
5.5.140.0050.02214.37
5.5.130.0090.01514.18
5.5.120.0010.03614.09
5.5.110.0030.02214.17
5.5.100.0050.02414.14
5.5.90.0000.02614.05
5.5.80.0020.02014.17
5.5.70.0040.03814.05
5.5.60.0000.02213.99
5.5.50.0070.01413.97
5.5.40.0040.03814.38
5.5.30.0040.03914.26
5.5.20.0020.02914.02
5.5.10.0050.04014.29
5.5.00.0020.03414.23
5.4.450.0070.01715.27
5.4.440.0050.01815.37
5.4.430.0030.02215.24
5.4.420.0040.02015.14
5.4.410.0030.02315.20
5.4.400.0080.01814.94
5.4.390.0000.02415.03
5.4.380.0030.02114.95
5.4.370.0020.04014.80
5.4.360.0060.02814.94
5.4.350.0020.02114.66
5.4.340.0020.02414.94
5.4.330.0030.01011.12
5.4.320.0070.02015.06
5.4.310.0030.02314.94
5.4.300.0060.03714.93
5.4.290.0020.02314.85
5.4.280.0060.02614.97
5.4.270.0030.02114.98
5.4.260.0060.02914.96
5.4.250.0030.03815.06
5.4.240.0030.04315.13
5.4.230.0040.02115.00
5.4.220.0030.02014.74
5.4.210.0070.03914.63
5.4.200.0000.04415.08
5.4.190.0110.01514.89
5.4.180.0080.03314.90
5.4.170.0040.02714.78
5.4.160.0080.01614.78
5.4.150.0050.01815.09
5.4.140.0020.03613.79
5.4.130.0020.03913.59
5.4.120.0060.03313.77
5.4.110.0030.03313.72
5.4.100.0010.01813.75
5.4.90.0040.02513.59
5.4.80.0050.01813.66
5.4.70.0040.03713.66
5.4.60.0050.03513.59
5.4.50.0050.03813.61
5.4.40.0050.03913.75
5.4.30.0070.03313.54
5.4.20.0040.03613.77
5.4.10.0020.03813.61
5.4.00.0030.03913.47
5.3.290.0040.02012.84
5.3.280.0060.03312.56
5.3.270.0020.02012.69
5.3.260.0020.04112.64
5.3.250.0000.04512.64
5.3.240.0070.01812.58
5.3.230.0030.02312.75
5.3.220.0030.03512.48
5.3.210.0060.03612.49
5.3.200.0050.03212.38
5.3.190.0000.04712.54
5.3.180.0060.02812.65
5.3.170.0020.02112.67
5.3.160.0030.02812.59
5.3.150.0050.03812.52
5.3.140.0070.04012.55
5.3.130.0020.03912.54
5.3.120.0030.04012.59
5.3.110.0040.03712.50
5.3.100.0010.04012.31
5.3.90.0030.03812.35
5.3.80.0050.01812.23
5.3.70.0050.03912.24
5.3.60.0030.03812.07
5.3.50.0030.03712.28
5.3.40.0050.03312.25
5.3.30.0030.02512.19
5.3.20.0040.03312.13
5.3.10.0030.03811.98
5.3.00.0040.02212.06
5.2.170.0050.02810.68
5.2.160.0040.02810.67
5.2.150.0020.02810.76
5.2.140.0010.01810.73
5.2.130.0030.03110.74
5.2.120.0000.01810.71
5.2.110.0010.03510.71
5.2.100.0000.03610.67
5.2.90.0020.01810.78
5.2.80.0030.02910.67
5.2.70.0020.03210.78
5.2.60.0040.03110.67
5.2.50.0020.02110.70
5.2.40.0020.01710.60
5.2.30.0000.01810.59
5.2.20.0030.01610.59
5.2.10.0030.01610.58
5.2.00.0080.01210.48
5.1.60.0030.01710.21
5.1.50.0030.01210.12
5.1.40.0030.01510.14
5.1.30.0040.01510.29
5.1.20.0050.01510.29
5.1.10.0020.01210.15
5.1.00.0000.01810.14
5.0.50.0020.01210.12
5.0.40.0000.01210.12
5.0.30.0030.01610.12
5.0.20.0020.01010.12
5.0.10.0000.01210.12
5.0.00.0050.01310.12
4.4.90.0020.02010.12
4.4.80.0000.01210.12
4.4.70.0000.01210.12
4.4.60.0000.01010.12
4.4.50.0000.01110.12
4.4.40.0000.01510.12
4.4.30.0040.00710.12
4.4.20.0030.00710.12
4.4.10.0020.00710.12
4.4.00.0000.01310.12
4.3.110.0050.00510.12
4.3.100.0010.00710.12
4.3.90.0020.00910.12
4.3.80.0020.01310.12
4.3.70.0020.00710.12
4.3.60.0000.01110.12
4.3.50.0010.00810.12
4.3.40.0020.01310.12
4.3.30.0000.00910.12
4.3.20.0000.01210.12
4.3.10.0020.01010.12
4.3.00.0020.00810.12

preferences:
61.11 ms | 401 KiB | 5 Q