3v4l.org

run code in 500+ PHP versions simultaneously
<?php enum A { case foo; const bar = self::foo; } var_dump(A::bar instanceof A); // true

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.00821.23
8.5.20.0060.01120.22
8.5.10.0090.01221.96
8.5.00.0150.00619.79
8.4.180.0140.01119.63
8.4.170.0050.00523.92
8.4.160.0130.00923.75
8.4.150.0090.00416.79
8.4.140.0160.00917.53
8.4.130.0130.00717.91
8.4.120.0100.00922.51
8.4.110.0120.00822.29
8.4.100.0130.00817.80
8.4.90.0130.00717.81
8.4.80.0160.00717.84
8.4.70.0090.00617.71
8.4.60.0070.00217.62
8.4.50.0120.00817.72
8.4.40.0100.01019.54
8.4.30.0100.01020.49
8.4.20.0070.01119.55
8.4.10.0130.00623.55
8.3.300.0120.00820.86
8.3.290.0130.00820.85
8.3.280.0100.01018.38
8.3.270.0130.00816.52
8.3.260.0100.01016.63
8.3.250.0110.00818.66
8.3.240.0060.00216.63
8.3.230.0090.01116.49
8.3.220.0100.00817.26
8.3.210.0130.00516.59
8.3.200.0110.00819.04
8.3.190.0110.00718.37
8.3.180.0130.00516.71
8.3.170.0120.00618.93
8.3.160.0150.00318.50
8.3.150.0110.00416.48
8.3.140.0070.01016.51
8.3.130.0060.00316.71
8.3.120.0030.00618.83
8.3.110.0140.00418.26
8.3.100.0070.00418.30
8.3.50.0120.00618.43
8.2.300.0110.00820.41
8.2.290.0050.01120.45
8.2.280.0120.00818.36
8.2.270.0130.00318.64
8.2.260.0080.00017.38
8.2.250.0120.00618.45
8.2.240.0060.00318.73
8.2.230.0060.00318.18
8.2.220.0140.00416.64
8.2.30.0060.00920.46
8.2.20.0090.00020.53
8.2.10.0040.01318.73
8.2.00.0080.00818.65
8.1.340.0090.01021.36
8.1.330.0120.00716.49
8.1.320.0140.00515.92
8.1.310.0120.00616.66
8.1.300.0060.00316.25
8.1.160.0000.00818.75
8.1.150.0100.00718.64
8.1.140.0080.00818.49
8.1.130.0100.00718.58
8.1.120.0160.00018.63
8.1.110.0140.00418.51
8.1.100.0120.00618.69
8.1.90.0090.00918.61
8.1.80.0100.00718.64
8.1.70.0130.00418.63
8.1.60.0190.00318.77
8.1.50.0090.01218.75
8.1.40.0160.00618.76
8.1.30.0170.00318.82
8.1.20.0180.00418.73
8.1.10.0060.01318.66
8.1.00.0120.00618.58
8.0.280.0080.00817.95
8.0.270.0040.01317.93
8.0.260.0110.00717.88
8.0.250.0090.00917.95
8.0.240.0110.00217.89
8.0.230.0130.00218.02
8.0.220.0120.00417.91
8.0.210.0130.00017.85
8.0.200.0140.00317.96
8.0.190.0120.00418.03
8.0.180.0120.00018.00
8.0.170.0110.00418.03
8.0.160.0150.00018.02
8.0.150.0170.00017.96
8.0.140.0130.00317.96
8.0.130.0120.00317.96
8.0.120.0180.00017.84
8.0.110.0140.00317.82
8.0.100.0110.00718.02
8.0.90.0070.01017.88
8.0.80.0120.00617.96
8.0.70.0110.00417.96
8.0.60.0120.00317.88
8.0.50.0120.00317.80
8.0.30.0170.00018.07
8.0.20.0070.01018.05
8.0.10.0090.00718.02

preferences:
34 ms | 923 KiB | 5 Q