3v4l.org

run code in 300+ PHP versions simultaneously
<?php class U {}; class V {}; class W {}; class A { public function __construct(U $a, V $b) { // echo $a . PHP_EOL; } public function functionName($a) { } } class B extends A { public function __construct(W $c) { parent::__construct(new U(), new V()); } public function functionName() { } } $x = new B(new W()); $x->functionName();

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.0100.01016.63
8.3.50.0150.00316.36
8.3.40.0040.01418.54
8.3.30.0070.00718.75
8.3.20.0040.00420.21
8.3.10.0000.00721.84
8.3.00.0080.00023.62
8.2.180.0100.00316.32
8.2.170.0150.00022.96
8.2.160.0100.00320.37
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.88
8.2.120.0040.00426.35
8.2.110.0030.00619.27
8.2.100.0060.00617.78
8.2.90.0040.00417.72
8.2.80.0000.00818.03
8.2.70.0030.00717.38
8.2.60.0100.00017.80
8.2.50.0060.00318.09
8.2.40.0000.00820.63
8.2.30.0000.00819.21
8.2.20.0070.00017.62
8.2.10.0060.00317.97
8.2.00.0000.00717.90
8.1.280.0060.00925.92
8.1.270.0080.00022.07
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0080.00321.84
8.1.230.0110.00020.88
8.1.220.0090.00017.74
8.1.210.0080.00019.00
8.1.200.0000.00917.36
8.1.190.0060.00317.10
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0040.00420.68
8.1.150.0060.00318.77
8.1.140.0050.00319.40
8.1.130.0070.00017.48
8.1.120.0030.00317.34
8.1.110.0040.00417.30
8.1.100.0000.00717.24
8.1.90.0000.00717.42
8.1.80.0030.00517.32
8.1.70.0070.00017.27
8.1.60.0000.00717.51
8.1.50.0030.00517.41
8.1.40.0040.00417.37
8.1.30.0050.00317.42
8.1.20.0050.00317.45
8.1.10.0070.00017.39
8.1.00.0000.00717.34
8.0.300.0050.00219.91
8.0.290.0000.00916.58
8.0.280.0000.00818.23
8.0.270.0040.00417.13
8.0.260.0000.00817.05
8.0.250.0040.00416.95
8.0.240.0040.00416.93
8.0.230.0000.00716.82
8.0.220.0030.00316.70
8.0.210.0030.00316.70
8.0.200.0000.00716.88
8.0.190.0060.00616.79
8.0.180.0030.00616.73
8.0.170.0070.00016.75
8.0.160.0080.00016.82
8.0.150.0000.00716.82
8.0.140.0000.00716.83
8.0.130.0030.00313.25
8.0.120.0000.00716.77
8.0.110.0040.00416.78
8.0.100.0040.00416.64
8.0.90.0040.00416.72
8.0.80.0140.00016.78
8.0.70.0070.00016.80
8.0.60.0040.00416.82
8.0.50.0040.00416.76
8.0.30.0090.00917.04
8.0.20.0090.01017.40
8.0.10.0040.00316.94
8.0.00.0100.01116.79
7.4.330.0000.00516.67
7.4.320.0000.00716.54
7.4.300.0000.00716.56
7.4.290.0070.00016.64
7.4.280.0000.00816.50
7.4.270.0030.00316.63
7.4.260.0000.00716.48
7.4.250.0090.00016.55
7.4.240.0040.00316.51
7.4.230.0070.00016.34
7.4.220.0060.01216.59
7.4.210.0080.00616.44
7.4.200.0030.00316.71
7.4.160.0000.01716.46
7.4.150.0090.00917.40
7.4.140.0110.01217.86
7.4.130.0090.01116.44
7.4.120.0090.00916.49
7.4.110.0070.01116.45
7.4.100.0150.00616.53
7.4.90.0100.00716.43
7.4.80.0070.01419.39
7.4.70.0120.00916.43
7.4.60.0110.00616.43
7.4.50.0040.01116.48
7.4.40.0040.01816.64
7.4.30.0100.01016.41
7.4.00.0030.01414.87
7.3.330.0020.00213.20
7.3.320.0000.00513.13
7.3.310.0030.00316.39
7.3.300.0030.00316.21
7.3.290.0090.00816.27
7.3.280.0090.00616.32
7.3.270.0100.00617.40
7.3.260.0100.01316.30
7.3.250.0110.00816.25
7.3.240.0070.00916.36
7.3.230.0090.00916.39
7.3.210.0160.00016.16
7.3.200.0150.00919.39
7.3.190.0040.01116.33
7.3.180.0060.01216.29
7.3.170.0120.00816.34
7.3.160.0120.00316.24
7.3.120.0100.01014.61
7.3.110.0080.00814.73
7.3.100.0000.01614.53
7.3.90.0000.01214.76
7.3.80.0000.01514.52
7.3.70.0060.00614.43
7.3.60.0070.00714.84
7.3.50.0060.00914.42
7.3.40.0040.01114.40
7.3.30.0060.01014.87
7.3.20.0000.01416.56
7.3.10.0000.01216.71
7.3.00.0030.01016.40
7.2.330.0120.00616.32
7.2.320.0000.01716.79
7.2.310.0100.00716.42
7.2.300.0070.01016.69
7.2.290.0090.01216.38
7.2.250.0130.00614.71
7.2.240.0070.00715.02
7.2.230.0060.00915.22
7.2.220.0040.01514.82
7.2.210.0060.00914.77
7.2.200.0060.00914.67
7.2.190.0030.01415.08
7.2.180.0040.00714.66
7.2.170.0130.00314.86
7.2.60.0100.00316.87
7.2.00.0000.01219.49
7.1.330.0030.01015.50
7.1.320.0040.01415.51
7.1.310.0070.00715.52
7.1.300.0040.00415.51
7.1.290.0040.00715.36
7.1.280.0000.01215.74
7.1.270.0030.00715.63
7.1.260.0070.00715.76
7.1.200.0070.00715.68
7.1.100.0030.00917.97
7.1.70.0000.00816.75
7.1.60.0090.00919.40
7.1.50.0090.01216.98
7.1.00.0070.07322.46
7.0.200.0120.00914.55
7.0.60.0230.07319.93
7.0.50.0000.04317.96
7.0.40.0170.06020.25
7.0.30.0330.06320.09
7.0.20.0270.04320.06
7.0.10.0030.06020.07
7.0.00.0170.08320.23
5.6.280.0030.04721.11
5.6.210.0230.04020.51
5.6.200.0030.08718.29
5.6.190.0070.04320.68
5.6.180.0370.04720.50
5.6.170.0230.07320.48
5.6.160.0000.04320.52
5.6.150.0070.04318.12
5.6.140.0100.03318.28
5.6.130.0100.08018.15
5.6.120.0070.04321.13
5.6.110.0200.06721.06
5.6.100.0200.06721.02
5.6.90.0130.07721.14
5.6.80.0100.07020.39
5.5.350.0200.08320.45
5.5.340.0070.08318.03
5.5.330.0070.08320.30
5.5.320.0570.06720.27
5.5.310.0330.07020.27
5.5.300.0030.04317.96
5.5.290.0100.06318.01
5.5.280.0030.08020.88
5.5.270.0070.08720.77
5.5.260.0100.05320.96
5.5.250.0130.08020.59
5.5.240.0170.02720.23

preferences:
54.51 ms | 400 KiB | 5 Q