3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Test { public function getIt(): string { return 1; } } var_dump((new Test)->getIt());

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.00721.16
8.5.20.0100.00619.22
8.5.10.0080.01216.94
8.5.00.0130.00820.19
8.4.180.0150.00819.72
8.4.170.0130.00920.47
8.4.160.0100.01423.42
8.4.150.0060.00616.97
8.4.140.0140.00717.67
8.4.130.0130.00917.71
8.4.120.0070.00324.06
8.4.110.0060.00322.59
8.4.100.0120.00917.55
8.4.90.0120.00920.53
8.4.80.0100.01018.81
8.4.70.0040.00618.86
8.4.60.0110.00818.58
8.4.50.0150.00724.32
8.4.40.0100.01019.40
8.4.30.0070.01419.40
8.4.20.0120.00920.59
8.4.10.0030.00617.77
8.3.300.0140.00820.54
8.3.290.0140.00620.73
8.3.280.0100.01118.74
8.3.270.0090.01016.68
8.3.260.0100.00816.70
8.3.250.0130.00518.65
8.3.240.0120.00617.05
8.3.230.0050.00316.58
8.3.220.0080.01118.70
8.3.210.0100.00818.63
8.3.200.0050.00416.81
8.3.190.0080.01016.91
8.3.180.0100.00918.88
8.3.170.0080.01116.69
8.3.160.0100.00718.90
8.3.150.0110.00318.75
8.3.140.0110.00720.91
8.3.130.0050.00318.78
8.3.120.0100.00019.02
8.3.110.0090.00020.94
8.3.100.0050.00324.06
8.3.90.0070.00026.77
8.3.80.0060.00317.97
8.3.70.0120.00316.55
8.3.60.0090.01218.43
8.3.50.0040.01017.51
8.3.40.0110.00418.91
8.3.30.0110.00418.66
8.3.20.0110.00418.48
8.3.10.0080.00023.53
8.3.00.0070.00020.82
8.2.300.0100.01022.18
8.2.290.0110.00820.30
8.2.280.0100.00518.69
8.2.270.0040.01216.72
8.2.260.0000.01516.71
8.2.250.0030.00518.61
8.2.240.0000.00816.93
8.2.230.0040.00422.58
8.2.220.0090.00037.54
8.2.210.0000.00826.77
8.2.200.0060.00316.50
8.2.190.0140.00316.77
8.2.180.0060.01316.63
8.2.170.0090.00622.96
8.2.160.0070.00719.04
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0140.00018.09
8.2.120.0070.00026.35
8.2.110.0040.00820.94
8.2.100.0070.01017.72
8.2.90.0030.00517.91
8.2.80.0080.00017.97
8.2.70.0060.00317.80
8.2.60.0090.00018.03
8.2.50.0030.00618.10
8.2.40.0040.00419.35
8.2.30.0000.00819.19
8.2.20.0000.00717.92
8.2.10.0080.00017.97
8.2.00.0000.00817.65
8.1.340.0110.00817.42
8.1.330.0050.00322.04
8.1.320.0120.00817.99
8.1.310.0140.00016.75
8.1.300.0000.00817.84
8.1.290.0070.00330.84
8.1.280.0080.00825.92
8.1.270.0040.00423.67
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0050.00322.13
8.1.230.0120.00022.76
8.1.220.0080.00017.74
8.1.210.0040.00418.85
8.1.200.0110.00017.23
8.1.190.0000.00817.39
8.1.180.0060.00318.10
8.1.170.0060.00318.59
8.1.160.0000.00818.83
8.1.150.0000.00718.72
8.1.140.0030.00322.14
8.1.130.0030.00320.00
8.1.120.0030.00517.35
8.1.110.0070.00017.25
8.1.100.0040.00417.34
8.1.90.0030.00517.32
8.1.80.0000.00717.27
8.1.70.0070.00017.34
8.1.60.0030.00617.38
8.1.50.0040.00417.47
8.1.40.0000.00817.36
8.1.30.0000.00717.54
8.1.20.0000.00717.42
8.1.10.0040.00417.55
8.1.00.0000.00817.46
8.0.300.0050.00319.73
8.0.290.0050.00316.63
8.0.280.0040.00418.34
8.0.270.0030.00317.05
8.0.260.0000.00720.12
8.0.250.0030.00316.85
8.0.240.0030.00616.90
8.0.230.0070.00016.94
8.0.220.0040.00416.76
8.0.210.0030.00316.90
8.0.200.0030.00616.86
8.0.190.0000.01116.96
8.0.180.0040.00416.92
8.0.170.0000.00816.95
8.0.160.0040.00416.82
8.0.150.0070.00016.73
8.0.140.0030.00516.78
8.0.130.0000.00513.36
8.0.120.0070.00016.88
8.0.110.0000.00916.87
8.0.100.0070.00016.79
8.0.90.0040.00416.96
8.0.80.0110.00716.85
8.0.70.0050.00216.84
8.0.60.0050.00216.94
8.0.50.0000.00716.76
8.0.30.0110.01016.86
8.0.20.0140.00617.40
8.0.10.0050.00316.83
8.0.00.0080.01016.89
7.4.330.0000.00415.55
7.4.320.0070.00016.36
7.4.300.0030.00316.52
7.4.290.0040.00416.34
7.4.280.0000.00816.42
7.4.270.0000.00716.36
7.4.260.0040.00416.52
7.4.250.0070.00016.37
7.4.240.0030.00516.51
7.4.230.0030.00516.52
7.4.220.0000.00916.52
7.4.210.0080.00716.60
7.4.200.0050.00216.61
7.4.160.0080.01216.42
7.4.140.0080.00917.86
7.4.130.0060.01216.68
7.4.120.0100.00916.44
7.4.110.0090.00916.45
7.4.100.0090.01216.46
7.4.90.0080.01216.52
7.4.80.0080.01119.39
7.4.70.0100.01016.37
7.4.60.0130.00316.30
7.4.50.0070.01016.38
7.4.40.0120.00616.53
7.4.00.0090.00615.22
7.3.330.0030.00313.36
7.3.320.0000.00513.22
7.3.310.0000.00716.44
7.3.300.0030.00316.23
7.3.290.0030.00316.22
7.3.280.0050.01016.38
7.3.260.0110.00916.43
7.3.240.0110.00916.54
7.3.230.0170.00016.60
7.3.210.0070.01016.39
7.3.200.0070.01016.34
7.3.190.0080.01716.53
7.3.180.0080.00816.44
7.3.170.0100.00716.41
7.3.160.0070.01016.27
7.2.330.0120.01316.55
7.2.320.0120.00816.54
7.2.310.0030.01316.39
7.2.300.0160.00416.43
7.2.290.0030.01216.40
7.2.110.0350.00714.31
7.2.100.0320.01014.34
7.2.90.0810.00814.40
7.2.80.0310.01314.52
7.2.70.0800.01014.85
7.2.60.2000.00614.64
7.2.50.2060.00814.82
7.2.40.1880.00814.81
7.2.30.2160.01014.82
7.2.20.1600.01314.69
7.2.10.1790.01114.90
7.2.00.1350.00814.65
7.1.230.0570.01313.86
7.1.220.1940.00813.57
7.1.210.1890.00813.71
7.1.200.0410.01113.76
7.1.190.0470.00613.67
7.1.180.1520.00313.74
7.1.170.0310.00813.73
7.1.160.1960.01113.76
7.1.150.1820.00513.82
7.1.140.1590.01413.66
7.1.130.1690.00913.75
7.1.120.1710.00513.77
7.1.110.1530.01013.84
7.1.100.1610.00513.84
7.1.90.1950.00813.71
7.1.80.1390.00813.79
7.1.70.1500.00813.72
7.1.60.1860.00331.72
7.1.50.2070.00531.79
7.1.40.2000.01431.61
7.1.30.2280.00931.70
7.1.20.2010.00831.89
7.1.10.3230.00913.83
7.1.00.2410.00913.76
5.6.380.0080.00913.84

preferences:
89.55 ms | 1489 KiB | 5 Q