3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Testing { public string $ok_public; protected string $ok_protected; private string $ok_private; public protected(set) string $wrong_public_protected_set; public private(set) string $wrong_public_private_set; protected private(set) string $wrong_protected_private_set; } $r = new ReflectionClass('Testing'); foreach($r->getProperties() as $rp) { echo $rp->getName() . ": "; echo $rp->getModifiers() . ": "; echo implode(", ", Reflection::getModifierNames($rp->getModifiers())) . "\n"; }

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.0450.00617.29
8.4.110.0400.00717.40
8.4.100.0450.00917.45
8.4.90.0290.00717.53
8.4.80.0410.00917.48
8.4.70.0370.01117.60
8.4.60.0380.01117.76
8.4.50.0370.01117.73
8.4.40.0470.00817.46
8.4.30.0400.00617.46
8.4.20.0460.00817.48
8.4.10.0440.00917.30
8.3.250.0360.00716.76
8.3.240.0370.00616.26
8.3.230.0350.01016.59
8.3.220.0400.00816.53
8.3.210.0370.01016.55
8.3.200.0490.00316.41
8.3.190.0220.00416.44
8.3.180.0160.00616.59
8.3.170.0190.00416.67
8.3.160.0210.00316.47
8.3.150.0260.00816.06
8.3.140.0410.00716.38
8.3.130.0310.00816.45
8.3.120.0370.00716.40
8.3.110.0350.01016.28
8.3.100.0460.00816.21
8.3.90.0420.00616.20
8.3.80.0400.00916.17
8.3.70.0410.00916.45
8.3.60.0430.00716.35
8.3.50.0280.00316.42
8.3.40.0430.00817.12
8.3.30.0400.00817.18
8.3.20.0400.00917.36
8.3.10.0320.00917.27
8.3.00.0370.01017.45
8.2.290.0250.00816.61
8.2.280.0190.00516.77
8.2.270.0150.00316.75
8.2.260.0150.00416.60
8.2.250.0110.00816.57
8.2.240.0150.00416.43
8.2.230.0220.00516.39
8.2.220.0290.01116.61
8.2.210.0320.00916.45
8.2.200.0350.00816.45
8.2.190.0310.00816.58
8.2.180.0310.00516.51
8.2.170.0360.00717.46
8.2.160.0290.00717.66
8.2.150.0380.00817.39
8.2.140.0330.00417.27
8.2.130.0340.00717.32
8.2.120.0350.00617.25
8.2.110.0360.00817.12
8.2.100.0410.00617.45
8.2.90.0390.00517.60
8.2.80.0360.00817.38
8.2.70.0360.00917.17
8.2.60.0250.00617.45
8.2.50.0240.00217.05
8.2.40.0390.00717.50
8.2.30.0360.00617.43
8.2.20.0240.01017.22
8.2.10.0270.00517.14
8.2.00.0300.01017.16

preferences:
134.55 ms | 993 KiB | 7 Q