3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum TestA { case A1; case A2; } enum TestB { case B1; case B2; } $value = TestB::B1; echo "{($value instanceof TestB ? 'B' : 'A')}";

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.20.0100.01021.64
8.4.10.0130.00717.80
8.3.150.0120.00316.89
8.3.140.0350.01016.55
8.3.130.0120.00616.73
8.3.120.0110.00716.59
8.3.110.0330.00716.40
8.3.100.0380.00816.75
8.3.90.0340.01016.26
8.3.80.0380.00716.59
8.3.70.0400.00316.23
8.3.60.0380.00716.71
8.3.50.0420.00316.35
8.3.40.0420.00417.30
8.3.30.0460.00417.43
8.3.20.0370.00717.21
8.3.10.0280.00917.32
8.3.00.0120.00817.41
8.2.270.0090.00916.88
8.2.260.0240.01416.52
8.2.250.0330.00716.71
8.2.240.0320.00316.59
8.2.230.0240.00716.46
8.2.220.0340.00316.82
8.2.210.0290.00816.66
8.2.200.0250.01216.49
8.2.190.0240.01416.37
8.2.180.0340.00316.38
8.2.170.0280.00817.78
8.2.160.0310.01017.76
8.2.150.0410.00317.52
8.2.140.0340.00917.39
8.2.130.0330.00917.34
8.2.120.0350.00617.42
8.2.110.0340.00717.58
8.2.100.0390.00017.63
8.2.90.0370.00317.64
8.2.80.0360.00417.64
8.2.70.0320.00717.17
8.2.60.0300.00917.27
8.2.50.0240.01517.64
8.2.40.0280.00817.72
8.2.30.0310.00617.57
8.2.20.0320.00317.39
8.2.10.0310.00817.57
8.2.00.0290.00916.97

preferences:
35.05 ms | 403 KiB | 5 Q