3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Foo { public function bar() : int { return '1'; } } print (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.70.0140.00416.75
8.3.60.0040.01316.63
8.3.50.0150.00521.27
8.3.40.0180.00318.79
8.3.30.0110.00318.71
8.3.20.0080.00018.86
8.3.10.0090.00021.62
8.3.00.0040.00419.80
8.2.180.0120.00316.75
8.2.170.0070.00718.93
8.2.160.0090.00622.96
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0040.00420.94
8.2.110.0040.00720.95
8.2.100.0120.00017.72
8.2.90.0040.00417.84
8.2.80.0090.00018.03
8.2.70.0040.00417.63
8.2.60.0030.00717.50
8.2.50.0000.00817.55
8.2.40.0030.00522.23
8.2.30.0000.00821.02
8.2.20.0000.00818.09
8.2.10.0040.00418.08
8.2.00.0080.00017.65
8.1.280.0030.01225.92
8.1.270.0140.00323.77
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00623.92
8.1.230.0060.00622.75
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0050.00317.23
8.1.190.0060.00617.23
8.1.180.0000.00818.88
8.1.170.0030.00718.51
8.1.160.0040.00422.18
8.1.150.0000.00720.87
8.1.140.0040.00419.49
8.1.130.0100.00018.85
8.1.120.0040.00417.36
8.1.110.0000.00817.21
8.1.100.0070.00017.31
8.1.90.0040.00417.29
8.1.80.0000.00717.28
8.1.70.0000.00817.28
8.1.60.0040.00417.54
8.1.50.0080.00017.32
8.1.40.0000.00917.42
8.1.30.0040.00417.56
8.1.20.0080.00017.62
8.1.10.0040.00417.49
8.1.00.0000.00817.48
8.0.300.0040.00419.89
8.0.290.0070.00016.63
8.0.280.0030.00318.36
8.0.270.0030.00517.09
8.0.260.0030.00317.22
8.0.250.0000.00716.95
8.0.240.0000.00616.84
8.0.230.0070.00016.85
8.0.220.0000.00716.76
8.0.210.0040.00416.86
8.0.200.0030.00616.93
8.0.190.0080.00016.90
8.0.180.0050.00316.88
8.0.170.0020.00516.77
8.0.160.0040.00416.92
8.0.150.0070.00016.93
8.0.140.0040.00416.89
8.0.130.0030.00313.30
8.0.120.0030.00616.84
8.0.110.0000.00716.90
8.0.100.0000.00716.81
8.0.90.0070.00016.88
8.0.80.0130.00316.88
8.0.70.0040.00416.88
8.0.60.0000.00816.83
8.0.50.0040.00416.82
8.0.30.0110.00717.12
8.0.20.0080.01117.40
8.0.10.0030.00316.96
8.0.00.0170.00316.99
7.4.330.0050.00015.55
7.4.320.0060.00016.47
7.4.300.0000.00716.38
7.4.290.0000.00716.52
7.4.280.0060.00316.33
7.4.270.0040.00416.34
7.4.260.0030.00316.42
7.4.250.0000.00716.44
7.4.240.0070.00016.44
7.4.230.0030.00316.61
7.4.220.0040.01516.38
7.4.210.0070.01116.51
7.4.200.0000.00716.59
7.4.160.0050.01116.44
7.4.150.0090.01217.40
7.4.140.0130.00517.86
7.4.130.0080.00916.40
7.4.120.0090.01116.47
7.4.110.0120.00416.50
7.4.100.0030.01416.45
7.4.90.0150.00416.39
7.4.80.0030.01719.39
7.4.70.0130.00316.47
7.4.60.0130.00416.30
7.4.50.0000.01516.35
7.4.40.0090.00616.48
7.4.30.0110.00616.33
7.4.00.0110.00714.89
7.3.330.0050.00013.21
7.3.320.0020.00213.35
7.3.310.0030.00316.25
7.3.300.0030.00316.26
7.3.290.0030.00316.21
7.3.280.0080.00916.32
7.3.270.0060.01117.40
7.3.260.0120.00516.49
7.3.250.0110.01016.42
7.3.240.0070.01216.56
7.3.230.0060.01016.53
7.3.210.0110.00516.34
7.3.200.0000.01716.41
7.3.190.0090.01216.58
7.3.180.0100.01016.45
7.3.170.0030.01316.41
7.3.160.0100.01316.51
7.3.120.0070.01114.84
7.3.110.0030.01414.77
7.3.100.0000.01514.92
7.3.90.0040.00414.84
7.3.80.0060.00614.81
7.3.70.0050.00614.83
7.3.60.0030.01014.64
7.3.50.0080.00514.67
7.3.40.0090.00414.88
7.3.30.0110.00514.45
7.3.20.0050.00816.62
7.3.10.0100.00516.50
7.3.00.0110.00116.47
7.2.330.0070.01116.36
7.2.320.0100.01316.61
7.2.310.0100.01316.48
7.2.300.0140.00316.49
7.2.290.0110.00716.52
7.2.250.0100.00814.90
7.2.240.0080.01114.68
7.2.230.0100.00614.92
7.2.220.0070.00515.00
7.2.210.0130.00214.94
7.2.200.0090.00515.03
7.2.190.0070.00714.94
7.2.180.0050.00614.91
7.2.170.0070.00714.79
7.2.60.0030.01316.83
7.2.00.0100.00719.20
7.1.330.0070.00515.66
7.1.320.0060.00615.70
7.1.310.0070.00715.64
7.1.300.0080.00515.63
7.1.290.0030.01015.66
7.1.280.0090.00615.65
7.1.270.0050.00815.67
7.1.260.0080.00815.71
7.1.200.0040.01115.73
7.1.100.0070.00717.89
7.1.70.0000.01116.89
7.1.60.0000.01517.22
7.1.50.0100.01016.89
7.1.00.0830.06020.67
7.0.200.0620.00414.45
7.0.140.1200.05020.26
7.0.130.0970.05720.32
7.0.120.0970.08020.37
7.0.110.0830.06020.29
7.0.100.0870.05320.38
7.0.90.0800.06020.38
7.0.80.0700.06020.22
7.0.70.0800.05720.32
7.0.60.0730.05320.28
7.0.50.0700.05720.33
7.0.40.0600.06020.18
7.0.30.0570.05720.39
7.0.20.0670.05320.18
7.0.10.0700.05720.27
7.0.00.0770.05320.23
5.6.290.0030.06020.98
5.6.280.0230.05321.08
5.6.270.0200.06720.90
5.6.260.0170.05021.10
5.6.250.0000.06721.12
5.6.240.0170.05321.13
5.6.230.0130.07720.89
5.6.220.0170.06021.11
5.6.210.0000.07021.10
5.6.200.0070.06320.89
5.6.190.0170.05320.82
5.6.180.0170.05320.83
5.6.170.0070.05720.92
5.6.160.0070.06020.88
5.6.150.0100.07020.88
5.6.140.0030.06320.74
5.6.130.0070.06321.04
5.6.120.0100.05720.86
5.6.110.0070.06321.01
5.6.100.0030.06720.93
5.6.90.0170.04721.07
5.6.80.0130.04720.24
5.6.70.0100.05320.11
5.6.60.0030.06020.24
5.6.50.0100.05720.29
5.6.40.0170.04720.10
5.6.30.0100.06020.40
5.6.20.0100.05720.22
5.6.10.0200.04020.43
5.6.00.0030.05720.40

preferences:
59.13 ms | 401 KiB | 5 Q