3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); enum Foo: int { case Bar = 0; } var_dump(Foo::from('0e0'));

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.00719.03
8.5.20.0130.00516.82
8.5.10.0080.00616.92
8.5.00.0120.01019.81
8.4.180.0110.01021.96
8.4.170.0090.01222.48
8.4.160.0110.01022.20
8.4.150.0100.00416.87
8.4.140.0100.01117.64
8.4.130.0070.00217.71
8.4.120.0090.00924.20
8.4.110.0050.00522.63
8.4.100.0130.00717.81
8.4.90.0100.01218.57
8.4.80.0130.00717.95
8.4.70.0110.00818.04
8.4.60.0130.00817.75
8.4.50.0110.01317.85
8.4.40.0080.00317.65
8.4.30.0120.00920.07
8.4.20.0130.00618.24
8.4.10.0160.00325.82
8.3.300.0060.00420.84
8.3.290.0220.00920.56
8.3.280.0130.00920.17
8.3.270.0130.00716.67
8.3.260.0130.00716.61
8.3.250.0130.00619.12
8.3.240.0100.01017.37
8.3.230.0040.00416.82
8.3.220.0050.00916.97
8.3.210.0030.00616.62
8.3.200.0120.00716.73
8.3.190.0100.01016.90
8.3.180.0130.00616.73
8.3.170.0110.00716.87
8.3.160.0090.00916.68
8.3.150.0060.01317.29
8.3.140.0040.00416.96
8.3.130.0030.00618.77
8.3.120.0060.00320.78
8.3.110.0060.00322.58
8.3.100.0040.00422.58
8.3.90.0040.00422.58
8.3.50.0090.00022.58
8.2.300.0110.01122.29
8.2.290.0110.00720.27
8.2.280.0130.00918.41
8.2.270.0060.01216.80
8.2.260.0090.00618.55
8.2.250.0080.00019.09
8.2.240.0040.00417.13
8.2.230.0090.00022.58
8.2.220.0130.00622.58
8.2.210.0080.00022.58
8.1.340.0080.01221.57
8.1.330.0120.00621.91
8.1.320.0100.00916.08
8.1.310.0080.00018.49
8.1.300.0060.01017.95
8.0.10.0050.01716.94
8.0.00.0110.01417.00
7.4.140.0100.01016.30
7.4.130.0140.01116.22
7.4.120.0110.00616.27
7.4.110.0070.01016.26
7.4.100.0170.00716.34
7.4.90.0090.00916.21
7.4.80.0120.00916.28
7.4.70.0070.01116.28
7.4.60.0100.01716.32
7.4.50.0140.00316.17
7.4.40.0090.01116.47
7.4.30.0030.01616.42
7.4.20.0130.01016.24
7.4.10.0120.00616.34
7.4.00.0110.01216.41
7.3.260.0110.00716.25
7.3.250.0080.01216.17
7.3.240.0080.00816.39
7.3.230.0120.01216.00
7.3.220.0150.00316.18
7.3.210.0070.01416.20
7.3.200.0130.00416.18
7.3.190.0070.01116.06
7.3.180.0070.01016.41
7.3.170.0160.00416.20
7.3.160.0160.01316.25
7.3.150.0180.00016.05
7.3.140.0170.00016.29
7.3.130.0110.00716.16
7.3.120.0150.00616.21
7.3.110.0060.01216.09
7.3.100.0110.00816.34
7.3.90.0060.01316.17
7.3.80.0050.01316.19
7.3.70.0120.00616.10
7.3.60.0110.00816.27
7.3.50.0150.00316.14
7.3.40.0070.01116.13
7.3.30.0080.01716.17
7.3.20.0250.03816.16
7.3.10.0030.01616.20
7.3.00.0030.01616.14

preferences:
43.13 ms | 931 KiB | 5 Q