3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Entity {} class ShipmentEntity extends Entity { public ?string $salesChannelId = null; public SalesChannelEntity $salesChannel; } $shipment = new ShipmentEntity(); // Sales channel was not loaded therefore the property is not initialized: var_dump($shipment->salesChannel); // Fatal error: Uncaught Error: Typed property ShipmentEntity::$salesChannel must not be accessed before initialization in /in/CPlqC:11

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.0060.00320.65
8.4.110.0100.01122.63
8.4.100.0140.00617.88
8.4.90.0120.00818.79
8.4.80.0080.00718.02
8.4.70.0050.00817.96
8.4.60.0160.00418.97
8.4.50.0110.00118.19
8.4.40.0130.00617.87
8.4.30.0100.01020.57
8.4.20.0160.00320.45
8.4.10.0090.00023.75
8.3.250.0120.00718.61
8.3.240.0130.00616.81
8.3.230.0090.00616.79
8.3.220.0120.00616.98
8.3.210.0120.00816.73
8.3.200.0080.00116.87
8.3.190.0130.00617.23
8.3.180.0050.01016.54
8.3.170.0100.00017.15
8.3.160.0160.00318.35
8.3.150.0070.00018.78
8.3.140.0140.00316.54
8.3.130.0030.00518.63
8.3.120.0190.00020.65
8.3.110.0050.00320.94
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0000.00917.97
8.3.70.0100.01016.50
8.3.60.0110.00416.63
8.3.50.0140.00416.79
8.3.40.0070.00722.06
8.3.30.0070.00720.35
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0000.00726.16
8.2.290.0150.00420.48
8.2.280.0110.00918.32
8.2.270.0140.00417.04
8.2.260.0040.00418.79
8.2.250.0090.00018.57
8.2.240.0030.00618.76
8.2.230.0000.01022.58
8.2.220.0090.00037.54
8.2.210.0140.00026.77
8.2.200.0060.00316.75
8.2.190.0120.00617.00
8.2.180.0100.01016.50
8.2.170.0120.00318.95
8.2.160.0080.01222.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.79
8.2.110.0090.00020.38
8.2.100.0080.00317.85
8.2.90.0040.00417.97
8.2.80.0080.00019.15
8.2.70.0160.00317.38
8.2.60.0120.00817.38
8.2.50.0160.00417.25
8.2.40.0110.00717.35
8.2.30.0150.00317.38
8.2.20.0120.00417.50
8.2.10.0110.00617.25
8.2.00.0120.00417.24
8.1.330.0120.00722.02
8.1.320.0100.01116.39
8.1.310.0090.00916.81
8.1.300.0040.00418.42
8.1.290.0080.00030.84
8.1.280.0120.00325.92
8.1.270.0070.00024.66
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00622.20
8.1.230.0110.00020.97
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0190.00017.00
8.1.190.0090.00916.85
8.1.180.0090.00917.00
8.1.170.0100.00617.10
8.1.160.0160.00016.88
8.1.150.0100.00717.00
8.1.140.0110.00517.25
8.1.130.0170.00017.10
8.1.120.0130.00617.13
8.1.110.0090.00917.13
8.1.100.0170.00017.23
8.1.90.0120.00417.34
8.1.80.0140.00317.13
8.1.70.0120.00417.38
8.1.60.0190.00017.38
8.1.50.0150.00317.50
8.1.40.0090.00917.35
8.1.30.0150.00317.13
8.1.20.0150.00416.97
8.1.10.0110.00717.13
8.1.00.0160.00317.25
8.0.300.0000.00820.11
8.0.290.0170.00016.58
8.0.280.0150.00016.75
8.0.270.0130.00316.58
8.0.260.0110.00616.58
8.0.250.0160.00016.71
8.0.240.0120.00716.72
8.0.230.0120.00616.58
8.0.220.0080.00816.75
8.0.210.0120.00316.74
8.0.200.0110.00516.73
8.0.190.0130.00316.88
8.0.180.0090.00616.58
8.0.170.0080.00816.58
8.0.160.0160.00016.59
8.0.150.0110.00516.63
8.0.140.0120.00416.59
8.0.130.0160.00016.58
8.0.120.0070.01016.62
8.0.110.0060.00916.58
8.0.100.0130.00316.58
8.0.90.0160.00016.75
8.0.80.0100.00616.62
8.0.70.0130.00316.58
8.0.60.0160.00016.63
8.0.50.0120.00416.58
8.0.30.0130.00316.63
8.0.20.0040.01216.58
8.0.10.0120.00416.63

preferences:
66.26 ms | 403 KiB | 5 Q