3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Document { // Standard type public string $companyTitleStandard; // Union types public DocumentFieldCompanyTitle|string $companyTitleUnion; } $rp = new ReflectionProperty(Document::class, 'companyTitleUnion'); $unionTypes = array_map(function($type) { return $type->getName(); }, $rp->getType()->getTypes()); var_dump($unionTypes);

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.10.0030.00718.67
8.5.00.0090.01219.90
8.4.150.0030.00014.05
8.4.140.0130.00817.28
8.4.130.0050.00620.46
8.4.120.0120.00824.38
8.4.110.0140.00617.64
8.4.100.0140.00717.79
8.4.90.0140.00620.66
8.4.80.0120.00720.51
8.4.70.0080.00820.51
8.4.60.0130.00820.62
8.4.50.0070.00220.50
8.4.40.0100.01017.49
8.4.30.0130.00620.59
8.4.20.0080.00817.86
8.4.10.0030.00623.87
8.3.280.0130.01118.60
8.3.270.0130.01116.63
8.3.260.0140.00716.39
8.3.250.0130.00519.05
8.3.240.0150.00517.19
8.3.230.0070.00916.63
8.3.220.0040.00418.97
8.3.210.0120.00516.73
8.3.200.0050.00516.54
8.3.190.0090.00917.21
8.3.180.0060.00216.41
8.3.170.0000.00817.13
8.3.160.0100.01018.50
8.3.150.0140.00718.91
8.3.140.0140.00419.17
8.3.130.0050.00318.59
8.3.120.0080.00818.76
8.3.110.0000.01120.94
8.3.100.0040.00424.06
8.3.90.0140.01122.64
8.3.80.0000.01016.63
8.3.70.0060.01018.29
8.3.60.0160.00318.30
8.3.50.0060.00919.98
8.3.40.0110.00420.34
8.3.30.0000.01719.14
8.3.20.0080.00024.18
8.3.10.0070.00024.66
8.3.00.0080.00026.16
8.2.290.0110.00817.00
8.2.280.0080.00918.38
8.2.270.0140.00317.20
8.2.260.0110.00716.92
8.2.250.0120.00316.64
8.2.240.0040.00417.27
8.2.230.0090.00022.58
8.2.220.0000.00937.54
8.2.210.0200.00526.77
8.2.200.0100.00316.34
8.2.190.0150.00016.75
8.2.180.0070.00725.92
8.2.170.0140.00722.96
8.2.160.0000.01422.96
8.2.150.0050.00225.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00026.16
8.2.110.0090.00020.48
8.2.100.0060.00320.53
8.2.90.0360.00517.38
8.1.330.0140.00616.07
8.1.320.0110.00817.91
8.1.310.0000.00716.93
8.1.300.0100.00718.23
8.1.290.0090.00030.84
8.1.280.0100.01025.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0000.01018.43
8.1.230.0070.00318.62
8.1.60.0050.00217.63
8.1.20.0050.00717.63
8.0.190.0030.00416.82
7.4.220.0150.00317.02

preferences:
32.87 ms | 403 KiB | 5 Q