3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo{ public function __construct($say){ echo "say $say"; } } new foo("bar");

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.0120.00616.25
8.3.50.0070.01121.98
8.3.40.0070.01418.54
8.3.30.0140.00018.97
8.3.20.0080.00020.14
8.3.10.0060.00320.36
8.3.00.0080.00019.25
8.2.180.0070.00716.63
8.2.170.0150.00022.96
8.2.160.0110.00320.39
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00321.02
8.2.110.0000.00822.20
8.2.100.0040.00717.59
8.2.90.0040.00419.13
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0000.00917.92
8.2.50.0000.00818.07
8.2.40.0060.00318.16
8.2.30.0040.00419.42
8.2.20.0000.00817.52
8.2.10.0040.00417.88
8.2.00.0030.00517.54
8.1.280.0070.01325.92
8.1.270.0030.00623.97
8.1.260.0020.00526.35
8.1.250.0070.00028.09
8.1.240.0050.00524.03
8.1.230.0080.00319.15
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.22
8.1.190.0030.00516.98
8.1.180.0040.00418.10
8.1.170.0030.00618.38
8.1.160.0040.00421.97
8.1.150.0030.00518.62
8.1.140.0000.00817.21
8.1.130.0030.00317.75
8.1.120.0000.00817.36
8.1.110.0070.00017.18
8.1.100.0000.00717.34
8.1.90.0000.00717.38
8.1.80.0050.00317.24
8.1.70.0040.00417.22
8.1.60.0000.01017.46
8.1.50.0080.00017.34
8.1.40.0040.00417.46
8.1.30.0040.00417.53
8.1.20.0060.00317.51
8.1.10.0000.00717.54
8.1.00.0030.00517.44
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.36
8.0.270.0030.00317.24
8.0.260.0000.00617.15
8.0.250.0070.00016.86
8.0.240.0070.00016.95
8.0.230.0070.00016.86
8.0.220.0070.00016.70
8.0.210.0030.00316.81
8.0.200.0060.00016.92
8.0.190.0040.00416.75
8.0.180.0040.00416.74
8.0.170.0050.00316.84
8.0.160.0030.00616.85
8.0.150.0000.00716.72
8.0.140.0030.00516.76
8.0.130.0030.00313.28
8.0.120.0030.00616.80
8.0.110.0040.00416.68
8.0.100.0070.00016.82
8.0.90.0040.00416.69
8.0.80.0110.00616.78
8.0.70.0070.00016.81
8.0.60.0040.00416.80
8.0.50.0000.00716.82
8.0.30.0110.00817.01
8.0.20.0110.01417.40
8.0.10.0080.00016.76
8.0.00.0070.01116.52
7.4.330.0000.00515.02
7.4.320.0000.00716.43
7.4.300.0060.00016.43
7.4.290.0040.00716.44
7.4.280.0050.00216.40
7.4.270.0000.00616.51
7.4.260.0000.00716.48
7.4.250.0000.00716.29
7.4.240.0010.00616.50
7.4.230.0000.00716.55
7.4.220.0120.00916.49
7.4.210.0060.00916.47
7.4.200.0000.00716.59
7.4.160.0150.00316.46
7.4.150.0040.01317.40
7.4.140.0100.00817.86
7.4.130.0060.01016.50
7.4.120.0060.01216.44
7.4.110.0130.00316.33
7.4.100.0070.01116.53
7.4.90.0030.01316.46
7.4.80.0130.00619.39
7.4.70.0130.00316.55
7.4.60.0110.00716.29
7.4.50.0000.00816.45
7.4.40.0140.00716.45
7.4.30.0060.00916.55
7.4.00.0030.01014.87
7.3.330.0030.00313.25
7.3.320.0060.00013.18
7.3.310.0000.00716.25
7.3.300.0000.00716.17
7.3.290.0090.01516.29
7.3.280.0060.00816.30
7.3.270.0140.00417.40
7.3.260.0090.00916.50
7.3.250.0150.00416.29
7.3.240.0070.01016.39
7.3.230.0060.01216.39
7.3.210.0110.00716.63
7.3.200.0030.01419.39
7.3.190.0090.00616.22
7.3.180.0120.00616.17
7.3.170.0070.01316.56
7.3.160.0100.00616.58
7.3.10.0110.00316.18
7.3.00.0060.00616.26
7.2.330.0110.00716.20
7.2.320.0100.00616.32
7.2.310.0000.01716.45
7.2.300.0030.01316.68
7.2.290.0100.00716.68
7.2.130.0030.00616.63
7.2.120.0110.00716.58
7.2.110.0060.00916.77
7.2.100.0070.00716.94
7.2.90.0080.00316.66
7.2.80.0040.01016.53
7.2.70.0080.00316.59
7.2.60.0000.01316.30
7.2.50.0070.00416.46
7.2.40.0030.00716.80
7.2.30.0060.00616.81
7.2.20.0000.01316.40
7.2.10.0040.01116.84
7.2.00.0060.01118.13
7.1.250.0000.01115.32
7.1.100.0040.01117.79
7.1.70.0000.00817.15
7.1.60.0090.01519.61
7.1.50.0030.00916.86
7.1.00.0070.07322.27
7.0.200.0030.00716.74
7.0.140.0030.07022.12
7.0.60.0070.08019.94
7.0.50.0000.04317.94
7.0.40.0130.08320.14
7.0.30.0370.07320.11
7.0.20.0170.05720.24
7.0.10.0030.04720.30
7.0.00.0130.08020.23
5.6.280.0070.07021.11
5.6.210.0170.06720.68
5.6.200.0100.08018.12
5.6.190.0130.03720.33
5.6.180.0500.07720.50
5.6.170.0300.07720.39
5.6.160.0070.08720.47
5.6.150.0200.06718.20
5.6.140.0170.05318.19
5.6.130.0000.04318.17
5.6.120.0100.07020.93
5.6.110.0000.09021.13
5.6.100.0170.06021.00
5.6.90.0200.07321.00
5.6.80.0130.06720.38
5.5.350.0170.07020.38
5.5.340.0070.08318.07
5.5.330.0070.08720.41
5.5.320.0230.05020.26
5.5.310.0200.05720.29
5.5.300.0070.03717.98
5.5.290.0100.08017.93
5.5.280.0100.08020.75
5.5.270.0130.07320.85
5.5.260.0100.06720.72
5.5.250.0070.04020.61
5.5.240.0170.07320.24
5.4.450.3730.04019.30
5.4.440.0070.04719.29
5.4.430.3600.04319.30
5.4.420.3670.03319.47
5.4.410.3730.02319.44
5.4.400.3570.03319.24
5.4.390.3030.03719.25
5.4.380.3430.03319.21
5.4.370.3570.03719.09
5.4.360.3570.04019.22
5.4.350.3670.02719.08
5.4.340.3730.04019.23
5.4.320.3470.03719.16
5.4.310.3670.03319.31
5.4.300.3630.03318.98
5.4.290.2530.04719.19
5.4.280.4300.04019.16
5.4.270.3770.03019.08
5.4.260.3300.03319.22
5.4.250.3970.04319.23
5.4.240.3570.03719.04
5.4.230.3570.03319.30
5.4.220.3570.03718.96
5.4.210.4270.04019.31
5.4.200.3570.03319.21
5.4.190.3830.04319.07
5.4.180.3630.03319.07
5.4.170.3600.04019.21
5.4.160.3830.03719.20
5.4.150.3630.03719.08
5.4.140.3870.03716.32
5.4.130.3800.03316.31
5.4.120.3600.03716.50
5.4.110.3400.03316.56
5.4.100.3270.03316.55
5.4.90.4230.03716.59
5.4.80.3700.02716.44
5.4.70.3730.03316.34
5.4.60.3930.04316.38
5.4.50.3530.03016.43
5.4.40.3300.04016.55
5.4.30.3500.03016.48
5.4.20.3270.03716.39
5.4.10.3570.03316.52
5.4.00.3700.03015.77
5.3.290.3670.03714.64
5.3.280.3900.04714.83
5.3.270.3900.03714.52
5.3.260.3570.04014.82
5.3.250.3870.03714.50
5.3.240.3630.04014.82
5.3.230.3670.04014.51
5.3.220.4030.04314.48
5.3.210.4700.03714.46
5.3.200.3130.04014.48
5.3.190.4230.04014.78
5.3.180.3600.04314.46
5.3.170.3700.03714.67
5.3.160.3470.03714.67
5.3.150.3700.03714.53
5.3.140.3830.04314.48
5.3.130.3700.03714.63
5.3.120.4030.04314.51
5.3.110.3600.03714.53
5.3.100.2830.03713.95
5.3.90.4070.04014.10
5.3.80.3600.03314.18
5.3.70.3600.03314.02
5.3.60.3630.03314.00
5.3.50.3970.02714.03
5.3.40.3100.03013.87
5.3.30.2370.03713.83
5.3.20.3470.03313.84
5.3.10.3030.04013.77
5.3.00.2770.03013.61
5.2.170.3030.03311.30
5.2.160.2870.02311.07
5.2.150.2530.03311.12
5.2.140.2870.03011.26
5.2.130.2830.03011.01
5.2.120.2630.02711.00
5.2.110.3300.03311.14
5.2.100.2730.03011.04
5.2.90.3600.02711.10
5.2.80.2470.03711.01
5.2.70.2700.02011.02
5.2.60.3570.03711.27
5.2.50.2930.03010.97
5.2.40.2100.02711.11
5.2.30.2100.03011.02
5.2.20.2170.02310.85
5.2.10.2400.03010.91
5.2.00.2470.03010.93
5.1.60.2170.02010.04
5.1.50.1630.02310.07
5.1.40.2370.02710.07
5.1.30.2230.02310.38
5.1.20.2600.02710.31
5.1.10.2130.02310.22
5.1.00.2300.0239.95
5.0.50.0700.0208.54
5.0.40.1270.0178.39
5.0.30.1000.0308.14
5.0.20.1100.0208.28
5.0.10.1400.0238.16
5.0.00.1170.0278.04
4.4.90.1200.0106.12
4.4.80.0830.0176.12
4.4.70.1000.0136.12
4.4.60.0770.0106.12
4.4.50.1030.0206.12
4.4.40.1330.0206.12
4.4.30.1000.0206.12
4.4.20.1130.0176.12
4.4.10.0900.0176.12
4.4.00.1270.0276.12
4.3.110.1330.0176.12
4.3.100.1230.0106.12
4.3.90.1370.0206.12
4.3.80.0900.0376.12
4.3.70.1130.0136.12
4.3.60.1270.0176.12
4.3.50.1300.0136.12
4.3.40.1270.0236.12
4.3.30.0130.0206.12
4.3.20.0500.0176.12
4.3.10.0530.0176.12
4.3.00.0530.0136.12

preferences:
38.6 ms | 401 KiB | 5 Q