3v4l.org

run code in 500+ PHP versions simultaneously
<?php class MyDTO{ public ?int $propA; public ?int $propB; } $dto = new MyDTO(); $dto->propA = null; echo (new ReflectionProperty(MyDTO::class, 'propB'))->isInitialized($dto) ? 'init' : 'no-init';

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.90.0050.00417.69
8.5.80.0080.00517.69
8.5.70.0080.00417.74
8.5.60.0030.00417.83
8.5.50.0050.00717.67
8.5.40.0060.00218.59
8.5.30.0080.00719.73
8.5.20.0090.00419.24
8.5.10.0100.00617.24
8.5.00.0130.00818.16
8.4.240.0160.00819.47
8.4.230.0110.00519.52
8.4.220.0140.00919.50
8.4.210.0160.00620.38
8.4.200.0130.00719.58
8.4.190.0070.00619.59
8.4.180.0060.00520.53
8.4.170.0120.00419.99
8.4.160.0160.00921.68
8.4.150.0120.00517.82
8.4.140.0130.00817.48
8.4.130.0110.01017.69
8.4.120.0120.00719.28
8.4.110.0110.00820.12
8.4.100.0110.00718.64
8.4.90.0160.00720.13
8.4.80.0150.00719.25
8.4.70.0130.00718.78
8.4.60.0120.00718.39
8.4.50.0150.00517.85
8.4.40.0100.01117.71
8.4.30.0110.01118.30
8.4.20.0160.00618.64
8.4.10.0120.00518.74
8.3.330.0110.00718.34
8.3.320.0130.01018.33
8.3.310.0160.00618.37
8.3.300.0140.00819.51
8.3.290.0150.00719.43
8.3.280.0160.00619.08
8.3.270.0130.00916.60
8.3.260.0140.00816.53
8.3.250.0160.00517.62
8.3.240.0120.00416.53
8.3.230.0090.00716.61
8.3.220.0110.00917.81
8.3.210.0090.00716.58
8.3.200.0120.00716.56
8.3.190.0130.00817.06
8.3.180.0110.01016.59
8.3.170.0160.00518.51
8.3.160.0140.00116.93
8.3.150.0120.00716.92
8.3.140.0100.00716.89
8.3.130.0060.00917.43
8.3.120.0140.00718.70
8.3.110.0100.00718.77
8.3.100.0110.00520.33
8.3.90.0100.00621.75
8.3.80.0110.00617.52
8.3.70.0180.00916.56
8.3.60.0110.00617.54
8.3.50.0120.00616.59
8.3.40.0220.00417.67
8.3.30.0220.00317.92
8.3.20.0190.00517.68
8.3.10.0200.00617.83
8.3.00.0220.00517.71
8.2.330.0170.00619.58
8.2.320.0130.00818.90
8.2.310.0100.01118.82
8.2.300.0220.00718.40
8.2.290.0220.00718.55
8.2.280.0200.00817.41
8.2.270.0180.00716.92
8.2.260.0190.00817.50
8.2.250.0190.00716.61
8.2.240.0150.00617.70
8.2.230.0210.00519.56
8.2.220.0200.00327.04
8.2.210.0200.00521.53
8.2.200.0160.00817.51
8.2.190.0220.00916.56
8.2.180.0280.00316.54
8.2.170.0250.00617.92
8.2.160.0240.00717.73
8.2.150.0240.01117.60
8.2.140.0260.00817.67
8.2.130.0230.00817.34
8.2.120.0180.00417.63
8.2.110.0180.00417.64
8.2.100.0230.00917.74
8.2.90.0250.00617.79
8.2.80.0250.00517.66
8.2.70.0240.00717.50
8.2.60.0170.00817.67
8.2.50.0260.00517.63
8.2.40.0260.00617.64
8.2.30.0220.00717.41
8.2.20.0230.00517.62
8.2.10.0230.00717.46
8.2.00.0320.00817.42
8.1.340.0240.00819.71
8.1.330.0200.00719.04
8.1.320.0200.00617.28
8.1.310.0160.01016.27
8.1.300.0170.00617.25
8.1.290.0190.00423.46
8.1.280.0300.00716.23
8.1.270.0330.00717.45
8.1.260.0260.00817.38
8.1.250.0240.01217.37
8.1.240.0240.00417.44
8.1.230.0190.01317.45
8.1.220.0230.00817.38
8.1.210.0220.00617.36
8.1.200.0170.00817.36
8.1.190.0190.00317.41
8.1.180.0170.00517.31
8.1.170.0190.00517.33
8.1.160.0160.00717.35
8.1.150.0170.00617.40
8.1.140.0140.00817.29
8.1.130.0150.00717.38
8.1.120.0160.00817.41
8.1.110.0190.00717.43
8.1.100.0140.01017.36
8.1.90.0160.00917.39
8.1.80.0170.00917.34
8.1.70.0200.00617.38
8.1.60.0260.00617.38
8.1.50.0160.01017.42
8.1.40.0170.00717.56
8.1.30.0120.00417.56
8.1.20.0150.00617.61
8.1.10.0180.00817.63
8.1.00.0150.01017.45

preferences:
49.11 ms | 1048 KiB | 5 Q