3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); var_dump(new class() { public int $bar; public function __construct() { $this->bar = "42"; } });

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.00817.26
8.5.20.0080.00820.29
8.5.10.0110.00620.13
8.5.00.0140.00820.20
8.4.180.0110.01321.98
8.4.170.0160.00620.59
8.4.160.0130.00821.48
8.4.150.0070.00617.81
8.4.140.0130.00917.59
8.4.130.0160.00417.96
8.4.120.0050.00524.24
8.4.110.0140.00622.70
8.4.100.0120.00918.83
8.4.90.0060.01018.88
8.4.80.0070.00220.40
8.4.70.0040.00418.07
8.4.60.0110.01118.67
8.4.50.0120.00618.63
8.4.40.0040.01520.44
8.4.30.0140.00317.86
8.4.20.0090.00017.79
8.4.10.0090.00017.98
8.3.300.0120.00820.51
8.3.290.0120.00822.57
8.3.280.0140.00618.38
8.3.270.0100.00916.57
8.3.260.0110.00816.98
8.3.250.0100.00618.98
8.3.240.0120.00616.99
8.3.230.0050.00716.83
8.3.220.0090.00518.97
8.3.210.0050.00316.84
8.3.200.0110.00416.49
8.3.190.0090.00116.96
8.3.180.0100.00917.33
8.3.170.0120.00319.20
8.3.160.0040.00416.98
8.3.150.0140.00717.34
8.3.140.0110.00416.67
8.3.130.0050.00518.51
8.3.120.0060.00618.88
8.3.110.0090.00620.94
8.3.100.0090.00624.06
8.3.90.0000.00826.77
8.3.80.0060.00317.97
8.3.70.0120.00618.70
8.3.60.0070.01618.43
8.3.50.0100.00921.14
8.3.40.0030.01218.98
8.3.30.0040.01118.97
8.3.20.0000.00818.76
8.3.10.0070.00021.78
8.3.00.0040.00420.89
8.2.300.0050.00422.24
8.2.290.0130.00520.37
8.2.280.0130.00818.50
8.2.270.0140.00717.41
8.2.260.0110.00716.84
8.2.250.0030.00618.46
8.2.240.0000.00917.32
8.2.230.0040.00422.58
8.2.220.0030.00637.54
8.2.210.0000.00826.77
8.2.200.0090.00016.88
8.2.190.0090.00616.63
8.2.180.0150.00016.63
8.2.170.0070.00722.96
8.2.160.0090.00919.34
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.00322.13
8.2.120.0070.00026.35
8.2.110.0030.00619.46
8.2.100.0110.00017.63
8.2.90.0000.00819.23
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0030.00517.93
8.2.50.0050.00318.10
8.2.40.0050.00220.42
8.2.30.0070.00020.54
8.2.20.0000.00817.79
8.2.10.0030.00518.11
8.2.00.0000.00817.92
8.1.340.0090.01217.70
8.1.330.0080.01121.86
8.1.320.0100.00916.41
8.1.310.0060.00316.67
8.1.300.0060.00920.25
8.1.290.0030.00630.84
8.1.280.0100.00325.92
8.1.270.0030.00623.82
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0060.00321.25
8.1.230.0120.00017.48
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0040.00417.00
8.1.180.0000.00918.10
8.1.170.0030.00618.40
8.1.160.0000.00720.88
8.1.150.0040.00418.82
8.1.140.0000.00719.44
8.1.130.0000.00817.63
8.1.120.0070.00017.36
8.1.110.0000.00717.28
8.1.100.0000.00717.48
8.1.90.0040.00417.46
8.1.80.0040.00417.49
8.1.70.0030.00317.42
8.1.60.0040.00417.54
8.1.50.0040.00417.51
8.1.40.0050.00417.50
8.1.30.0040.00417.50
8.1.20.0000.00717.65
8.1.10.0030.00517.38
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0070.00016.61
8.0.280.0040.00418.35
8.0.270.0040.00416.88
8.0.260.0000.00617.23
8.0.250.0050.00217.02
8.0.240.0060.00016.97
8.0.230.0070.00016.95
8.0.220.0040.00416.98
8.0.210.0000.00716.80
8.0.200.0040.00417.00
8.0.190.0030.00616.96
8.0.180.0040.00416.90
8.0.170.0000.00716.93
8.0.160.0000.00816.90
8.0.150.0040.00416.91
8.0.140.0000.00717.00
8.0.130.0030.00613.41
8.0.120.0040.00416.89
8.0.110.0040.00416.86
8.0.100.0040.00416.97
8.0.90.0070.00016.99
8.0.80.0070.01016.86
8.0.70.0000.00816.84
8.0.60.0000.00716.83
8.0.50.0040.00416.80
8.0.30.0090.00917.22
8.0.20.0070.01117.40
8.0.10.0040.00417.06
8.0.00.0070.01316.83
7.4.330.0050.00015.08
7.4.320.0070.00016.60
7.4.300.0030.00316.47
7.4.290.0050.00616.38
7.4.280.0070.00016.41
7.4.270.0000.00716.41
7.4.260.0070.00016.53
7.4.250.0040.00416.50
7.4.240.0030.00616.60
7.4.230.0070.00016.60
7.4.220.0120.00916.52
7.4.210.0100.01016.58
7.4.200.0000.00716.49
7.4.160.0060.01316.50
7.4.150.0140.00317.40
7.4.140.0140.00717.86
7.4.130.0070.01016.53
7.4.120.0120.00516.53
7.4.110.0120.00916.67
7.4.100.0100.01016.75
7.4.90.0070.01016.43
7.4.80.0040.01219.39
7.4.70.0060.01416.46
7.4.60.0130.00316.55
7.4.50.0110.00416.54
7.4.40.0070.01416.60
7.4.30.0070.01116.58
7.3.330.0030.00313.29
7.3.320.0040.00313.23
7.3.310.0030.00316.18
7.3.300.0030.00316.07
7.3.290.0090.00616.18
7.3.280.0060.00916.20
7.3.270.0130.00417.40
7.3.260.0100.00716.62
7.3.250.0050.01416.21
7.3.240.0120.00816.30
7.3.230.0030.01516.39
7.3.210.0100.00716.22
7.3.200.0120.00616.11
7.3.190.0060.00916.22
7.3.180.0070.00716.16
7.3.170.0070.01316.36
7.3.160.0060.01116.24
7.2.330.0110.00616.30
7.2.320.0110.00716.33
7.2.310.0060.01116.31
7.2.300.0100.00716.59
7.2.290.0170.00016.47
7.0.40.0130.06020.23
7.0.30.0130.05720.14
7.0.20.0130.06320.05
7.0.10.0200.05720.38
7.0.00.0070.06720.26
5.6.190.0270.06320.46
5.6.180.0200.05020.57
5.6.170.0070.06320.61
5.6.160.0200.05320.55
5.6.150.0130.06020.20
5.6.140.0100.06020.35
5.6.130.0070.06720.35
5.6.120.0470.05020.27
5.6.110.0100.05720.19
5.6.100.0300.06720.19
5.6.90.0370.05320.38
5.6.80.0370.06719.80
5.6.70.0300.06719.83
5.6.60.0270.05719.65
5.6.50.0300.05019.75
5.6.40.0330.05019.66
5.6.30.0270.06319.79
5.6.20.0170.05319.71
5.6.10.0170.05319.66
5.6.00.0330.05019.74
5.5.330.0200.05320.47
5.5.320.0200.05320.40
5.5.310.0330.04020.28
5.5.300.0100.06720.07
5.5.290.0230.05020.11
5.5.280.0030.07020.23
5.5.270.0100.06020.17
5.5.260.0430.05720.13
5.5.250.0470.05019.92
5.5.240.0370.05719.60
5.5.230.0400.04719.51
5.5.220.0270.06019.76
5.5.210.0230.06019.44
5.5.200.0200.06319.56
5.5.190.0230.06319.56
5.5.180.0070.06319.74
5.5.160.0270.05319.45
5.5.150.0370.05019.75
5.5.140.0300.05319.45
5.5.130.0300.05719.52
5.5.120.0370.05019.42
5.5.110.0200.06019.57
5.5.100.0200.05719.50
5.5.90.0270.05319.50
5.5.80.0230.06019.41
5.5.70.0200.06019.35
5.5.60.0200.06319.41
5.5.50.0400.04319.41
5.5.40.0300.05019.36
5.5.30.0330.05019.38
5.5.20.0370.05319.34
5.5.10.0100.06019.39
5.5.00.0030.06719.52

preferences:
59.16 ms | 1602 KiB | 5 Q