3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Department { case SPORTING; case HOME; case ELECTRONICS; case APPAREL; } class Product { public function __construct(public string $type, public Department $department) { } } $sporting = new Product('Ball', Department::SPORTING); var_dump($sporting);

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.10.0090.00818.66
8.5.00.0170.00520.14
8.4.150.0020.00014.05
8.4.140.0150.00717.60
8.4.130.0030.00618.60
8.4.120.0020.00619.31
8.4.110.0140.00622.52
8.4.100.0140.00717.83
8.4.90.0090.00820.57
8.4.80.0120.00718.97
8.4.70.0120.01120.55
8.4.60.0080.01218.82
8.4.50.0120.00821.65
8.4.40.0130.01017.80
8.4.30.0100.00018.54
8.4.20.0080.00017.90
8.4.10.0030.00619.59
8.3.280.0110.00918.34
8.3.270.0090.01216.68
8.3.260.0100.00816.66
8.3.250.0030.00516.81
8.3.240.0140.00616.48
8.3.230.0010.00716.64
8.3.220.0050.00319.18
8.3.210.0160.00516.52
8.3.200.0060.00316.76
8.3.190.0050.00619.02
8.3.180.0100.00816.77
8.3.170.0050.00316.61
8.3.160.0000.00816.82
8.3.150.0040.01517.15
8.3.140.0090.00617.35
8.3.130.0130.00618.39
8.3.120.0040.01220.75
8.3.110.0090.00022.58
8.3.100.0030.00622.58
8.3.90.0070.01022.58
8.3.50.0050.00322.58
8.2.290.0160.00716.82
8.2.280.0060.00819.82
8.2.270.0200.00016.70
8.2.260.0080.00819.05
8.2.250.0050.00316.85
8.2.240.0120.00617.16
8.2.230.0030.00622.58
8.2.220.0090.00022.58
8.2.210.0050.00322.58
8.1.330.0120.00716.20
8.1.320.0130.00616.23
8.1.310.0070.00716.77
8.1.300.0120.00317.75
8.1.10.0050.00317.46
8.1.00.0000.00817.49
8.0.140.0000.00716.78
8.0.130.0000.00716.78
8.0.120.0000.00716.84
8.0.110.0020.00516.88
8.0.100.0050.00316.92
8.0.90.0000.00716.84
8.0.80.0000.00816.92
8.0.70.0050.00316.75
8.0.60.0060.00316.83
8.0.50.0030.00716.79
8.0.30.0000.00716.86
8.0.20.0050.00316.93
8.0.10.0000.00816.89
7.4.270.0070.00016.34
7.4.260.0080.00016.34
7.4.250.0030.00316.32
7.4.240.0070.00016.39
7.4.230.0000.00716.38
7.4.220.0070.00016.32
7.4.210.0000.00816.43
7.4.200.0030.00316.43
7.4.190.0040.00416.32
7.4.180.0030.00316.39
7.4.160.0060.00016.32
7.4.150.0030.00316.24
7.4.140.0070.00016.35
7.4.130.0040.00416.20
7.4.120.0000.00716.23
7.4.110.0050.00316.26
7.4.100.0000.00716.24
7.4.90.0070.00016.27
7.4.80.0040.00416.25
7.4.70.0070.00016.25
7.4.60.0000.00716.27
7.4.50.0000.00716.25
7.4.40.0030.00316.23
7.4.30.0000.00616.23
7.4.20.0050.00216.13
7.4.10.0000.00716.12
7.4.00.0030.00316.25

preferences:
73.07 ms | 403 KiB | 5 Q