3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public function __construct(array $values) {} } class Bar extends Foo { public function __construct($values, string $something) {} } $f = new Bar([], 'foo');

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.5.90.0040.00516.84
8.5.80.0050.00416.72
8.5.70.0090.00616.76
8.5.60.0100.00816.45
8.5.50.0120.00716.36
8.5.30.0070.01119.45
8.5.20.0110.00819.49
8.5.10.0140.00416.66
8.5.00.0090.01219.71
8.4.240.0160.00519.49
8.4.230.0070.00222.15
8.4.220.0060.00519.43
8.4.210.0150.00719.41
8.4.180.0150.00722.05
8.4.170.0070.00420.44
8.4.160.0040.00722.35
8.4.150.0150.00416.62
8.4.140.0100.01017.41
8.4.130.0130.00717.57
8.4.120.0120.00824.12
8.4.110.0110.01022.45
8.4.100.0130.00818.85
8.4.90.0090.01018.83
8.4.80.0050.00318.51
8.4.70.0090.01017.96
8.4.60.0090.00718.60
8.4.50.0070.00618.32
8.4.40.0100.00719.25
8.4.30.0070.00320.42
8.4.20.0160.00318.84
8.4.10.0060.00317.60
8.3.330.0120.00618.30
8.3.320.0100.00918.33
8.3.310.0130.00618.38
8.3.300.0120.00920.80
8.3.290.0120.00820.80
8.3.280.0100.01118.11
8.3.270.0150.00616.38
8.3.260.0100.00816.59
8.3.250.0110.00718.93
8.3.240.0100.00816.89
8.3.230.0110.00816.59
8.3.220.0090.00918.83
8.3.210.0070.00818.48
8.3.200.0130.00616.33
8.3.190.0050.00517.21
8.3.180.0140.00517.16
8.3.170.0090.00920.45
8.3.160.0070.01117.23
8.3.150.0070.01117.20
8.3.140.0120.00616.62
8.3.130.0060.00318.66
8.3.120.0070.01418.77
8.3.110.0000.00816.55
8.3.100.0040.01516.30
8.3.90.0040.00426.77
8.3.80.0050.00519.36
8.3.70.0060.00916.58
8.3.60.0180.00316.38
8.3.50.0090.01216.21
8.3.40.0070.00718.77
8.3.30.0150.00418.63
8.3.20.0000.00724.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.320.0110.00818.09
8.2.310.0110.00818.04
8.2.300.0150.00521.95
8.2.290.0090.00820.54
8.2.280.0040.00418.23
8.2.270.0090.00917.28
8.2.260.0190.00016.31
8.2.250.0040.00716.60
8.2.240.0060.00317.00
8.2.230.0090.00620.94
8.2.220.0060.00337.54
8.2.210.0120.00826.77
8.2.200.0030.00618.88
8.2.190.0070.00716.58
8.2.180.0090.00625.92
8.2.170.0040.01118.82
8.2.160.0070.01322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0030.00826.16
8.2.120.0070.00019.54
8.2.110.0060.00320.91
8.2.100.0060.00617.78
8.2.90.0000.00819.18
8.2.80.0000.00817.97
8.2.70.0060.00317.38
8.2.60.0040.00417.68
8.2.50.0090.00018.07
8.2.40.0040.00418.00
8.2.30.0040.00418.00
8.2.20.0030.00517.87
8.2.10.0040.00419.18
8.2.00.0070.00419.18
8.1.340.0150.00617.71
8.1.330.0040.00422.04
8.1.320.0110.00617.95
8.1.310.0070.00016.55
8.1.300.0000.01318.05
8.1.290.0060.00330.84
8.1.280.0090.00625.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00421.24
8.1.230.0090.00317.89
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0100.00318.21
8.1.160.0000.00818.88
8.1.150.0040.00418.85
8.1.140.0000.00718.89
8.1.130.0030.00320.06
8.1.120.0000.00817.41
8.1.110.0040.00417.44
8.1.100.0070.00017.31
8.1.90.0000.00717.28
8.1.80.0070.00017.38
8.1.70.0030.00717.42
8.1.60.0050.00317.57
8.1.50.0050.00317.39
8.1.40.0040.00417.49
8.1.30.0040.00417.58
8.1.20.0000.00817.63
8.1.10.0040.00417.42
8.1.00.0060.00617.33
8.0.300.0020.00518.77
8.0.290.0030.00616.75
8.0.280.0000.00718.33
8.0.270.0070.00018.00
8.0.260.0060.00018.32
8.0.250.0040.00416.80
8.0.240.0030.00316.78
8.0.230.0030.00316.73
8.0.220.0080.00016.85
8.0.210.0030.00316.80
8.0.200.0050.00216.87
8.0.190.0070.00016.91
8.0.180.0070.00016.74
8.0.170.0040.00416.85
8.0.160.0000.00716.72
8.0.150.0030.00516.64
8.0.140.0070.00016.80
8.0.130.0030.00313.23
8.0.120.0070.00016.79
8.0.110.0050.00316.84
8.0.100.0050.00216.71
8.0.90.0030.00316.64
8.0.80.0140.00316.80
8.0.70.0000.00816.73
8.0.60.0040.00416.66
8.0.50.0070.00016.64
8.0.30.0160.01116.80
8.0.20.0260.00416.77
8.0.10.0220.00416.88
8.0.00.0200.00816.94
7.4.330.0000.00415.55
7.4.320.0030.00316.35
7.4.300.0030.00316.35
7.4.290.0030.00316.59
7.4.280.0030.00516.34
7.4.270.0040.00416.55
7.4.260.0060.00013.22
7.4.250.0070.00016.45
7.4.240.0040.00416.50
7.4.230.0000.00716.66
7.4.220.0040.00416.63
7.4.210.0100.01016.43
7.4.200.0000.00816.62
7.4.160.0290.00616.51
7.4.150.0170.01016.42
7.4.140.0190.00716.59
7.4.130.0180.01216.44
7.4.120.0210.00616.37
7.4.110.0220.00816.39
7.4.100.0110.01516.54
7.4.90.0230.00816.46
7.4.80.0070.02116.51
7.4.70.0200.00816.39
7.4.60.0280.00316.35
7.4.50.0330.01116.19
7.4.40.0170.01316.44
7.4.30.0190.01316.31
7.4.20.0220.00216.33
7.4.10.0220.00416.40
7.4.00.0100.01016.45
7.3.330.0030.00316.21
7.3.320.0060.00013.06
7.3.310.0000.00816.25
7.3.300.0030.00316.08
7.3.290.0030.01016.22
7.3.280.0160.01316.27
7.3.270.0200.00916.29
7.3.260.0190.00616.23
7.3.250.0270.01216.16
7.3.240.0220.00716.27
7.3.230.0190.00816.28
7.3.220.0250.00616.13
7.3.210.0250.00716.18
7.3.200.0200.00716.18
7.3.190.0210.00916.14
7.3.180.0240.00716.19
7.3.170.0150.01116.06
7.3.160.0160.01616.05
7.3.150.0260.01016.18
7.3.140.0220.00916.17
7.3.130.0210.00816.15
7.3.120.0160.01316.24
7.3.110.0220.00816.11
7.3.100.0150.01415.98
7.3.90.0160.00816.46
7.3.80.0290.00316.17
7.3.70.0190.00916.28
7.3.60.0170.00716.32
7.3.50.0230.00616.25
7.3.40.0150.01216.29
7.3.30.0150.00916.24
7.3.20.0200.01416.21
7.3.10.0210.00616.28
7.3.00.0190.01116.25

preferences:
112.58 ms | 1408 KiB | 5 Q