3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); enum A: string { case Foo = 'foo'; case Bar = 'bar'; } var_dump(array_combine( array_column(A::cases(), 'value'), array_column(A::cases(), 'name'), ));

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.4.120.0150.00520.68
8.4.110.0080.00418.82
8.4.100.0020.00718.69
8.4.90.0160.00420.24
8.4.80.0040.00518.79
8.4.70.0110.00618.87
8.4.60.0120.00918.78
8.4.50.0170.00418.71
8.4.40.0170.00317.42
8.4.30.0000.00820.52
8.4.20.0070.01319.31
8.4.10.0080.00019.16
8.3.250.0110.00517.42
8.3.240.0090.01016.56
8.3.230.0110.01116.57
8.3.220.0030.00519.16
8.3.210.0100.00816.65
8.3.200.0050.00316.41
8.3.190.0110.00816.83
8.3.180.0050.00518.79
8.3.170.0120.00616.54
8.3.160.0120.00618.23
8.3.150.0040.00416.65
8.3.140.0100.01020.72
8.3.130.0040.00418.42
8.3.120.0120.00318.82
8.3.110.0030.00518.21
8.3.100.0150.00018.21
8.3.90.0430.00416.50
8.3.80.0440.00616.34
8.3.70.0300.01516.25
8.3.60.0460.00416.25
8.3.50.0430.00716.38
8.3.40.0350.00417.38
8.3.30.0300.00917.38
8.3.20.0250.01617.11
8.3.10.0390.00316.88
8.3.00.0330.00717.10
8.2.290.0130.00616.80
8.2.280.0120.00718.46
8.2.270.0120.00616.50
8.2.260.0120.00618.04
8.2.250.0050.00318.52
8.2.240.0080.00816.93
8.2.230.0100.00618.24
8.2.220.0050.00518.19
8.2.210.0240.01216.14
8.2.200.0260.01316.38
8.2.190.0330.00316.25
8.2.180.0180.01816.13
8.2.170.0520.00417.50
8.2.160.0350.00917.50
8.2.150.0300.01017.38
8.2.140.0340.01017.50
8.2.130.0340.01117.36
8.2.120.0300.00617.38
8.2.110.0250.00017.47
8.2.100.0130.00717.38
8.2.90.0130.00717.36
8.2.80.0150.00417.13
8.2.70.0100.00317.25
8.2.60.0060.00617.50
8.2.50.0060.00617.50
8.2.40.0040.01117.49
8.2.30.0370.00317.37
8.2.20.0290.01117.25
8.2.10.0390.01017.34
8.2.00.0300.01217.25
8.1.330.0140.00516.22
8.1.320.0090.01116.11
8.1.310.0080.00016.31
8.1.300.0160.00317.97
8.1.290.0340.00615.63
8.1.280.0290.01216.25
8.1.270.0380.00617.13
8.1.260.0350.00317.11
8.1.250.0340.01017.11
8.1.240.0270.00817.23
8.1.230.0320.00017.00
8.1.220.0350.00316.99
8.1.210.0310.00717.23
8.1.200.0360.00317.22
8.1.190.0220.01216.99
8.1.180.0320.00716.98
8.1.170.0280.00717.35
8.1.160.0250.00717.21
8.1.150.0230.01017.13
8.1.140.0310.01016.88
8.1.130.0300.00816.88
8.1.120.0240.01517.22
8.1.110.0310.00617.13
8.1.100.0260.01116.98
8.1.90.0350.00417.22
8.1.80.0390.00016.98
8.1.70.0350.00417.25
8.1.60.0320.01117.13
8.1.50.0290.01317.23
8.1.40.0380.00317.13
8.1.30.0360.00317.46
8.1.20.0390.00617.23
8.1.10.0110.01117.25
8.1.00.0320.01316.63

preferences:
48.64 ms | 403 KiB | 5 Q