3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isValidObject($object) { if ($applicant = $object->getApplicant()) { if ($generalData = $applicant->getGeneralData()) { if ($identifications = $generalData->getIdentifications()) { if ((int)$identifications->getIdentificationCode() > 1) { return TRUE; } } } } return FALSE; } function isValidObjectShort($object) { return (int)($object?->getApplicant()?->getGeneralData()?->getIdentifications()?->getIdentificationCode()) > 1; }

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.30.0130.00418.67
8.5.20.0120.00719.62
8.5.10.0120.00718.21
8.5.00.0100.01019.57
8.4.180.0100.01123.80
8.4.170.0120.01022.04
8.4.160.0110.01423.79
8.4.150.0090.00416.78
8.4.140.0110.01017.34
8.4.130.0140.00719.11
8.4.120.0090.01122.28
8.4.110.0110.00918.57
8.4.100.0130.00717.45
8.4.90.0100.00620.53
8.4.80.0110.00718.96
8.4.70.0100.01117.61
8.4.60.0080.01218.72
8.4.50.0040.00419.34
8.4.40.0130.00317.45
8.4.30.0160.00317.46
8.4.20.0130.00319.55
8.4.10.0030.00619.52
8.3.300.0100.01020.01
8.3.290.0130.00718.24
8.3.280.0060.00516.20
8.3.270.0110.00816.65
8.3.260.0040.00416.49
8.3.250.0110.00817.24
8.3.240.0110.01016.33
8.3.230.0090.00916.42
8.3.220.0130.00519.04
8.3.210.0130.00618.97
8.3.200.0050.00416.29
8.3.190.0080.01017.23
8.3.180.0080.00316.57
8.3.170.0110.00717.11
8.3.160.0070.01116.47
8.3.150.0060.01316.89
8.3.140.0060.00920.48
8.3.130.0040.00418.31
8.3.120.0160.00320.48
8.3.110.0040.00416.38
8.3.100.0080.00024.06
8.3.90.0070.01026.77
8.3.80.0120.00018.21
8.3.70.0090.00916.63
8.3.60.0110.00418.43
8.3.50.0100.00616.53
8.3.40.0150.00618.71
8.3.30.0150.00018.54
8.3.20.0070.00020.29
8.3.10.0080.00021.63
8.3.00.0040.00418.98
8.2.300.0130.00618.73
8.2.290.0100.00618.69
8.2.280.0110.00719.78
8.2.270.0070.01119.02
8.2.260.0030.00617.05
8.2.250.0150.00616.31
8.2.240.0030.00617.17
8.2.230.0040.00420.94
8.2.220.0100.00037.54
8.2.210.0000.00726.77
8.2.200.0080.00016.50
8.2.190.0140.00016.58
8.2.180.0120.00618.16
8.2.170.0140.00322.96
8.2.160.0100.00720.36
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00422.11
8.2.120.0020.00526.35
8.2.110.0040.00422.25
8.2.100.0030.00718.62
8.1.340.0150.00617.51
8.1.330.0120.00716.07
8.1.320.0100.00915.79
8.1.310.0070.00018.47
8.1.300.0050.00515.81
8.1.290.0040.00430.84
8.1.280.0090.00925.92
8.1.270.0050.00321.86
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0060.00318.28
8.1.230.0030.00618.36
7.2.10.0280.01117.59
7.2.00.0380.01417.77
7.1.130.0410.00716.68
7.1.120.0100.01016.32
7.1.110.0270.01015.88
7.1.100.0290.01316.13
7.1.90.0400.01015.97
7.1.80.0340.00816.38
7.1.70.0420.01014.84
7.1.60.0460.00732.97
7.1.50.0480.01832.98
7.1.40.0560.00932.45
7.1.30.0500.01132.63
7.1.20.0420.01732.69
7.1.10.0400.00314.55
7.1.00.0330.00914.55

preferences:
86.21 ms | 901 KiB | 5 Q