3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { public A|(X&Y) $v; } class C { use A; } $prop = new \ReflectionProperty(C::class, 'v'); $union = $prop->getType(); $types = $union->getTypes(); $intersection = $types[1]; $types = $intersection->getTypes(); var_dump($types);

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.140.0130.00717.50
8.4.130.0100.01117.57
8.4.120.0100.01020.61
8.4.110.0150.00518.97
8.4.100.0070.00417.78
8.4.90.0130.00819.67
8.4.80.0130.00719.51
8.4.70.0140.00717.86
8.4.60.0150.00717.74
8.4.50.0080.00820.77
8.4.40.0130.00620.30
8.4.30.0130.00620.62
8.4.20.0100.01022.73
8.4.10.0060.01323.95
8.3.270.0100.00916.70
8.3.260.0100.00816.42
8.3.250.0130.00518.82
8.3.240.0110.00816.60
8.3.230.0110.00816.56
8.3.220.0120.00616.81
8.3.210.0100.00816.63
8.3.200.0100.00816.25
8.3.190.0130.00718.71
8.3.180.0080.00918.97
8.3.170.0090.00916.99
8.3.160.0080.01118.47
8.3.150.0040.00418.35
8.3.140.0130.00616.62
8.3.130.0030.00518.59
8.3.120.0060.00318.98
8.3.110.0060.00318.13
8.3.100.0040.01118.33
8.3.50.0080.00016.50
8.2.290.0080.01120.82
8.2.280.0080.00716.54
8.2.270.0130.00618.66
8.2.260.0070.00017.11
8.2.250.0140.00716.52
8.2.240.0090.00017.11
8.2.230.0060.00316.31
8.2.220.0060.00316.59
8.2.90.0280.00417.50
8.2.80.0240.00617.29
8.2.70.0310.00317.25
8.2.60.0290.00417.31
8.2.50.0260.00417.25
8.2.40.0190.00717.49
8.2.30.0240.00317.38
8.2.20.0240.00217.63
8.2.10.0200.00817.44
8.2.00.0210.00717.49
8.1.330.0110.00915.73
8.1.320.0110.00915.75
8.1.310.0040.00416.70
8.1.300.0080.00016.73
8.1.220.0170.00416.93
8.1.210.0220.00516.88
8.1.200.0280.00416.81
8.1.190.0240.00516.87
8.1.180.0240.00316.81
8.1.170.0170.01016.94
8.1.160.0200.00716.88
8.1.150.0190.00917.23
8.1.140.0260.00116.99
8.1.130.0250.00217.06
8.1.120.0240.00317.06
8.1.110.0240.00517.05
8.1.100.0280.00316.97
8.1.90.0230.00316.98
8.1.80.0210.00617.06
8.1.70.0220.00417.18
8.1.60.0250.00717.05
8.1.50.0230.00517.24
8.1.40.0230.00517.30
8.1.30.0200.00717.06
8.1.20.0200.00717.24
8.1.10.0230.00417.13
8.1.00.0230.00516.81
8.0.300.0250.00216.42
8.0.290.0160.01116.36
8.0.280.0240.00216.42
8.0.270.0190.00816.61
8.0.260.0210.00516.54
8.0.250.0180.00517.30
8.0.240.0230.00316.44
8.0.230.0240.00116.75
8.0.220.0190.00716.43
8.0.210.0180.00816.36
8.0.200.0160.01016.50
8.0.190.0240.00316.47
8.0.180.0260.00516.33
8.0.170.0190.00616.63
8.0.160.0210.00516.61
8.0.150.0190.00816.49
8.0.140.0190.00616.62
8.0.130.0200.00516.55
8.0.120.0240.00216.63
8.0.110.0230.00316.30
8.0.100.0210.00616.55
8.0.90.0240.00416.56
8.0.80.0250.00316.56
8.0.70.0200.00616.56
8.0.60.0230.00316.56
8.0.50.0240.00216.42
8.0.30.0270.00216.63
8.0.20.0230.00316.49
8.0.10.0220.00216.50

preferences:
31.96 ms | 403 KiB | 5 Q