3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Test: string { case AUTHENTICATED = 'authenticated'; case COURSES_ADMIN = 'courses.admin'; case BUNDLES_ADMIN = 'bundles.admin'; case COURSES_REPORTING_ACCESS = 'courses-reporting.access'; case B2B_DASHBOARD_ACCESS = 'b2b-dashboard.access'; case INSTRUCTORS_ADMIN = 'instructors.admin'; case USERS_ADMIN = 'users.admin'; case COUPONS_ADMIN = 'coupons.admin'; } $data = [ Test::COURSES_ADMIN, Test::COURSES_REPORTING_ACCESS, Test::BUNDLES_ADMIN, Test::USERS_ADMIN, Test::B2B_DASHBOARD_ACCESS, Test::B2B_DASHBOARD_ACCESS, Test::INSTRUCTORS_ADMIN, Test::INSTRUCTORS_ADMIN, Test::COUPONS_ADMIN, Test::AUTHENTICATED, ]; $data = array_unique($data, flags: SORT_REGULAR); var_dump($data);

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.0100.01023.97
8.4.110.0050.00318.96
8.4.100.0080.01218.78
8.4.90.0070.01020.59
8.4.80.0120.00818.68
8.4.70.0120.00918.78
8.4.60.0090.01120.76
8.4.50.0140.01118.48
8.4.40.0100.01019.72
8.4.30.0170.00318.43
8.4.20.0040.00422.38
8.4.10.0090.00024.08
8.3.250.0110.00818.69
8.3.240.0140.00518.99
8.3.230.0050.00316.62
8.3.220.0080.01019.16
8.3.210.0030.00516.74
8.3.200.0040.00516.62
8.3.190.0070.00918.83
8.3.180.0110.00718.86
8.3.170.0090.00918.95
8.3.160.0070.01016.99
8.3.150.0120.00617.19
8.3.140.0040.00416.63
8.3.130.0090.00618.25
8.3.120.0190.00418.45
8.3.110.0080.00022.58
8.3.100.0290.00937.54
8.3.90.0390.00737.54
8.3.80.0310.00937.54
8.3.70.0330.00437.54
8.3.60.0220.00524.07
8.3.50.0260.00837.54
8.3.40.0280.00537.54
8.3.30.0300.00537.54
8.3.20.0210.00831.60
8.3.10.0260.00537.54
8.3.00.0240.00637.54
8.2.290.0120.00720.49
8.2.280.0110.00818.51
8.2.270.0070.01117.45
8.2.260.0040.00416.91
8.2.250.0040.00418.50
8.2.240.0060.00317.27
8.2.230.0030.00620.94
8.2.220.0230.00837.54
8.2.210.0270.00337.54
8.2.200.0310.00237.54
8.2.190.0250.00837.54
8.2.180.0260.00637.54
8.2.170.0220.00237.54
8.2.160.0180.00837.54
8.2.150.0210.00337.54
8.2.140.0290.00537.54
8.2.130.0280.00737.54
8.2.120.0290.00737.54
8.2.110.0280.00837.54
8.2.100.0310.00737.54
8.2.90.0300.00537.54
8.2.80.0280.00637.54
8.2.70.0270.00437.54
8.2.60.0080.00721.14
8.2.50.0170.00525.76
8.2.40.0190.00630.86
8.2.30.0230.00530.77
8.2.20.0230.00531.35
8.2.10.0230.00530.77
8.2.00.0250.00430.73
8.1.330.0140.00521.76
8.1.320.0120.00718.02
8.1.310.0120.00616.73
8.1.300.0100.00018.63
8.1.290.0240.01037.54
8.1.280.0310.00337.54
8.1.270.0210.00537.54
8.1.260.0160.00537.54
8.1.250.0170.00437.54
8.1.240.0150.00437.54
8.1.230.0190.00937.54
8.1.220.0270.00637.54
8.1.210.0280.01037.54
8.1.200.0230.00937.54
8.1.190.0160.00330.81
8.1.180.0240.00430.73
8.1.170.0240.00430.77
8.1.160.0280.00530.65
8.1.150.0230.01030.72
8.1.140.0180.01030.77
8.1.130.0250.00630.61
8.1.120.0220.00931.33
8.1.110.0150.00522.32
8.1.100.0190.00727.42
8.1.90.0180.01027.38
8.1.80.0230.00627.40
8.1.70.0220.00527.47
8.1.60.0240.00827.53
8.1.50.0220.00627.49
8.1.40.0220.00727.46
8.1.30.0260.00427.44
8.1.20.0200.00727.58
8.1.10.0240.00827.48
8.1.00.0220.01027.42
8.0.300.0300.00837.54
8.0.290.0300.00737.54
8.0.280.0210.01030.53
8.0.270.0240.00630.53
8.0.260.0260.00430.53
8.0.250.0250.00930.53
8.0.240.0150.00523.68
8.0.230.0240.00227.15
8.0.220.0200.00627.10
8.0.210.0170.00527.08
8.0.200.0170.00827.11
8.0.190.0170.00827.09
8.0.180.0190.00727.10
8.0.170.0210.00627.11
8.0.160.0170.00827.08
8.0.150.0170.00727.10
8.0.140.0200.00727.06
8.0.130.0230.00627.09
8.0.120.0170.00727.10
8.0.110.0150.01027.07
8.0.100.0150.00727.05
8.0.90.0180.00927.11
8.0.80.0210.00427.06
8.0.70.0210.00427.09
8.0.60.0200.00727.12
8.0.50.0200.00627.54
8.0.30.0210.00527.09
8.0.20.0200.00627.10
8.0.10.0190.00827.52
7.4.330.0220.00730.53
7.4.320.0200.00726.98
7.4.300.0190.00726.98
7.4.290.0230.00426.96
7.4.280.0230.00326.98
7.4.270.0220.00726.96
7.4.260.0240.00426.97
7.4.250.0180.00927.00
7.4.240.0140.00726.96
7.4.230.0200.00427.00
7.4.220.0160.00726.97
7.4.210.0180.00626.96
7.4.200.0190.00726.99
7.4.190.0200.00527.02
7.4.180.0220.00427.01
7.4.160.0150.00926.99
7.4.150.0180.00626.95
7.4.140.0210.00326.96
7.4.130.0200.00626.90
7.4.120.0220.00626.94
7.4.110.0180.00826.97
7.4.100.0220.00427.00
7.4.90.0190.00526.92
7.4.80.0150.00926.94
7.4.70.0190.00526.96
7.4.60.0150.00926.97
7.4.50.0150.00826.95
7.4.40.0200.00326.94
7.4.30.0200.00426.95
7.4.20.0170.00726.94
7.4.10.0190.00726.97
7.4.00.0230.00426.95

preferences:
27.94 ms | 403 KiB | 5 Q