3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function __construct(int $a, float $b){} } class B extends A{ function __construct(string $a, bool $b){} }

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.30.0100.00717.25
8.5.20.0120.00420.25
8.5.10.0080.00920.17
8.5.00.0110.01019.75
8.4.180.0140.00819.58
8.4.170.0170.00823.89
8.4.160.0120.00923.89
8.4.150.0070.00516.75
8.4.140.0140.00717.36
8.4.130.0140.00717.52
8.4.120.0130.00720.48
8.4.110.0050.00418.91
8.4.100.0190.00517.53
8.4.90.0160.00517.46
8.4.80.0060.00317.55
8.4.70.0050.00418.22
8.4.60.0110.00918.69
8.4.50.0140.00618.34
8.4.40.0030.01617.24
8.4.30.0080.00017.30
8.4.20.0050.00517.53
8.4.10.0060.01017.51
8.3.300.0130.00620.76
8.3.290.0150.00818.17
8.3.280.0120.00918.22
8.3.270.0110.00916.48
8.3.260.0140.00516.43
8.3.250.0120.00718.67
8.3.240.0080.00116.33
8.3.230.0100.01116.39
8.3.220.0080.00816.74
8.3.210.0090.00916.38
8.3.200.0070.00216.42
8.3.190.0100.00917.03
8.3.180.0060.00517.15
8.3.170.0000.01518.69
8.3.160.0100.00717.24
8.3.150.0120.00616.35
8.3.140.0000.00817.23
8.3.130.0040.00418.21
8.3.120.0060.00320.48
8.3.110.0040.00420.94
8.3.100.0000.00824.06
8.3.90.0050.00326.77
8.3.80.0060.00317.97
8.3.70.0160.00318.18
8.3.60.0040.01118.43
8.3.50.0130.00721.94
8.3.40.0090.00618.38
8.3.30.0110.00418.46
8.3.20.0070.00020.13
8.3.10.0040.00420.11
8.3.00.0040.00420.33
8.2.300.0120.00717.86
8.2.290.0090.00920.24
8.2.280.0120.00819.85
8.2.270.0130.00616.47
8.2.260.0140.00016.43
8.2.250.0040.00416.49
8.2.240.0000.00818.96
8.2.230.0060.00322.58
8.2.220.0100.00037.54
8.2.210.0060.00626.77
8.2.200.0040.00418.29
8.2.190.0070.00716.58
8.2.180.0110.00416.32
8.2.170.0110.00422.96
8.2.160.0030.01020.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00420.58
8.2.110.0030.00620.38
8.2.100.0060.00617.80
8.2.90.0030.00618.98
8.2.80.0080.00017.97
8.2.70.0060.00317.38
8.2.60.0000.00717.80
8.2.50.0060.00618.09
8.2.40.0000.00820.63
8.2.30.0000.00819.27
8.2.20.0050.00317.47
8.2.10.0070.00017.98
8.2.00.0040.00417.79
8.1.340.0150.00617.48
8.1.330.0100.01016.41
8.1.320.0070.00216.18
8.1.310.0170.00315.95
8.1.300.0030.00620.22
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0060.00323.66
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0000.01022.42
8.1.230.0120.00017.66
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00817.22
8.1.190.0040.00416.98
8.1.180.0040.00418.10
8.1.170.0080.00018.62
8.1.160.0050.00220.77
8.1.150.0030.00318.67
8.1.140.0040.00419.47
8.1.130.0000.00717.61
8.1.120.0000.00717.32
8.1.110.0000.00717.29
8.1.100.0000.00717.34
8.1.90.0070.00017.32
8.1.80.0040.00417.29
8.1.70.0000.00717.32
8.1.60.0040.00417.51
8.1.50.0050.00317.39
8.1.40.0050.00217.27
8.1.30.0000.00817.50
8.1.20.0080.00017.52
8.1.10.0000.00717.39
8.1.00.0040.00417.14
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.37
8.0.270.0030.00317.15
8.0.260.0060.00017.12
8.0.250.0070.00016.86
8.0.240.0000.00716.79
8.0.230.0000.00716.75
8.0.220.0000.00716.73
8.0.210.0000.00916.65
8.0.200.0040.00416.85
8.0.190.0000.00716.70
8.0.180.0000.00916.79
8.0.170.0050.00216.71
8.0.160.0070.00016.72
8.0.150.0040.00416.76
8.0.140.0000.00716.56
8.0.130.0000.00613.16
8.0.120.0030.00616.61
8.0.110.0030.00516.86
8.0.100.0000.00816.66
8.0.90.0040.00416.59
8.0.80.0070.00716.67
8.0.70.0030.00416.71
8.0.60.0000.00816.64
8.0.50.0000.00716.62
8.0.30.0110.00617.14
8.0.20.0100.01017.40
8.0.10.0040.00416.94
8.0.00.0090.00816.64
7.4.330.0030.00315.08
7.4.320.0030.00316.41
7.4.300.0070.00016.46
7.4.290.0040.00416.44
7.4.280.0070.00016.26
7.4.270.0070.00016.45
7.4.260.0070.00016.33
7.4.250.0040.00416.43
7.4.240.0060.00316.39
7.4.230.0070.00016.57
7.4.220.0130.00716.45
7.4.210.0100.00616.42
7.4.200.0090.00016.39
7.4.160.0070.01016.29
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0130.00916.28
7.4.120.0080.01016.46
7.4.110.0110.00716.54
7.4.100.0160.01016.50
7.4.90.0130.00416.39
7.4.80.0090.01219.39
7.4.70.0130.00716.13
7.4.60.0100.00716.38
7.4.50.0040.00916.16
7.4.40.0070.00716.30
7.4.30.0100.00616.32
7.4.00.0090.00614.94
7.3.330.0080.00012.99
7.3.320.0050.00013.16
7.3.310.0030.00316.06
7.3.300.0000.00716.04
7.3.290.0030.00316.03
7.3.280.0070.00816.14
7.3.270.0160.00717.40
7.3.260.0100.01316.27
7.3.250.0090.00716.28
7.3.240.0150.00616.33
7.3.230.0130.00616.39
7.3.210.0120.00816.47
7.3.200.0110.01119.39
7.3.190.0080.00816.24
7.3.180.0000.01516.25
7.3.170.0120.00616.28
7.3.160.0070.01316.24
7.2.330.0060.01216.29
7.2.320.0120.01016.60
7.2.310.0070.01016.40
7.2.300.0160.00716.19
7.2.290.0060.01016.30
7.2.110.0180.00316.40
7.2.100.0110.00316.18
7.2.90.0170.00716.32
7.2.80.0310.00316.29
7.2.70.0130.00316.75
7.2.60.0160.00316.74
7.2.50.0070.01116.74
7.2.40.0070.01016.87
7.2.30.0100.00716.90
7.2.20.0350.00416.50
7.2.10.0110.00316.65
7.2.00.0080.00817.88
7.1.230.0080.00815.55
7.1.220.0100.00715.55
7.1.210.0110.00515.41
7.1.200.0190.00315.50
7.1.190.0160.00315.64
7.1.180.0180.00315.59
7.1.170.0100.00315.35
7.1.160.0100.00515.50
7.1.150.0100.00315.29
7.1.140.0060.00915.50
7.1.130.0050.01015.72
7.1.120.0090.00915.29
7.1.110.0300.00315.66
7.1.100.0080.00416.87
7.1.90.0140.00515.71
7.1.80.0090.00315.71
7.1.70.0050.00716.09
7.1.60.0200.00717.46
7.1.50.0090.00615.73
7.1.40.0130.00815.58
7.1.30.0070.01115.89
7.1.20.0940.00715.69
7.1.10.0130.00015.68
7.1.00.0030.05118.99
7.0.310.0100.00314.98
7.0.300.0090.00615.04
7.0.290.0030.01015.25
7.0.280.0270.00815.20
7.0.270.0060.00615.26
7.0.260.0310.00315.30
7.0.250.0110.00415.25
7.0.240.0180.00315.25
7.0.230.0080.00415.30
7.0.220.0080.00615.39
7.0.210.0100.00715.35
7.0.200.0220.00914.98
7.0.190.0110.00515.41
7.0.180.0120.00315.29
7.0.170.0130.00315.28
7.0.160.0090.00515.24
7.0.150.0080.00815.29
7.0.140.0080.00415.20
7.0.130.0060.00615.20
7.0.120.0780.00015.38
7.0.110.0350.00615.34
7.0.100.0040.00814.95
7.0.90.0130.00315.32
7.0.80.0100.00715.05
7.0.70.0000.01415.35
7.0.60.0060.04818.58
7.0.50.0060.04116.65
7.0.40.0030.03516.61
7.0.30.0180.03816.67
7.0.20.0140.02516.57
7.0.10.0130.03716.72
7.0.00.0060.02516.70
5.6.380.0160.00014.05
5.6.370.0180.00313.75
5.6.360.0080.00614.37
5.6.350.0080.00313.78
5.6.340.0110.00613.96
5.6.330.0120.00014.24
5.6.320.0090.00614.25
5.6.310.0130.00714.27
5.6.300.0080.00414.26
5.6.290.0090.00314.21
5.6.280.0060.00613.94
5.6.270.0130.00414.23
5.6.260.0060.00914.30
5.6.250.0080.00413.91
5.6.240.0070.00714.12
5.6.230.0040.01214.14
5.6.220.0140.00414.19
5.6.210.0110.03517.30
5.6.200.0090.03016.16
5.6.190.0060.02317.30
5.6.180.0160.02217.34
5.6.170.0180.03717.28
5.6.160.0140.04017.15
5.6.150.0030.02916.19
5.6.140.0050.04816.06
5.6.130.0110.02216.11
5.6.120.0090.04517.57
5.6.110.0030.02817.46
5.6.100.0110.03917.58
5.6.90.0080.03017.56
5.6.80.0060.02417.18
5.6.70.0100.00513.94
5.6.60.0100.00513.95
5.6.50.0070.00713.98
5.6.40.0070.00313.79
5.6.30.0050.00813.94
5.6.20.0120.00313.87
5.6.10.0110.00514.25
5.6.00.0060.00613.98
5.5.380.0040.00710.88
5.5.370.0030.00611.04
5.5.360.0130.00010.75
5.5.350.0090.03915.80
5.5.340.0020.03714.47
5.5.330.0050.04515.41
5.5.320.0170.02115.55
5.5.310.0180.03515.74
5.5.300.0020.02514.49
5.5.290.0070.02014.32
5.5.280.0120.04115.86
5.5.270.0070.04215.75
5.5.260.0080.04115.93
5.5.250.0060.02615.79
5.5.240.0120.04215.55
5.5.230.0000.00810.54
5.5.220.0040.00810.84
5.5.210.0090.00310.75
5.5.200.0060.00310.67
5.5.190.0040.00410.79
5.5.180.0080.00010.98
5.5.170.0030.01014.13
5.5.160.0030.00610.81
5.5.150.0060.00610.46
5.5.140.0120.00010.98
5.5.130.0030.00710.75
5.5.120.0040.00410.80
5.5.110.0050.00510.81
5.5.100.0000.00810.78
5.5.90.0040.00410.83
5.5.80.0030.00810.80
5.5.70.0050.00510.99
5.5.60.0040.00810.89
5.5.50.0080.00010.84
5.5.40.0030.00610.82
5.5.30.0100.00010.91
5.5.20.0000.01210.71
5.5.10.0000.01110.63
5.5.00.0030.00610.76

preferences:
110.3 ms | 1901 KiB | 5 Q