3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { function __construct() { echo "Constructing Base"; } } class Derive extends Base { } new Base();

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.0090.00618.43
8.3.50.0110.01022.11
8.3.40.0070.00718.54
8.3.30.0070.00718.82
8.3.20.0040.00420.20
8.3.10.0080.00022.14
8.3.00.0000.00822.44
8.2.180.0150.00016.50
8.2.170.0120.00322.96
8.2.160.0070.00720.83
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0040.00419.26
8.2.110.0100.00022.05
8.2.100.0000.01117.72
8.2.90.0050.00319.09
8.2.80.0090.00017.97
8.2.70.0040.00417.38
8.2.60.0100.00017.92
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0040.00417.99
8.2.20.0040.00417.59
8.2.10.0030.00519.32
8.2.00.0080.00017.46
8.1.280.0120.00625.92
8.1.270.0050.00223.99
8.1.260.0000.00926.35
8.1.250.0000.00828.09
8.1.240.0030.00720.71
8.1.230.0110.00417.42
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0080.00017.29
8.1.180.0030.00518.45
8.1.170.0030.00518.57
8.1.160.0070.00021.87
8.1.150.0040.00418.49
8.1.140.0040.00417.31
8.1.130.0030.00317.57
8.1.120.0050.00217.32
8.1.110.0040.00417.20
8.1.100.0030.00517.30
8.1.90.0050.00217.23
8.1.80.0040.00417.38
8.1.70.0030.00317.25
8.1.60.0040.00417.51
8.1.50.0000.00717.37
8.1.40.0080.00017.47
8.1.30.0040.00417.43
8.1.20.0040.00417.48
8.1.10.0000.00717.46
8.1.00.0030.00717.42
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.43
8.0.270.0000.00717.28
8.0.260.0030.00316.91
8.0.250.0030.00316.88
8.0.240.0030.00316.77
8.0.230.0070.00016.80
8.0.220.0030.00316.65
8.0.210.0030.00316.76
8.0.200.0000.00716.71
8.0.190.0080.00016.80
8.0.180.0020.00516.79
8.0.170.0000.00716.82
8.0.160.0040.00416.70
8.0.150.0040.00416.69
8.0.140.0030.00516.75
8.0.130.0060.00013.20
8.0.120.0000.00816.75
8.0.110.0000.00716.75
8.0.100.0000.00716.55
8.0.90.0000.00716.62
8.0.80.0120.00316.70
8.0.70.0050.00316.61
8.0.60.0000.00816.62
8.0.50.0030.00516.75
8.0.30.0100.00917.04
8.0.20.0070.01117.40
8.0.10.0070.00016.73
8.0.00.0120.01216.64
7.4.330.0000.00615.00
7.4.320.0030.00316.37
7.4.300.0050.00216.53
7.4.290.0030.00316.41
7.4.280.0030.00316.32
7.4.270.0000.00716.54
7.4.260.0030.00316.46
7.4.250.0070.00016.39
7.4.240.0040.00316.37
7.4.230.0030.00316.22
7.4.220.0160.00316.36
7.4.210.0080.00916.56
7.4.200.0000.00716.34
7.4.190.0000.00816.23
7.4.160.0060.01316.34
7.4.150.0070.01117.40
7.4.140.0140.00717.86
7.4.130.0060.01316.46
7.4.120.0040.01416.30
7.4.110.0090.00916.33
7.4.100.0000.01816.38
7.4.90.0180.00016.25
7.4.80.0090.01219.39
7.4.70.0060.01016.47
7.4.60.0120.00316.36
7.4.50.0030.00516.37
7.4.40.0140.00022.77
7.4.30.0040.01116.43
7.4.00.0040.00714.82
7.3.330.0020.00213.18
7.3.320.0000.00513.02
7.3.310.0040.00416.33
7.3.300.0030.00316.16
7.3.290.0150.00016.27
7.3.280.0040.01316.23
7.3.270.0120.01017.40
7.3.260.0060.01516.15
7.3.250.0070.01316.38
7.3.240.0060.01316.49
7.3.230.0070.01016.39
7.3.210.0120.00316.45
7.3.200.0120.00819.39
7.3.190.0070.00316.25
7.3.180.0080.00816.53
7.3.170.0120.00616.51
7.3.160.0130.00316.24
7.3.120.0070.00714.51
7.2.330.0100.00716.47
7.2.320.0080.01116.64
7.2.310.0070.01016.48
7.2.300.0030.01316.29
7.2.290.0100.00716.66
7.2.60.0000.01516.68
7.1.200.0030.00315.67
7.1.70.0070.00417.13
7.1.60.0130.01019.82
7.1.50.0060.00616.81
7.1.00.0070.07322.33
7.0.200.0040.00416.68
7.0.140.0070.07022.16
7.0.60.0070.06719.99
7.0.50.0100.03317.88
7.0.40.0130.07320.17
7.0.30.0230.08320.27
7.0.20.0270.07720.09
7.0.10.0200.09020.21
7.0.00.0130.08720.27
5.6.280.0070.07020.93
5.6.210.0030.08020.52
5.6.200.0100.08018.19
5.6.190.0100.08020.55
5.6.180.3770.04720.55
5.6.170.0270.03720.46
5.6.160.0170.06320.44
5.6.150.0030.04018.23
5.6.140.0100.05318.19
5.6.130.0030.08318.23
5.6.120.0030.04021.04
5.6.110.0070.08320.99
5.6.100.0070.07320.89
5.6.90.0100.07320.98
5.6.80.0130.05720.48
5.6.70.0370.07020.39
5.5.350.0070.07020.52
5.5.340.0000.04317.92
5.5.330.0170.07720.27
5.5.320.0330.07020.35
5.5.310.0230.05320.38
5.5.300.0100.06018.02
5.5.290.0030.08317.96
5.5.280.0030.08020.80
5.5.270.0070.07020.73
5.5.260.0030.08720.87
5.5.250.0130.05020.61
5.5.240.0070.06720.26
5.4.450.0470.07319.46
5.4.440.0470.05719.38
5.4.430.0100.05719.38
5.4.420.0070.06019.38
5.4.410.0170.07019.36
5.4.400.1000.00018.75
5.4.390.1900.00018.80
5.4.380.0200.05718.72
5.4.370.0400.05018.61
5.4.360.0330.05718.56
5.4.350.0370.04718.71
5.4.340.0270.06018.62
5.4.320.0050.04712.50
5.4.310.0080.04712.50
5.4.300.0030.03912.50
5.4.290.0120.04712.50
5.4.280.0080.04012.39
5.4.270.0050.04212.39
5.4.260.0170.06718.97
5.4.250.0100.07718.93
5.4.240.0030.08718.96
5.4.230.0100.05318.79
5.4.220.0030.08019.05
5.4.210.0100.05319.09
5.4.200.0200.04719.02
5.4.190.0200.06718.99
5.4.180.0200.06318.97
5.4.170.0100.07318.92
5.4.160.0130.06718.97
5.4.150.0100.07718.77
5.4.140.0030.06016.57
5.4.130.0070.06016.59
5.4.120.0100.05316.62
5.4.110.0170.06316.38
5.4.100.0100.05016.56
5.4.90.0170.06016.67
5.4.80.0130.06716.51
5.4.70.0070.05316.55
5.4.60.0170.04716.51
5.4.50.0170.07016.37
5.4.40.0030.05316.45
5.4.30.0170.05016.45
5.4.20.0170.06316.45
5.4.10.0130.05016.38
5.4.00.0270.05316.02
5.3.290.0090.03612.80
5.3.280.0000.06014.61
5.3.270.0170.07014.69
5.3.260.0200.06014.68
5.3.250.0000.05714.68
5.3.240.0000.07014.68
5.3.230.0000.07014.50
5.3.220.0230.04714.39
5.3.210.0100.06314.55
5.3.200.0070.05014.65
5.3.190.0130.05314.55
5.3.180.0070.05014.78
5.3.170.0130.06714.62
5.3.160.0130.07014.78
5.3.150.0070.06314.57
5.3.140.0100.06014.63
5.3.130.0200.04314.56
5.3.120.0130.05014.53
5.3.110.0170.06014.63
5.3.100.0100.06014.21
5.3.90.0070.07014.23
5.3.80.0070.05314.01
5.3.70.0130.05714.19
5.3.60.0070.05313.98
5.3.50.0130.07014.11
5.3.40.0070.07714.13
5.3.30.0200.05313.90
5.3.20.0100.04313.69
5.3.10.0070.06713.63
5.3.00.0100.04713.72
5.2.170.0070.05311.10
5.2.160.0100.05310.97
5.2.150.0230.04011.23
5.2.140.0100.06011.32
5.2.130.0070.05711.07
5.2.120.0130.03310.93
5.2.110.0170.04311.17
5.2.100.0130.03311.27
5.2.90.0030.06011.16
5.2.80.0070.04711.24
5.2.70.0070.04310.99
5.2.60.0070.04011.12
5.2.50.0070.03710.84
5.2.40.0070.03711.07
5.2.30.0030.04711.14
5.2.20.0070.04011.04
5.2.10.0070.03710.94
5.2.00.0000.04310.89
5.1.60.0170.02310.09
5.1.50.0070.0379.92
5.1.40.0030.04310.04
5.1.30.0030.05310.39
5.1.20.0070.04710.43
5.1.10.0000.04710.04
5.1.00.0200.02310.04
5.0.50.0100.0378.78
5.0.40.0100.0438.41
5.0.30.0100.0378.37
5.0.20.0100.0308.43
5.0.10.0030.0278.41
5.0.00.0070.0408.11
4.4.90.0100.0237.53
4.4.80.0030.0207.53
4.4.70.0030.0277.52
4.4.60.0000.0237.52
4.4.50.0030.0207.52
4.4.40.0070.0377.52
4.4.30.0030.0237.52
4.4.20.0000.0337.52
4.4.10.0070.0277.52
4.4.00.0030.0337.52
4.3.110.0030.0237.53
4.3.100.0030.0307.53
4.3.90.0070.0177.53
4.3.80.0000.0437.53
4.3.70.0000.0237.53
4.3.60.0000.0237.53
4.3.50.0000.0377.53
4.3.40.0030.0307.53
4.3.30.0030.0307.53
4.3.20.0100.0237.53
4.3.10.0030.0277.53
4.3.00.0070.0236.98

preferences:
39.21 ms | 401 KiB | 5 Q