3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Enum { public function __construct(string ...$params) { var_dump($params); } } class Struct { private const STATUS = ['NEW', 'OCCUPIED', 'RESERVED']; public function getStatusEnum() { return static::STATUS; } }

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.0130.00316.63
8.3.50.0040.01116.50
8.3.40.0140.00718.57
8.3.30.0030.01218.46
8.3.20.0030.00520.38
8.3.10.0040.00423.41
8.3.00.0030.00623.48
8.2.180.0070.01018.29
8.2.170.0110.00422.96
8.2.160.0110.00420.47
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0040.00421.18
8.2.120.0120.00326.35
8.2.110.0110.00020.56
8.2.100.0110.00017.59
8.2.90.0000.00819.14
8.2.80.0080.00017.97
8.2.70.0030.00717.13
8.2.60.0070.00317.80
8.2.50.0040.00418.07
8.2.40.0050.00322.33
8.2.30.0000.00720.54
8.2.20.0080.00017.57
8.2.10.0000.00817.99
8.2.00.0070.00418.00
8.1.280.0140.00725.92
8.1.270.0040.00420.09
8.1.260.0070.00728.09
8.1.250.0000.00828.09
8.1.240.0060.00323.85
8.1.230.0080.00320.94
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0100.00017.23
8.1.190.0080.00017.13
8.1.180.0040.00418.10
8.1.170.0050.00318.60
8.1.160.0000.00720.62
8.1.150.0000.01118.85
8.1.140.0030.00519.37
8.1.130.0070.00017.62
8.1.120.0040.00417.32
8.1.110.0000.00717.20
8.1.100.0080.00017.22
8.1.90.0040.00417.39
8.1.80.0030.00517.30
8.1.70.0040.00817.32
8.1.60.0000.00717.44
8.1.50.0060.00317.28
8.1.40.0060.00317.42
8.1.30.0050.00317.49
8.1.20.0000.00717.47
8.1.10.0050.00217.43
8.1.00.0020.00517.28
8.0.300.0030.00518.77
8.0.290.0040.00416.58
8.0.280.0070.00018.24
8.0.270.0030.00317.17
8.0.260.0000.00617.07
8.0.250.0000.00616.85
8.0.240.0000.00716.89
8.0.230.0070.00016.71
8.0.220.0040.00416.66
8.0.210.0030.00316.79
8.0.200.0030.00316.75
8.0.190.0000.00816.86
8.0.180.0000.00716.79
8.0.170.0000.00716.77
8.0.160.0000.00716.68
8.0.150.0040.00416.83
8.0.140.0000.01016.66
8.0.130.0040.00413.13
8.0.120.0040.00416.72
8.0.110.0000.00716.81
8.0.100.0040.00416.57
8.0.90.0030.00516.79
8.0.80.0030.01216.71
8.0.70.0040.00416.82
8.0.60.0000.00716.67
8.0.50.0050.00316.80
8.0.30.0120.00916.77
8.0.20.0090.00917.40
8.0.10.0050.00216.89
8.0.00.0080.01016.66
7.4.330.0000.00516.70
7.4.320.0060.00016.45
7.4.300.0020.00516.38
7.4.290.0030.00316.41
7.4.280.0030.00316.48
7.4.270.0000.00716.46
7.4.260.0000.00816.45
7.4.250.0030.00516.50
7.4.240.0060.00116.48
7.4.230.0070.00016.28
7.4.220.0090.00916.47
7.4.210.0030.01216.46
7.4.200.0000.00716.20
7.4.160.0080.00816.21
7.4.150.0130.00317.40
7.4.140.0090.01217.86
7.4.130.0100.00916.38
7.4.120.0080.01216.37
7.4.110.0100.00716.32
7.4.100.0120.00616.32
7.4.90.0120.00916.23
7.4.80.0030.01419.39
7.4.70.0030.01416.47
7.4.60.0030.01216.40
7.4.50.0040.01116.45
7.4.40.0040.01616.53
7.4.30.0100.00716.31
7.3.330.0050.00013.17
7.3.320.0050.00013.04
7.3.310.0000.00716.20
7.3.300.0000.00716.09
7.3.290.0120.00416.11
7.3.280.0110.00716.18
7.3.270.0160.00017.40
7.3.260.0110.00616.43
7.3.250.0100.00616.23
7.3.240.0110.00516.26
7.3.230.0070.01016.39
7.3.210.0140.00316.36
7.3.200.0060.01016.16
7.3.190.0070.01016.13
7.3.180.0100.01016.30
7.3.170.0160.00616.34
7.3.160.0060.01116.46
7.2.330.0030.01516.33
7.2.320.0110.01116.27
7.2.310.0140.00316.54
7.2.300.0100.01316.32
7.2.290.0100.01316.54
7.1.00.0070.07322.54
7.0.00.0030.04320.09
5.6.160.0030.06020.47
5.6.150.0130.07018.16
5.6.140.0170.05718.18
5.6.130.0130.08018.23
5.6.120.0030.08020.99
5.6.110.0170.07321.00
5.6.100.0100.06021.13
5.6.90.0030.06321.04
5.6.80.0100.06720.51
5.5.300.0030.05317.95
5.5.290.0070.03717.94
5.5.280.0100.07720.88
5.5.270.0030.06320.73
5.5.260.0100.08020.76
5.5.250.0130.07720.69
5.5.240.0130.03020.37

preferences:
34.18 ms | 400 KiB | 5 Q