3v4l.org

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

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.4.20.0030.01719.28
8.4.10.0060.00917.68
8.3.150.0090.00919.02
8.3.140.0050.01019.01
8.3.130.0080.00018.42
8.3.120.0130.00618.92
8.3.110.0030.00620.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0060.00316.50
8.3.70.0070.01116.75
8.3.60.0100.01016.50
8.3.50.0130.00318.31
8.3.40.0040.01118.60
8.3.30.0140.00718.68
8.3.20.0030.00721.77
8.3.10.0160.00323.63
8.3.00.0090.00019.11
8.2.260.0090.00916.52
8.2.250.0070.01116.57
8.2.240.0060.00317.18
8.2.230.0130.01022.58
8.2.220.0100.01037.54
8.2.210.0190.00626.77
8.2.200.0060.00316.75
8.2.190.0080.00616.58
8.2.180.0110.00416.50
8.2.170.0110.00418.79
8.2.160.0100.00722.63
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00420.88
8.2.110.0000.00920.39
8.2.100.0060.00617.54
8.2.90.0080.00017.84
8.2.80.0000.00919.11
8.2.70.0040.00417.63
8.2.60.0050.00317.93
8.2.50.0000.00818.07
8.2.40.0000.00818.35
8.2.30.0110.00018.12
8.2.20.0000.00817.95
8.2.10.0040.00418.01
8.2.00.0000.00818.05
8.1.310.0070.00718.29
8.1.300.0040.01220.32
8.1.290.0070.00318.88
8.1.280.0120.00625.92
8.1.270.0040.00422.13
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0000.00920.82
8.1.230.0090.00320.88
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0030.00618.74
8.1.160.0040.00418.85
8.1.150.0040.00418.96
8.1.140.0000.00717.75
8.1.130.0030.00317.36
8.1.120.0050.00517.44
8.1.110.0040.00417.45
8.1.100.0090.00017.34
8.1.90.0040.00417.45
8.1.80.0000.00717.46
8.1.70.0000.00717.46
8.1.60.0130.00317.50
8.1.50.0040.00417.47
8.1.40.0000.00817.54
8.1.30.0050.00817.54
8.1.20.0040.00417.67
8.1.10.0030.00617.47
8.1.00.0090.00017.52
8.0.300.0070.01019.73
8.0.290.0040.00416.75
8.0.280.0000.00818.31
8.0.270.0070.00016.72
8.0.260.0070.00016.73
8.0.250.0030.00316.98
8.0.240.0000.00816.93
8.0.230.0090.00016.83
8.0.220.0050.00216.94
8.0.210.0000.00716.91
8.0.200.0070.00316.82
8.0.190.0000.00716.87
8.0.180.0030.00316.90
8.0.170.0060.00316.92
8.0.160.0000.00816.99
8.0.150.0030.00316.84
8.0.140.0050.00216.90
8.0.130.0000.00513.39
8.0.120.0000.00716.76
8.0.110.0070.00016.80
8.0.100.0000.00716.77
8.0.90.0040.00416.88
8.0.80.0110.00416.87
8.0.70.0040.00416.86
8.0.60.0000.00816.76
8.0.50.0070.00016.68
8.0.30.0130.01116.91
8.0.20.0110.01617.24
8.0.10.0200.00516.92
8.0.00.0110.01216.86
7.4.330.0000.00615.55
7.4.320.0030.00616.62
7.4.300.0070.00016.49
7.4.290.0000.00616.50
7.4.280.0060.00316.53
7.4.270.0000.00716.59
7.4.260.0070.00016.52
7.4.250.0030.00316.49
7.4.240.0070.00016.54
7.4.230.0070.00016.61
7.4.220.0000.00716.63
7.4.210.0090.00616.60
7.4.200.0030.00316.71
7.4.160.0180.00516.47
7.4.150.0140.01416.44
7.4.140.0150.00917.58
7.4.130.0200.00916.49
7.4.120.0130.01216.49
7.4.110.0130.01016.52
7.4.100.0100.01116.45
7.4.90.0130.01116.43
7.4.80.0150.00717.38
7.4.70.0170.00916.36
7.4.60.0110.00916.42
7.4.50.0080.01116.40
7.4.40.0150.00916.34
7.4.30.0130.00916.44
7.4.20.0130.01016.38
7.4.10.0120.00816.53
7.4.00.0110.00916.09
7.3.330.0000.00613.17
7.3.320.0000.00613.18
7.3.310.0040.00416.36
7.3.300.0030.00316.34
7.3.290.0090.00616.27
7.3.280.0140.00716.42
7.3.270.0260.00316.22
7.3.260.0130.00916.43
7.3.250.0170.01416.26
7.3.240.0110.00916.36
7.3.230.0110.01116.31
7.3.220.0110.01116.31
7.3.210.0160.00616.34
7.3.200.0140.00816.27
7.3.190.0140.00916.32
7.3.180.0130.00816.31
7.3.170.0160.00716.32
7.3.160.0130.01016.29
7.3.150.0160.00416.20
7.3.140.0100.01216.24
7.3.130.0100.01116.28
7.3.120.0150.00816.28
7.3.110.0140.00816.29
7.3.100.0180.00715.87
7.3.90.0190.00615.97
7.3.80.0150.00615.88
7.3.70.0170.00715.93
7.3.60.0140.00815.96
7.3.50.0130.00715.70
7.3.40.0130.00715.90
7.3.30.0120.00716.01
7.3.20.0150.00616.01
7.3.10.0190.00916.09
7.3.00.0130.00916.04
7.2.340.0120.01316.32
7.2.330.0150.01116.52
7.2.320.0110.01216.49
7.2.310.0100.01416.57
7.2.300.0110.01116.44
7.2.290.0140.00916.42
7.2.280.0120.00916.33
7.2.270.0120.01016.46
7.2.260.0150.00816.49
7.2.250.0110.01216.28
7.2.240.0140.01316.36
7.2.230.0130.01016.15
7.2.220.0150.00815.96
7.2.210.0140.00916.14
7.2.200.0110.01216.19
7.2.190.0150.00716.08
7.2.180.0120.01116.11
7.2.170.0120.00816.15
7.2.160.0110.01016.09
7.2.150.0130.01316.21
7.2.140.0080.01516.23
7.2.130.0130.00816.31
7.2.120.0110.01016.25
7.2.110.0120.00716.32
7.2.100.0100.01116.39
7.2.90.0230.00616.32
7.2.80.0160.01016.36
7.2.70.0100.01016.32
7.2.60.0110.00716.39
7.2.50.0120.00816.27
7.2.40.0220.01116.51
7.2.30.0300.00816.69
7.2.20.0280.01316.53
7.2.10.0280.00716.59
7.2.00.0310.00416.54
7.1.330.0220.00615.25
7.1.320.0170.00814.92
7.1.310.0320.00715.00
7.1.300.0210.00614.95
7.1.290.0160.00815.01
7.1.280.0130.01214.93
7.1.270.0160.00714.94
7.1.260.0140.01214.98
7.1.250.0140.01015.05
7.1.240.0240.01014.89
7.1.230.0120.01115.01
7.1.220.0190.00714.96
7.1.210.0140.01014.91
7.1.200.0110.01115.13
7.1.190.0160.00714.99
7.1.180.0180.00614.92
7.1.170.0120.01314.94
7.1.160.0300.01015.23
7.1.150.0390.00615.24
7.1.140.0390.01015.31
7.1.130.0270.00915.15
7.1.120.0290.00915.27
7.1.110.0350.00915.01
7.1.100.0300.00815.05
7.1.90.0340.01015.18
7.1.80.0320.00815.21
7.1.70.0270.01114.87
7.1.60.0330.00818.55
7.1.50.0430.00718.51
7.1.40.0390.00918.49
7.1.30.0390.01118.47
7.1.20.0460.00818.50
7.1.10.0440.01114.92
7.1.00.0300.00814.87
7.0.330.0150.00714.67
7.0.320.0210.00515.02
7.0.310.0130.01115.06
7.0.300.0210.00515.16
7.0.290.0140.01115.11
7.0.280.0220.00815.00
7.0.270.0260.00115.07
7.0.260.0170.00915.04
7.0.250.0150.00815.19
7.0.240.0180.01015.17
7.0.230.0140.01015.11
7.0.220.0160.00915.27
7.0.210.0200.00615.18
7.0.200.0160.01115.16
7.0.190.0190.01015.16
7.0.180.0180.00715.13
7.0.170.0210.00815.21
7.0.160.0280.01015.09
7.0.150.0140.01015.17
7.0.140.0110.01415.17
7.0.130.0200.00715.09
7.0.120.0180.00815.11
7.0.110.0210.00515.19
7.0.100.0190.01115.17
7.0.90.0130.01315.08
7.0.80.0160.01015.11
7.0.70.0240.00315.16
7.0.60.0290.01015.08
7.0.50.0240.01415.07
7.0.40.0160.01015.04
7.0.30.0160.01015.04
7.0.20.0150.00815.16
7.0.10.0190.00715.15
7.0.00.0170.00815.06
5.6.400.0140.01315.38
5.6.390.0170.00915.26
5.6.380.0140.00915.37
5.6.370.0150.01215.81
5.6.360.0190.00615.98
5.6.350.0150.01015.85
5.6.340.0170.01215.80
5.6.330.0150.01315.97
5.6.320.0210.00515.81
5.6.310.0160.01015.80
5.6.300.0180.01015.79
5.6.290.0150.01215.97
5.6.280.0200.00915.86
5.6.270.0170.00815.77
5.6.260.0130.01515.73
5.6.250.0100.01815.94
5.6.240.0150.01215.97
5.6.230.0190.00815.83
5.6.220.0180.01015.90
5.6.210.0130.01415.71
5.6.200.0160.01115.85
5.6.190.0180.00915.77
5.6.180.0160.01215.85
5.6.170.0190.01015.89
5.6.160.0160.01015.80
5.6.150.0190.00815.82
5.6.140.0150.01115.87
5.6.130.0160.00915.78
5.6.120.0160.01115.83
5.6.110.0110.01515.75
5.6.100.0140.01315.83
5.6.90.0170.01215.86
5.6.80.0120.01615.74
5.6.70.0150.01115.76
5.6.60.0180.00915.93
5.6.50.0140.01115.75
5.6.40.0170.00715.77
5.6.30.0170.00715.76
5.6.20.0160.01015.72
5.6.10.0160.01015.76
5.6.00.0150.01215.73

preferences:
56.37 ms | 403 KiB | 5 Q