3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public function __construct(): void { return 5; } } class B extends A { public function __construct() { var_dump(parent::__construct()); } } $b = new 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.2.10.0060.00317.62
7.4.70.0030.01516.37
7.4.60.0090.00916.29
7.4.50.0090.00916.35
7.4.40.0100.00716.33
7.4.30.0100.00916.36
7.4.20.0090.00916.36
7.4.10.0100.00916.30
7.4.00.0070.01016.39
7.3.190.0070.01016.28
7.3.180.0100.00916.22
7.3.170.0130.00616.21
7.3.160.0060.01116.25
7.3.150.0100.00716.18
7.3.140.0090.00916.27
7.3.130.0110.00716.31
7.3.120.0080.01016.27
7.3.110.0110.00616.30
7.3.100.0090.00716.22
7.3.90.0080.01116.28
7.3.80.0070.01116.24
7.3.70.0100.00716.17
7.3.60.0070.01016.19
7.3.50.0090.00916.23
7.3.40.0100.00616.25
7.3.30.0090.00816.21
7.3.20.0180.00716.20
7.3.10.0100.00816.16
7.3.00.0110.01116.26
7.2.310.0100.01016.36
7.2.300.0080.00916.41
7.2.290.0050.01316.40
7.2.280.0080.01016.31
7.2.270.0090.00916.34
7.2.260.0120.00716.40
7.2.250.0060.01116.42
7.2.240.0090.00816.42
7.2.230.0060.01416.49
7.2.220.0090.01016.27
7.2.210.0080.01016.37
7.2.200.0100.00716.33
7.2.190.0110.00716.39
7.2.180.0100.00716.28
7.2.170.0070.01116.28
7.2.160.0090.01016.28
7.2.150.0170.00816.39
7.2.140.0110.00816.39
7.2.130.0080.01116.35
7.2.120.0110.00916.44
7.2.110.0090.01016.33
7.2.100.0070.01116.31
7.2.90.0070.01116.32
7.2.80.0110.00916.32
7.2.70.0120.00716.36
7.2.60.0110.00916.31
7.2.50.0080.01216.42
7.2.40.0130.00716.41
7.2.30.0200.00816.43
7.2.20.0090.01116.44
7.2.10.0120.00716.37
7.2.00.0100.01016.45
7.1.330.0480.00315.30
7.1.320.0330.00315.33
7.1.310.0250.00615.39
7.1.300.0270.00515.51
7.1.290.0300.00815.31
7.1.280.0260.01115.13
7.1.270.0220.00815.51
7.1.260.0250.00615.26
7.1.250.0240.01415.33
7.1.240.0250.00215.23
7.1.230.0140.02015.29
7.1.220.0190.01815.13
7.1.210.0270.02815.32
7.1.200.0280.00815.36
7.1.190.0290.01215.24
7.1.180.0170.01315.23
7.1.170.0130.01314.92
7.1.160.0110.01115.15
7.1.150.0190.00815.36
7.1.140.0220.01315.38
7.1.130.0220.00315.08
7.1.120.0210.01215.33
7.1.110.0180.00315.18
7.1.100.0160.00614.92
7.1.90.0240.00015.22
7.1.80.0230.00514.96
7.1.70.0220.00415.45
7.1.60.0050.01515.09
7.1.50.0080.01615.34
7.1.40.0120.02215.55
7.1.30.0210.01215.41
7.1.20.0210.01515.52
7.1.10.0210.00715.31
7.1.00.0130.01315.37
7.0.330.0230.00815.04
7.0.320.0210.01214.98
7.0.310.0250.00415.09
7.0.300.0130.00914.93
7.0.290.0160.01014.88
7.0.280.0130.01315.04
7.0.270.0170.01214.93
7.0.260.0250.00615.08
7.0.250.0130.01014.86
7.0.240.0130.00715.00
7.0.230.0170.00915.01
7.0.220.0180.00315.03
7.0.210.0190.00315.02
7.0.200.0220.00014.91
7.0.190.0260.00414.91
7.0.180.0280.00515.00
7.0.170.0250.00715.26
7.0.160.0270.00514.99
7.0.150.0190.00515.01
7.0.140.0210.00615.07
7.0.130.0170.01715.18
7.0.120.0080.01615.10
7.0.110.0180.00715.17
7.0.100.0270.00914.93
7.0.90.0270.00314.97
7.0.80.0210.00414.93
7.0.70.0220.00515.25
7.0.60.0170.01215.05
7.0.50.0180.00714.93
7.0.40.0130.01315.16
7.0.30.0140.00714.97
7.0.20.0170.00714.96
7.0.10.0180.01015.03
7.0.00.0180.01414.73
5.6.400.0150.00916.05
5.6.390.0120.01615.86
5.6.380.0210.00515.78
5.6.370.0150.01615.86
5.6.360.0080.01315.21
5.6.350.0180.00915.46
5.6.340.0180.00615.72
5.6.330.0210.00615.58
5.6.320.0080.01915.59
5.6.310.0210.00615.64
5.6.300.0210.01015.76
5.6.290.0240.00615.87
5.6.280.0110.01715.77
5.6.270.0110.01215.64
5.6.260.0170.01115.57
5.6.250.0120.01115.74
5.6.240.0120.01615.58
5.6.230.0160.01215.77
5.6.220.0070.02315.48
5.6.210.0190.01515.63
5.6.200.0230.01015.84
5.6.190.0220.00815.77
5.6.180.0240.00415.79
5.6.170.0250.00315.71
5.6.160.0180.00915.49
5.6.150.0110.01715.61
5.6.140.0190.00615.56
5.6.130.0090.01615.54
5.6.120.0180.00915.64
5.6.110.0090.01715.67
5.6.100.0190.00615.64
5.6.90.0080.01515.53
5.6.80.0240.01515.51
5.6.70.0100.01715.34
5.6.60.0230.00415.44
5.6.50.0130.01315.50
5.6.40.0080.01615.55
5.6.30.0130.01015.32
5.6.20.0110.01415.48
5.6.10.0130.01615.30
5.6.00.0100.02015.61
5.5.380.0090.01315.47
5.5.370.0100.01015.70
5.5.360.0130.01115.71
5.5.350.0150.01315.48
5.5.340.0120.00815.07
5.5.330.0140.00915.12
5.5.320.0120.00915.18
5.5.310.0090.01315.13
5.5.300.0110.01115.01
5.5.290.0160.01015.31
5.5.280.0140.00715.62
5.5.270.0110.01115.25
5.5.260.0130.00915.11
5.5.250.0110.01115.19
5.5.240.0130.00915.10
5.5.230.0110.00915.03
5.5.220.0190.00515.24
5.5.210.0140.01315.22
5.5.200.0080.01315.32
5.5.190.0130.00515.22
5.5.180.0140.00715.21
5.5.170.0180.00915.23
5.5.160.0060.01815.53
5.5.150.0060.01715.68
5.5.140.0070.01415.27
5.5.130.0120.01215.47
5.5.120.0140.00915.32
5.5.110.0040.02015.16
5.5.100.0180.00615.24
5.5.90.0130.01315.20
5.5.80.0090.01315.36
5.5.70.0150.01114.99
5.5.60.0160.00615.57
5.5.50.0220.00915.38
5.5.40.0080.01215.54
5.5.30.0180.00915.36
5.5.20.0190.00615.29
5.5.10.0110.01415.17
5.5.00.0140.00815.19
5.4.450.0140.01012.59
5.4.440.0180.00312.43
5.4.430.0140.01012.50
5.4.420.0120.01112.49
5.4.410.0160.00812.36
5.4.400.0090.01212.34
5.4.390.0120.01612.34
5.4.380.0140.01412.36
5.4.370.0170.00812.28
5.4.360.0150.00812.55
5.4.350.0190.00512.59
5.4.340.0170.00312.24
5.4.330.0170.00612.46
5.4.320.0090.01712.43
5.4.310.0150.00912.47
5.4.300.0190.00412.52
5.4.290.0110.01112.31
5.4.280.0130.00812.39
5.4.270.0170.00712.32
5.4.260.0140.01412.25
5.4.250.0170.01012.33
5.4.240.0160.01012.57
5.4.230.0050.01812.52
5.4.220.0170.00512.30
5.4.210.0050.02012.24
5.4.200.0160.00512.34
5.4.190.0160.00612.41
5.4.180.0190.00412.34
5.4.170.0060.01712.61
5.4.160.0170.00412.31
5.4.150.0220.00012.21
5.4.140.0180.00312.59
5.4.130.0170.00712.32
5.4.120.0150.00812.45
5.4.110.0130.00712.28
5.4.100.0200.00212.37
5.4.90.0170.00412.36
5.4.80.0160.00412.40
5.4.70.0170.00412.41
5.4.60.0160.00812.32
5.4.50.0170.00612.52
5.4.40.0160.00512.46
5.4.30.0160.00412.38
5.4.20.0210.00012.49
5.4.10.0150.00812.38
5.4.00.0170.00512.49
5.3.290.0200.00712.82
5.3.280.0170.01112.64
5.3.270.0090.01312.75
5.3.260.0140.00813.00
5.3.250.0220.00312.86
5.3.240.0150.00912.59
5.3.230.0210.00412.79
5.3.220.0210.00412.70
5.3.210.0190.00612.79
5.3.200.0120.01212.66
5.3.190.0130.01012.88
5.3.180.0130.01012.98
5.3.170.0090.01513.11
5.3.160.0150.00812.83
5.3.150.0220.00012.87
5.3.140.0150.00912.91
5.3.130.0170.00812.80
5.3.120.0120.01213.07
5.3.110.0160.00912.80
5.3.100.0110.01112.77
5.3.90.0160.00512.86
5.3.80.0220.00012.76
5.3.70.0110.01112.73
5.3.60.0170.00312.77
5.3.50.0150.00812.70
5.3.40.0190.00412.84
5.3.30.0190.00412.71
5.3.20.0170.00312.69
5.3.10.0240.00312.63
5.3.00.0090.01212.48
5.2.170.0060.01211.89
5.2.160.0120.00611.79
5.2.150.0120.00611.91
5.2.140.0070.01111.72
5.2.130.0110.00811.87
5.2.120.0130.00911.79
5.2.110.0130.00411.72
5.2.100.0080.01111.73
5.2.90.0140.00511.75
5.2.80.0160.00411.74
5.2.70.0130.00511.83
5.2.60.0110.00711.59
5.2.50.0090.00911.86
5.2.40.0110.00711.76
5.2.30.0110.00711.94
5.2.20.0100.01011.53
5.2.10.0100.00711.60
5.2.00.0030.01411.39
5.1.60.0100.00610.76
5.1.50.0120.00510.82
5.1.40.0130.00510.86
5.1.30.0050.01110.99
5.1.20.0060.01011.02
5.1.10.0100.00610.88
5.1.00.0080.00810.66
5.0.50.0050.00910.54
5.0.40.0080.00810.54
5.0.30.0110.00410.54
5.0.20.0070.01110.54
5.0.10.0090.00610.54
5.0.00.0070.01010.54
4.4.90.0100.00010.54
4.4.80.0000.00810.54
4.4.70.0060.00310.54
4.4.60.0060.00410.54
4.4.50.0040.00410.54
4.4.40.0070.00310.54
4.4.30.0040.00410.54
4.4.20.0030.00610.54
4.4.10.0040.00410.54
4.4.00.0060.00210.54
4.3.110.0030.00610.54
4.3.100.0070.00310.54
4.3.90.0070.00210.54
4.3.80.0080.00010.54
4.3.70.0030.00710.54
4.3.60.0070.00210.54
4.3.50.0090.00310.54
4.3.40.0080.00010.54
4.3.30.0030.00510.54
4.3.20.0080.00010.54
4.3.10.0050.00210.54
4.3.00.0060.00310.54

preferences:
179.13 ms | 2506 KiB | 7 Q