3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Par { function __construct(string $foo) {} } class Child extends Par { function __construct(int $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.3.60.0110.01116.38
8.3.50.0090.00618.06
8.3.40.0150.00018.54
8.3.30.0090.01218.41
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.180.0030.01225.92
8.2.170.0030.01718.69
8.2.160.0030.01022.96
8.2.150.0080.00025.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.66
8.2.110.0060.00619.38
8.2.100.0070.00417.59
8.2.90.0000.00817.78
8.2.80.0000.00917.97
8.2.70.0000.00817.38
8.2.60.0000.00817.80
8.2.50.0030.00618.07
8.2.40.0080.00418.16
8.2.30.0030.00517.88
8.2.20.0040.00417.80
8.2.10.0070.00019.02
8.2.00.0000.00819.04
8.1.280.0040.01125.92
8.1.270.0060.00323.99
8.1.260.0090.00026.35
8.1.250.0000.00728.09
8.1.240.0070.00420.56
8.1.230.0110.00020.89
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0050.00316.98
8.1.180.0050.00318.10
8.1.170.0040.00418.57
8.1.160.0040.00418.76
8.1.150.0060.00318.67
8.1.140.0040.00418.69
8.1.130.0030.00320.09
8.1.120.0070.00017.30
8.1.110.0040.00417.36
8.1.100.0050.00317.37
8.1.90.0000.00817.34
8.1.80.0020.00517.25
8.1.70.0040.00417.20
8.1.60.0030.00517.46
8.1.50.0000.00817.40
8.1.40.0040.00417.36
8.1.30.0000.00717.56
8.1.20.0040.00417.54
8.1.10.0040.00417.38
8.1.00.0070.00017.29
8.0.300.0070.00019.90
8.0.290.0000.00816.63
8.0.280.0070.00018.37
8.0.270.0000.00717.79
8.0.260.0030.00618.31
8.0.250.0030.00316.76
8.0.240.0060.00016.78
8.0.230.0030.00716.80
8.0.220.0040.00416.80
8.0.210.0030.00316.77
8.0.200.0030.00316.77
8.0.190.0060.00316.88
8.0.180.0040.00416.74
8.0.170.0030.00616.74
8.0.160.0040.00416.65
8.0.150.0030.00516.61
8.0.140.0050.00316.61
8.0.130.0000.00513.24
8.0.120.0070.00016.75
8.0.110.0070.00016.70
8.0.100.0040.00416.83
8.0.90.0040.00416.70
8.0.80.0080.00716.72
8.0.70.0030.00516.74
8.0.60.0000.00716.60
8.0.50.0070.00016.64
8.0.30.0100.01017.07
8.0.20.0090.00917.14
8.0.10.0040.00416.80
8.0.00.0150.00916.71
7.4.330.0050.00015.55
7.4.320.0030.00316.28
7.4.300.0080.00016.46
7.4.290.0000.00816.27
7.4.280.0040.00416.38
7.4.270.0070.00016.29
7.4.260.0030.00313.14
7.4.250.0030.00316.35
7.4.240.0040.00316.43
7.4.230.0030.00316.39
7.4.220.0020.00516.56
7.4.210.0110.00516.40
7.4.200.0000.00716.45
7.4.130.0060.01116.46
7.4.120.0140.00716.30
7.4.110.0110.00616.20
7.4.100.0120.00616.17
7.4.90.0130.00316.53
7.4.80.0150.00619.39
7.4.70.0100.00916.44
7.4.60.0110.00816.22
7.4.50.0110.00916.41
7.4.40.0140.00416.24
7.4.30.0070.00916.42
7.4.20.0090.01216.28
7.4.10.0070.00916.23
7.4.00.0080.00916.52
7.3.330.0040.00216.15
7.3.320.0050.00013.21
7.3.310.0070.00016.07
7.3.300.0030.00316.07
7.3.290.0070.00816.13
7.3.260.0140.00316.25
7.3.240.0090.01216.26
7.3.230.0130.00616.43
7.3.210.0100.00716.30
7.3.200.0060.01016.25
7.3.190.0070.01216.11
7.3.180.0080.00916.26
7.3.170.0110.00916.40
7.3.160.0110.00916.31
7.3.150.0110.00716.20
7.3.140.0130.00916.19
7.3.130.0050.01216.23
7.3.120.0120.00616.32
7.3.110.0100.00816.17
7.3.100.0160.00916.14
7.3.90.0150.00516.25
7.3.80.0120.00516.15
7.3.70.0080.00916.26
7.3.60.0110.00716.24
7.3.50.0120.00616.12
7.3.40.0110.01116.13
7.3.30.0080.01116.27
7.3.20.0060.01316.32
7.3.10.0130.00616.18
7.3.00.0070.01416.29
7.2.330.0160.00316.49
7.2.310.0070.00916.47
7.2.300.0110.01116.30
7.2.290.0080.01016.41
7.2.280.0090.01216.33
7.2.270.0100.01116.27
7.2.260.0100.00916.35
7.2.250.0110.00716.30
7.2.240.0110.00616.49
7.2.230.0080.01416.54
7.2.220.0110.00616.52
7.2.210.0060.01216.37
7.2.200.0110.00716.29
7.2.190.0100.00816.38
7.2.180.0080.01216.35
7.2.170.0110.00916.28
7.2.160.0130.00316.23
7.2.150.0080.01416.32
7.2.140.0070.01216.42
7.2.130.0080.01016.51
7.2.120.0100.01116.45
7.2.110.0080.01216.51
7.2.100.0110.01016.36
7.2.90.0120.01116.49
7.2.80.0100.01016.34
7.2.70.0180.01016.45
7.2.60.0120.00716.28
7.2.50.0080.01316.47
7.2.40.0130.00616.41
7.2.30.0100.01016.55
7.2.20.0130.00716.32
7.2.10.0100.01116.35
7.2.00.0090.00916.41

preferences:
30.07 ms | 400 KiB | 5 Q