3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Foo { case Foo; case Bar; } foreach (Foo as $foo) { var_dump($foo); }

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.0080.00918.92
8.5.20.0100.00819.36
8.5.10.0110.00616.43
8.5.00.0110.01020.02
8.4.180.0110.00921.93
8.4.170.0150.00723.79
8.4.160.0130.00823.73
8.4.150.0090.00416.93
8.4.140.0180.01117.57
8.4.130.0130.00717.91
8.4.120.0100.00720.39
8.4.110.0100.00922.36
8.4.100.0100.01018.10
8.4.90.0090.01020.39
8.4.80.0050.00420.55
8.4.70.0040.00618.98
8.4.60.0050.00320.66
8.4.50.0060.01324.37
8.4.40.0160.00318.08
8.4.30.0040.00420.34
8.4.20.0100.01017.79
8.4.10.0030.00619.59
8.3.300.0130.00720.46
8.3.290.0110.01320.79
8.3.280.0110.00918.47
8.3.270.0130.00616.77
8.3.260.0090.01116.54
8.3.250.0110.00818.96
8.3.240.0120.00716.77
8.3.230.0130.00616.69
8.3.220.0050.00318.82
8.3.210.0070.00116.64
8.3.200.0040.00516.55
8.3.190.0120.00917.05
8.3.180.0120.00718.55
8.3.170.0090.00917.02
8.3.160.0090.00918.57
8.3.150.0140.00417.23
8.3.140.0090.00616.82
8.3.130.0060.00318.57
8.3.120.0110.00016.72
8.3.110.0060.00316.74
8.3.50.0070.01016.84
8.2.300.0120.00723.97
8.2.290.0110.00820.51
8.2.280.0100.00720.28
8.2.270.0070.01416.98
8.2.260.0110.00018.85
8.2.250.0100.00016.75
8.2.240.0060.01016.54
8.2.230.0060.00316.82
8.1.340.0120.00917.76
8.1.330.0080.01021.78
8.1.320.0080.01117.69
8.1.310.0070.00016.56
8.1.300.0090.00916.15
8.0.130.0100.01016.70
8.0.120.0110.00716.73
8.0.110.0000.01616.81
8.0.100.0160.00016.73
8.0.90.0130.01016.79
8.0.80.0150.00516.84
8.0.70.0140.00616.77
8.0.60.0150.00516.68
8.0.50.0160.00416.82
8.0.30.0180.00216.77
8.0.20.0170.00316.82
8.0.10.0190.00516.89
8.0.00.0000.01116.91
7.4.260.0110.00316.46
7.4.250.0170.00616.43
7.4.240.0200.00016.27
7.4.230.0170.00616.33
7.4.220.0170.00316.33
7.4.210.0180.00016.46
7.4.200.0150.00516.37
7.4.190.0120.00816.32
7.4.180.0160.00316.43
7.4.160.0170.00316.30
7.4.150.0150.00416.39
7.4.140.0200.00016.28
7.4.130.0160.00416.22
7.4.120.0150.00416.34
7.4.110.0190.00016.25
7.4.100.0190.00016.41
7.4.90.0160.00316.27
7.4.80.0050.01416.21
7.4.70.0180.00016.16
7.4.60.0180.00016.25
7.4.50.0150.00316.25
7.4.40.0190.00016.03
7.4.30.0170.00416.04
7.4.20.0130.00416.13
7.4.10.0100.00916.23
7.4.00.0120.00616.26
7.3.330.0000.00715.98
7.3.320.0170.00416.12
7.3.310.0100.01016.11
7.3.300.0130.00616.23
7.3.290.0150.00516.00
7.3.280.0160.00316.04
7.3.270.0130.00716.16
7.3.260.0130.00615.98
7.3.250.0110.00816.08
7.3.240.0130.00616.17
7.3.230.0170.00316.26
7.3.220.0120.00315.93
7.3.210.0080.00916.07
7.3.200.0110.00416.08
7.3.190.0140.00316.06
7.3.180.0170.00416.16
7.3.170.0200.00016.24
7.3.160.0100.00715.93
7.3.150.0100.00616.00
7.3.140.0170.00316.11
7.3.130.0210.00016.02
7.3.120.0050.01016.00
7.3.110.0100.00315.84
7.3.100.0150.00315.85
7.3.90.0170.00316.34
7.3.80.0130.00416.01
7.3.70.0170.00416.02
7.3.60.0160.00416.15
7.3.50.0080.01216.05
7.3.40.0120.00716.24
7.3.30.0220.00016.14
7.3.20.0150.00818.07
7.3.10.0220.00017.84
7.3.00.0160.00717.96

preferences:
78.86 ms | 1038 KiB | 5 Q