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 gjfdcxyrfdyr);

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.0090.00918.30
8.3.50.0160.00016.34
8.3.40.0110.00718.79
8.3.30.0110.00318.90
8.3.20.0040.00419.20
8.3.10.0040.00421.73
8.3.00.0040.00423.68
8.2.180.0040.01216.63
8.2.170.0040.01122.96
8.2.160.0150.00619.39
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00421.12
8.2.120.0070.00026.35
8.2.110.0040.00420.99
8.2.100.0080.00417.91
8.2.90.0040.00419.38
8.2.80.0040.00417.97
8.2.70.0000.00817.93
8.2.60.0050.00317.92
8.2.50.0040.00418.10
8.2.40.0090.00018.99
8.2.30.0040.00419.25
8.2.20.0050.00218.11
8.2.10.0040.00417.91
8.2.00.0000.00819.19
8.1.280.0070.01125.92
8.1.270.0040.00422.00
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.47
8.1.230.0120.00020.89
8.1.220.0040.00417.74
8.1.210.0050.00318.97
8.1.200.0030.00717.23
8.1.190.0030.00617.39
8.1.180.0080.00018.10
8.1.170.0040.00418.91
8.1.160.0040.00418.77
8.1.150.0070.00018.69
8.1.140.0040.00417.63
8.1.130.0070.00018.95
8.1.120.0030.00317.41
8.1.110.0040.00317.34
8.1.100.0060.00317.34
8.1.90.0040.00417.35
8.1.80.0060.00317.36
8.1.70.0040.00417.36
8.1.60.0030.00517.53
8.1.50.0050.00317.41
8.1.40.0000.00817.33
8.1.30.0040.00417.49
8.1.20.0050.00317.63
8.1.10.0030.00617.46
8.1.00.0030.00617.34
8.0.300.0040.00419.93
8.0.290.0030.00616.63
8.0.280.0030.00318.25
8.0.270.0030.00517.25
8.0.260.0070.00017.14
8.0.250.0000.00716.85
8.0.240.0040.00416.92
8.0.230.0000.00816.96
8.0.220.0020.00516.93
8.0.210.0000.00716.88
8.0.200.0000.00816.92
8.0.190.0070.00016.99
8.0.180.0030.00616.95
8.0.170.0050.00616.80
8.0.160.0040.00416.92
8.0.150.0070.00016.84
8.0.140.0000.00716.89
8.0.130.0000.00613.28
8.0.120.0070.00016.77
8.0.110.0000.00716.93
8.0.100.0030.00316.84
8.0.90.0000.00816.96
8.0.80.0090.01016.89
8.0.70.0000.00716.88
8.0.60.0030.00616.95
8.0.50.0000.00716.69
8.0.30.0100.00917.11
8.0.20.0170.00817.40
8.0.10.0000.00716.96
8.0.00.0110.00616.49
7.4.330.0030.00315.55
7.4.320.0060.00016.53
7.4.300.0000.00616.36
7.4.290.0100.00016.39
7.4.280.0050.00216.34
7.4.270.0000.00716.55
7.4.260.0000.00716.32
7.4.250.0050.00316.51
7.4.240.0030.00316.46
7.4.230.0000.00716.48
7.4.220.0000.00816.43
7.4.210.0080.01116.64
7.4.200.0040.00416.47
7.4.160.0080.00916.58
7.4.140.0090.01017.86
7.4.130.0000.01816.56
7.4.120.0110.00816.41
7.4.110.0100.00716.48
7.4.100.0030.01316.36
7.4.90.0000.01816.31
7.4.80.0100.01019.39
7.4.70.0060.01016.53
7.4.60.0030.01316.64
7.4.50.0030.01316.47
7.4.40.0120.00816.59
7.4.10.0070.01115.03
7.4.00.0100.00714.96
7.3.330.0030.00513.15
7.3.320.0030.00313.29
7.3.310.0000.00716.36
7.3.300.0070.00016.19
7.3.290.0030.00316.28
7.3.280.0050.01316.35
7.3.260.0110.00816.45
7.3.240.0120.00716.43
7.3.230.0040.01216.22
7.3.210.0070.01016.32
7.3.200.0120.00916.41
7.3.190.0120.00616.46
7.3.180.0090.00616.26
7.3.170.0140.00616.49
7.3.160.0060.01016.50
7.3.130.0070.01014.95
7.3.120.0050.01314.87
7.3.110.0090.01114.80
7.3.100.0060.00814.86
7.3.90.0030.01114.95
7.3.80.0060.00514.72
7.3.70.0070.00814.80
7.3.60.0060.00614.88
7.3.50.0060.00814.77
7.3.40.0030.00814.84
7.3.30.0080.00514.70
7.3.20.0070.00816.60
7.3.10.0030.00916.47
7.3.00.0050.01016.59
7.2.330.0100.01416.41
7.2.320.0110.00716.57
7.2.310.0100.00616.30
7.2.300.0040.01316.46
7.2.290.0230.00616.20
7.2.260.0100.01014.69
7.2.250.0050.01314.94
7.2.240.0070.00914.86
7.2.230.0050.01114.81
7.2.220.0080.01114.96
7.2.210.0020.01014.67
7.2.200.0080.00814.68
7.2.190.0060.00614.82
7.2.180.0100.00314.99
7.2.170.0090.00514.85
7.2.160.0000.01214.69
7.2.150.0000.01316.52
7.2.140.0070.00316.91
7.2.130.0060.00916.62
7.2.120.0030.01316.86
7.2.110.0060.00316.54
7.2.100.0030.01316.91
7.2.90.0030.01016.99
7.2.80.0090.00616.90
7.2.70.0150.00915.72
7.2.60.0180.00615.79
7.2.50.0160.00615.91
7.2.40.0180.00515.88
7.2.30.0200.00715.75
7.2.20.0160.01115.74
7.2.10.0220.01015.51
7.2.00.0190.00615.68
7.1.330.0100.00315.64
7.1.320.0090.00715.74
7.1.310.0050.00815.66
7.1.300.0020.00915.66
7.1.290.0080.00515.74
7.1.280.0060.00615.51
7.1.270.0080.00515.52
7.1.260.0030.00715.48
7.1.250.0030.01015.36
7.1.240.0030.00615.51
7.1.230.0040.00815.78
7.1.220.0100.00315.75
7.1.210.0040.00915.62
7.1.200.0100.00715.38
7.1.190.0070.00715.76
7.1.180.0120.00315.35
7.1.170.0150.00714.69
7.1.160.0140.01014.71
7.1.150.0140.01014.73
7.1.140.0210.00514.48
7.1.130.0180.00814.73
7.1.120.0180.00614.69
7.1.110.0270.00214.67
7.1.100.0160.00814.72
7.1.90.0170.00814.58
7.1.80.0180.00614.56
7.1.70.0180.00514.75
7.1.60.0300.00523.67
7.1.50.0600.01323.72
7.1.40.0390.00823.55
7.1.30.0380.00523.52
7.1.20.0250.00723.54
7.1.10.0150.00714.55
7.1.00.0140.00914.48
7.0.330.0040.00415.26
7.0.320.0030.01015.11
7.0.310.0090.00615.34
7.0.300.0100.00315.09
7.0.290.0070.00715.46
7.0.280.0040.00715.07
7.0.270.0070.00315.29
7.0.260.0070.00315.23
7.0.250.0090.00315.46
7.0.240.0120.00615.02
7.0.230.0070.01015.38
7.0.220.0040.00415.23
7.0.210.0000.01315.35
7.0.200.0030.01215.16
7.0.190.0030.01015.14
7.0.180.0140.00314.99
7.0.170.0140.00315.21
7.0.160.0030.00915.21
7.0.150.0030.01015.45
7.0.140.0030.00715.41
7.0.130.0060.00315.01
7.0.120.0000.01115.27
7.0.110.0030.00915.16
7.0.100.0060.00315.40
7.0.90.0090.00015.11
7.0.80.0070.00715.17
7.0.70.0080.00515.09
7.0.60.0070.00715.37
7.0.50.0070.00315.48
7.0.40.0030.01013.54
7.0.30.0070.00713.36
7.0.20.0070.00313.27
7.0.10.0040.00413.37
7.0.00.0030.00913.45
5.6.400.0000.01014.26
5.6.390.0130.00014.32
5.6.380.0110.00414.39
5.6.370.0000.01214.62
5.6.360.0030.01314.18
5.6.350.0040.00814.34
5.6.340.0040.01114.43
5.6.330.0040.00814.25
5.6.320.0030.01214.43
5.6.310.0030.01314.48
5.6.300.0030.01314.40
5.6.290.0040.00414.19
5.6.280.0030.01014.39
5.6.270.0090.00314.47
5.6.260.0070.00713.97
5.6.250.0060.00814.44
5.6.240.0060.00614.17
5.6.230.0070.00714.26
5.6.220.0070.00713.89
5.6.210.0030.00714.27
5.6.200.0040.00714.23
5.6.190.0100.00313.91
5.6.180.0070.00314.33
5.6.170.0000.01114.08
5.6.160.0060.00614.51
5.6.150.0070.00714.07
5.6.140.0100.00314.13
5.6.130.0030.01014.03
5.6.120.0040.01114.18
5.6.110.0000.01014.15
5.6.100.0030.01014.11
5.6.90.0070.00714.25
5.6.80.0080.00414.36
5.6.70.0030.00914.21
5.6.60.0090.00614.15
5.6.50.0060.00314.04
5.6.40.0090.00614.00
5.6.30.0080.00514.13
5.6.20.0110.00714.10
5.6.10.0040.01414.16
5.6.00.0030.00614.18

preferences:
68.21 ms | 401 KiB | 5 Q