3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export( key_exists( 'foo', $obj?->does[123]?->not?->exist[678] ?? [] ) ? 'yep' : 'nope' ); echo "\n---\n"; var_export( property_exists( $obj?->does[123]?->not?->exist[678] ?? (object) [], 'foo' ) ? 'yep' : 'nope' );

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.140.0120.01017.47
8.4.130.0050.00717.81
8.4.120.0060.00223.97
8.4.110.0110.00922.41
8.4.100.0130.00718.73
8.4.90.0130.00718.81
8.4.80.0050.00420.50
8.4.70.0060.00318.20
8.4.60.0110.00917.79
8.4.50.0140.00617.83
8.4.40.0170.00317.75
8.4.30.0120.00320.64
8.4.20.0130.00319.57
8.4.10.0060.00319.45
8.3.270.0090.00916.57
8.3.260.0110.00816.52
8.3.250.0130.00618.88
8.3.240.0120.00716.85
8.3.230.0110.00816.41
8.3.220.0040.00419.05
8.3.210.0140.00616.73
8.3.200.0040.00516.85
8.3.190.0110.00718.30
8.3.180.0060.00618.21
8.3.170.0180.00020.67
8.3.160.0120.00617.14
8.3.150.0070.01117.06
8.3.140.0000.00816.48
8.3.130.0030.00618.40
8.3.120.0060.00318.74
8.3.110.0060.00320.94
8.3.100.0130.00324.06
8.3.90.0000.00826.77
8.3.80.0060.00317.97
8.3.70.0140.00716.58
8.3.60.0000.01416.59
8.3.50.0120.00916.49
8.3.40.0130.00723.59
8.3.30.0120.00822.96
8.3.20.0090.00923.65
8.3.10.0080.01123.66
8.3.00.0060.01522.96
8.2.290.0120.00620.32
8.2.280.0080.00918.55
8.2.270.0110.00717.00
8.2.260.0040.00418.36
8.2.250.0060.00316.46
8.2.240.0000.00917.16
8.2.230.0160.00618.37
8.2.220.0090.00724.58
8.2.210.0040.00426.77
8.2.200.0060.00316.38
8.2.190.0000.01818.42
8.2.180.0180.00025.92
8.2.170.0070.01122.96
8.2.160.0080.00822.96
8.2.150.0120.00622.96
8.2.140.0140.00722.96
8.2.130.0160.00322.96
8.2.120.0100.01022.96
8.2.110.0060.01322.96
8.2.100.0110.00722.96
8.2.90.0060.01222.96
8.2.80.0150.00422.96
8.2.70.0130.00622.96
8.2.60.0120.00622.96
8.2.50.0070.01122.96
8.2.40.0100.01022.96
8.2.30.0140.00722.96
8.2.20.0110.00722.96
8.2.10.0120.00322.96
8.2.00.0080.00822.96
8.1.330.0110.00821.95
8.1.320.0130.00616.08
8.1.310.0140.00418.30
8.1.300.0150.00419.90
8.1.290.0080.00330.84
8.1.280.0060.01325.92
8.1.270.0100.00323.96
8.1.260.0070.00723.95
8.1.250.0030.01023.92
8.1.240.0040.01122.96
8.1.230.0130.00722.96
8.1.220.0070.01422.96
8.1.210.0100.01022.96
8.1.200.0100.00722.96
8.1.190.0110.00422.96
8.1.180.0140.00722.96
8.1.170.0130.00722.96
8.1.160.0140.00722.96
8.1.150.0090.00622.96
8.1.140.0080.00822.96
8.1.130.0130.00722.96
8.1.120.0070.01422.96
8.1.110.0120.00622.96
8.1.100.0120.00622.96
8.1.90.0130.00722.96
8.1.80.0080.01122.96
8.1.70.0090.00622.96
8.1.60.0180.00022.96
8.1.50.0000.01422.96
8.1.40.0080.00822.96
8.1.30.0120.00622.96
8.1.20.0140.00719.22
8.1.10.0080.00822.96
8.1.00.0090.00922.96

preferences:
30.28 ms | 403 KiB | 5 Q