3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { public function __construct(...$args) { print 'Parent: ' . count($args) . PHP_EOL; } } class ChildClass extends ParentClass { public function __construct(...$args) { parent::__construct(...$args); print 'Child: ' . count($args). PHP_EOL; } } $child = new ChildClass(1, 2, 3, new stdClass);

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.0140.00716.75
8.3.50.0120.00317.95
8.3.40.0120.00318.80
8.3.30.0110.00418.67
8.3.20.0030.00621.81
8.3.10.0030.00623.66
8.3.00.0030.00518.99
8.2.180.0040.01218.42
8.2.170.0140.00722.96
8.2.160.0070.00722.11
8.2.150.0090.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00720.68
8.2.110.0070.00419.14
8.2.100.0030.00817.66
8.2.90.0040.00417.97
8.2.80.0030.00619.03
8.2.70.0000.00817.63
8.2.60.0050.00317.63
8.2.50.0040.00417.50
8.2.40.0070.00618.55
8.2.30.0050.00718.52
8.2.20.0090.00417.82
8.2.10.0050.00717.84
8.2.00.0100.00217.87
8.1.280.0100.00325.92
8.1.270.0050.00224.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.74
8.1.230.0090.00320.84
8.1.220.0040.00417.79
8.1.210.0000.00918.77
8.1.200.0120.00017.22
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0030.00617.62
8.1.160.0120.00018.28
8.1.150.0080.00318.32
8.1.140.0100.00117.66
8.1.130.0030.00817.57
8.1.120.0090.00517.54
8.1.110.0090.00317.53
8.1.100.0130.00017.49
8.1.90.0120.00117.47
8.1.80.0080.00417.52
8.1.70.0100.00217.54
8.1.60.0090.00617.55
8.1.50.0050.00817.58
8.1.40.0060.00617.54
8.1.30.0140.00317.64
8.1.20.0080.01017.59
8.1.10.0060.00817.55
8.1.00.0080.00417.57
8.0.300.0040.00420.21
8.0.290.0000.00816.75
8.0.280.0110.00118.04
8.0.270.0060.00617.47
8.0.260.0050.00717.20
8.0.250.0070.00417.31
8.0.240.0080.00317.24
8.0.230.0080.00317.25
8.0.220.0030.00917.21
8.0.210.0020.00917.23
8.0.200.0130.00017.23
8.0.190.0100.00217.23
8.0.180.0090.00317.21
8.0.170.0070.00617.28
8.0.160.0030.00917.23
8.0.150.0100.00317.25
8.0.140.0070.00517.24
8.0.130.0060.00615.46
8.0.120.0060.00517.24
8.0.110.0080.00417.25
8.0.100.0090.00417.19
8.0.90.0110.00117.19
8.0.80.0070.00917.24
8.0.70.0060.00617.19
8.0.60.0090.00317.25
8.0.50.0030.00917.23
8.0.30.0110.00617.21
8.0.20.0140.00617.47
8.0.10.0040.00817.31
8.0.00.0090.00917.12
7.4.330.0040.00516.58
7.4.320.0120.00017.12
7.4.300.0080.00317.11
7.4.290.0060.00617.02
7.4.280.0070.00517.01
7.4.270.0100.00217.07
7.4.260.0080.00417.05
7.4.250.0050.00617.09
7.4.240.0000.01217.09
7.4.230.0060.00617.10
7.4.220.0100.00117.04
7.4.210.0090.00616.78
7.4.200.0070.00316.96
7.4.190.0100.00617.62
7.4.180.0190.00017.62
7.4.160.0110.00616.84
7.4.150.0110.00417.62
7.4.140.0110.00717.81
7.4.130.0130.00317.07
7.4.120.0080.00916.79
7.4.110.0100.01016.81
7.4.100.0150.00616.90
7.4.90.0160.00516.88
7.4.80.0170.00617.81
7.4.70.0150.01016.82
7.4.60.0170.00316.75
7.4.50.0110.00816.69
7.4.40.0150.00716.85
7.4.30.0150.00516.85
7.4.20.0170.00516.86
7.4.10.0110.00916.68
7.4.00.0100.00716.18
7.3.330.0090.00115.46
7.3.320.0060.00515.35
7.3.310.0090.00417.00
7.3.300.0100.00116.96
7.3.290.0070.00816.96
7.3.280.0070.00716.73
7.3.270.0110.00417.62
7.3.260.0100.00916.73
7.3.250.0130.00617.62
7.3.240.0150.01217.06
7.3.230.0140.00716.82
7.3.220.0190.00716.97
7.3.210.0160.00716.89
7.3.200.0110.01216.85
7.3.190.0150.00516.79
7.3.180.0130.00616.70
7.3.170.0140.00816.75
7.3.160.0180.00416.86
7.3.150.0150.00616.82
7.3.140.0100.01116.67
7.3.130.0100.01016.63
7.3.120.0130.00816.31
7.3.110.0110.00816.33
7.3.100.0110.00916.25
7.3.90.0120.00716.36
7.3.80.0100.00816.32
7.3.70.0140.00316.22
7.3.60.0120.00716.26
7.3.50.0120.00716.24
7.3.40.0100.00916.23
7.3.30.0120.00716.25
7.3.20.0210.00916.59
7.3.10.0120.00816.58
7.3.00.0260.00716.33
7.2.340.0200.00417.12
7.2.330.0150.00816.79
7.2.320.0150.00816.92
7.2.310.0130.00816.97
7.2.300.0140.00616.98
7.2.290.0130.00817.02
7.2.280.0130.00717.06
7.2.270.0090.01316.87
7.2.260.0120.00716.81
7.2.250.0120.00816.61
7.2.240.0130.00716.47
7.2.230.0100.00916.59
7.2.220.0090.01216.53
7.2.210.0070.01116.50
7.2.200.0130.00816.49
7.2.190.0110.00816.49
7.2.180.0130.00616.48
7.2.170.0110.00716.49
7.2.160.0130.01016.46
7.2.150.0120.00816.88
7.2.140.0120.01016.77
7.2.130.0210.00716.56
7.2.120.0350.00816.56
7.2.110.0300.00616.59
7.2.100.0290.00816.55
7.2.90.0570.01116.36
7.2.80.0260.00716.41
7.2.70.0250.00916.25
7.2.60.0940.00716.35
7.2.50.0930.00716.28
7.2.40.0630.00916.47
7.2.30.0710.00716.43
7.2.20.0600.00716.41
7.2.10.0570.00816.35
7.2.00.0660.00916.43
7.1.330.0120.00815.83
7.1.320.0150.00815.97
7.1.310.0150.00615.95
7.1.300.0110.00915.83
7.1.290.0140.00715.83
7.1.280.0150.00615.90
7.1.270.0160.00615.92
7.1.260.0100.00815.89
7.1.250.0180.00915.51
7.1.240.0210.00715.59
7.1.230.0240.00715.58
7.1.220.0340.00615.56
7.1.210.0180.00715.33
7.1.200.0190.00815.40
7.1.190.0280.00615.41
7.1.180.0530.00815.39
7.1.170.0840.00615.24
7.1.160.0800.00615.37
7.1.150.0740.00715.35
7.1.140.0560.00715.42
7.1.130.0690.00915.39
7.1.120.0600.00915.35
7.1.110.0560.00815.29
7.1.100.0610.00715.32
7.1.90.0910.00715.32
7.1.80.0760.00815.34
7.1.70.0800.00815.26
7.1.60.0340.00920.11
7.1.50.0450.00920.08
7.1.40.0730.00820.11
7.1.30.0360.01120.05
7.1.20.0330.01020.04
7.1.10.0310.00815.20
7.1.00.0300.00715.19
7.0.330.0190.00715.25
7.0.320.0260.00815.29
7.0.310.0210.00615.08
7.0.300.0910.00514.93
7.0.290.0220.00715.23
7.0.280.0600.00715.05
7.0.270.0240.00715.30
7.0.260.0220.00815.24
7.0.250.0210.00915.29
7.0.240.0160.00815.40
7.0.230.0160.00615.34
7.0.220.0160.00615.33
7.0.210.0190.00415.29
7.0.200.0180.00815.36
7.0.190.0150.00715.34
7.0.180.0170.00815.21
7.0.170.0140.00715.39
7.0.160.0150.00815.33
7.0.150.0180.00615.34
7.0.140.0160.00715.34
7.0.130.0140.00915.34
7.0.120.0150.00715.36
7.0.110.0140.00815.35
7.0.100.0160.00615.34
7.0.90.0140.00615.34
7.0.80.0150.00715.26
7.0.70.0150.00915.31
7.0.60.0160.00915.37
7.0.50.0150.00815.31
7.0.40.0150.00614.79
7.0.30.0170.00614.82
7.0.20.0150.00614.82
7.0.10.0150.00514.84
7.0.00.0130.00814.79
5.6.400.0140.00715.94
5.6.390.0100.01215.95
5.6.380.0090.00915.42
5.6.370.0110.00815.50
5.6.360.0110.01015.56
5.6.350.0110.00915.47
5.6.340.0110.00815.54
5.6.330.0110.00815.50
5.6.320.0070.01115.57
5.6.310.0110.00815.54
5.6.300.0130.01615.74
5.6.290.0150.01516.13
5.6.280.0110.01516.11
5.6.270.0150.01116.13
5.6.260.0140.01216.16
5.6.250.0130.01316.12
5.6.240.0100.01716.09
5.6.230.0100.01716.13
5.6.220.0120.01416.10
5.6.210.0120.01416.10
5.6.200.0100.01616.04
5.6.190.0120.01616.05
5.6.180.0120.01516.10
5.6.170.0100.01916.10
5.6.160.0120.01716.10
5.6.150.0110.01616.12
5.6.140.0130.01416.14
5.6.130.0130.01416.10
5.6.120.0120.01416.03
5.6.110.0100.01616.07
5.6.100.0110.01416.02
5.6.90.0120.01716.09
5.6.80.0130.01415.95
5.6.70.0130.01316.02
5.6.60.0100.01815.92
5.6.50.0090.01715.95
5.6.40.0100.01615.98
5.6.30.0110.01515.96
5.6.20.0100.01615.92
5.6.10.0130.01315.90
5.6.00.0120.01615.90

preferences:
39.23 ms | 400 KiB | 5 Q