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, 4, 5);

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.70.0000.01418.18
8.3.60.0110.00418.27
8.3.50.0070.00716.64
8.3.40.0060.00918.90
8.3.30.0070.00718.55
8.3.20.0040.00418.98
8.3.10.0040.00423.52
8.3.00.0070.00023.56
8.2.190.0060.01016.58
8.2.180.0070.01118.29
8.2.170.0060.00922.96
8.2.160.0100.00318.99
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00420.45
8.2.120.0040.00426.35
8.2.110.0090.00020.44
8.2.100.0070.00317.91
8.2.90.0030.00517.63
8.2.80.0030.00717.97
8.2.70.0030.00517.80
8.2.60.0030.00617.93
8.2.50.0040.00418.10
8.2.40.0000.00719.34
8.2.30.0040.00419.36
8.2.20.0040.00417.94
8.2.10.0040.00419.32
8.2.00.0070.00019.48
8.1.280.0030.01225.92
8.1.270.0080.00022.07
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.73
8.1.230.0060.00623.98
8.1.220.0080.00418.77
8.1.210.0000.00718.97
8.1.200.0040.00417.35
8.1.190.0000.00917.23
8.1.180.0050.00318.10
8.1.170.0050.00218.70
8.1.160.0080.00018.83
8.1.150.0070.00018.88
8.1.140.0000.00819.52
8.1.130.0030.00318.94
8.1.120.0000.00717.42
8.1.110.0040.00417.49
8.1.100.0030.00317.44
8.1.90.0040.00417.41
8.1.80.0070.00317.48
8.1.70.0070.00017.49
8.1.60.0050.00517.47
8.1.50.0030.00617.42
8.1.40.0060.00317.57
8.1.30.0000.01017.55
8.1.20.0040.00417.61
8.1.10.0070.00017.59
8.1.00.0040.00417.38
8.0.300.0000.00819.88
8.0.290.0030.00616.75
8.0.280.0030.00318.46
8.0.270.0090.00017.27
8.0.260.0000.00617.13
8.0.250.0030.00316.96
8.0.240.0030.00316.93
8.0.230.0030.00617.00
8.0.220.0070.00016.85
8.0.210.0000.00716.77
8.0.200.0000.00716.97
8.0.190.0030.00316.95
8.0.180.0030.00616.91
8.0.170.0040.00416.84
8.0.160.0000.00816.93
8.0.150.0000.00716.82
8.0.140.0070.00016.76
8.0.130.0030.00313.31
8.0.120.0030.00516.81
8.0.110.0040.00416.92
8.0.100.0040.00416.92
8.0.90.0000.00816.69
8.0.80.0050.01016.87
8.0.70.0070.00016.86
8.0.60.0070.00016.77
8.0.50.0050.00216.89
8.0.30.0100.01016.98
8.0.20.0090.00917.40
8.0.10.0040.00416.84
8.0.00.0050.01216.91
7.4.330.0020.00215.55
7.4.320.0000.00716.43
7.4.300.0060.00016.65
7.4.290.0050.00316.61
7.4.280.0000.00716.41
7.4.270.0030.00316.61
7.4.260.0000.00716.54
7.4.250.0030.00516.55
7.4.240.0040.00416.59
7.4.230.0030.00316.50
7.4.220.0080.00016.44
7.4.210.0090.00716.52
7.4.200.0070.00016.60
7.4.160.0090.00816.54
7.4.140.0120.00817.86
7.4.130.0060.01216.65
7.4.120.0140.00616.53
7.4.110.0070.01016.65
7.4.100.0060.01916.52
7.4.90.0170.00716.36
7.4.80.0030.01319.39
7.4.70.0060.01016.58
7.4.60.0120.00616.49
7.4.50.0030.01316.24
7.4.40.0090.01216.58
7.4.00.0030.01515.01
7.3.330.0000.00513.38
7.3.320.0030.00313.23
7.3.310.0000.00816.34
7.3.300.0000.00716.17
7.3.290.0030.00316.14
7.3.280.0090.00616.25
7.3.260.0100.00816.49
7.3.240.0100.00816.41
7.3.230.0110.00616.27
7.3.210.0080.00816.33
7.3.200.0100.00716.65
7.3.190.0160.00416.57
7.3.180.0060.01016.63
7.3.170.0030.01316.32
7.3.160.0090.01516.39
7.3.90.0030.01014.93
7.3.80.0030.01314.61
7.3.70.0080.00414.56
7.3.60.0100.00714.83
7.3.50.0080.00414.85
7.3.40.0100.00714.63
7.3.30.0080.00514.48
7.3.20.0040.01116.34
7.3.10.0100.00316.66
7.3.00.0100.00316.66
7.2.330.0110.00716.46
7.2.320.0090.01216.51
7.2.310.0120.01016.50
7.2.300.0120.00616.76
7.2.290.0060.01516.83
7.2.220.0040.01114.63
7.2.210.0060.01214.93
7.2.200.0000.01414.75
7.2.190.0090.00614.96
7.2.180.0090.00314.97
7.2.170.0030.01014.95
7.2.160.0000.01315.05
7.2.150.0060.00917.08
7.2.140.0000.01316.63
7.2.130.0000.01316.91
7.2.120.0060.00816.95
7.2.110.0100.00317.02
7.2.100.0070.00716.89
7.2.90.0070.00716.95
7.2.80.0160.00415.76
7.2.70.0170.00315.92
7.2.60.0120.00815.94
7.2.50.0070.01315.87
7.2.40.0170.00515.96
7.2.30.0120.00816.08
7.2.20.0130.00915.80
7.2.10.0170.00716.04
7.2.00.0120.00615.75
7.1.320.0060.00715.68
7.1.310.0060.00915.64
7.1.300.0060.00615.96
7.1.290.0060.01015.63
7.1.280.0060.00615.72
7.1.270.0040.00815.86
7.1.260.0000.01315.90
7.1.250.0070.00615.95
7.1.240.0070.00715.63
7.1.230.0080.00415.57
7.1.220.0070.00715.57
7.1.210.0100.00315.68
7.1.200.0070.00415.43
7.1.190.0100.00914.73
7.1.180.0150.00314.84
7.1.170.0100.00814.77
7.1.160.0130.00814.81
7.1.150.0100.00914.85
7.1.140.0140.00714.61
7.1.130.0100.00914.62
7.1.120.0190.01214.73
7.1.110.0100.00814.44
7.1.100.0090.00914.78
7.1.90.0200.00314.91
7.1.80.0150.00714.71
7.1.70.0150.00514.60
7.1.60.0220.01023.66
7.1.50.0280.00623.87
7.1.40.0200.00923.79
7.1.30.0250.00523.74
7.1.20.0260.00723.63
7.1.10.0150.00414.67
7.1.00.0110.00714.68
7.0.330.0000.01315.04
5.6.400.0060.01314.21
5.6.390.0070.00714.30
5.6.380.0070.00713.99

preferences:
70.62 ms | 401 KiB | 5 Q