3v4l.org

run code in 300+ PHP versions simultaneously
<?php $instances_a = array( 'hello' => 'world' ); $instances_ao = new ArrayObject( $instances_a ); $instances_ai = new ArrayIterator( $instances_a ); foreach ( array( $instances_a, $instances_ao, $instances_ai ) as $instances ) { if ( ( is_array( $instances ) && array_key_exists( 'hello', $instances ) ) || isset( $instances[ 'hello' ] ) ) { echo "Exists\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.10.0060.00317.80
8.3.140.0000.00817.10
8.3.130.0110.00418.46
8.3.120.0000.00818.80
8.3.110.0040.00418.44
8.3.100.0000.00916.48
8.3.90.0040.01326.77
8.3.80.0060.00316.75
8.3.70.0130.00316.63
8.3.60.0060.00918.41
8.3.50.0090.00620.11
8.3.40.0120.00320.43
8.3.30.0150.00018.84
8.3.20.0130.00624.18
8.3.10.0000.00824.66
8.3.00.0000.00826.16
8.2.250.0000.00816.99
8.2.240.0080.00016.89
8.2.230.0060.00320.94
8.2.220.0060.00324.06
8.2.210.0050.00326.77
8.2.200.0050.00516.25
8.2.190.0140.00716.58
8.2.180.0060.01225.92
8.2.170.0060.00918.96
8.2.160.0130.00722.96
8.2.150.0110.00425.66
8.2.140.0070.00724.66
8.2.130.0100.00326.16
8.2.120.0040.00426.16
8.2.110.0060.00320.52
8.2.100.0110.00317.97
8.2.90.0090.00017.75
8.2.80.0050.00318.91
8.2.70.0060.00317.63
8.2.60.0060.00318.05
8.2.50.0000.00818.07
8.2.40.0000.00718.16
8.2.30.0040.00418.12
8.2.20.0050.00320.44
8.2.10.0080.00017.75
8.2.00.0000.00719.18
8.1.300.0040.00416.33
8.1.290.0030.01030.84
8.1.280.0070.01125.92
8.1.270.0030.00623.99
8.1.260.0030.01026.35
8.1.250.0000.00828.09
8.1.240.0040.00419.11
8.1.230.0000.01217.70
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0080.00017.23
8.1.190.0120.00616.52
8.1.180.0040.00418.10
8.1.170.0000.00818.64
8.1.160.0070.00018.86
8.1.150.0040.00418.64
8.1.140.0040.00417.30
8.1.130.0060.00317.45
8.1.120.0040.00417.49
8.1.110.0040.00417.45
8.1.100.0100.00017.36
8.1.90.0000.00717.36
8.1.80.0040.00417.47
8.1.70.0030.00317.41
8.1.60.0040.00417.45
8.1.50.0040.00417.52
8.1.40.0000.00817.48
8.1.30.0060.00317.48
8.1.20.0050.00317.57
8.1.10.0030.00617.48
8.1.00.0050.00517.41
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0030.00620.27
8.0.270.0070.00017.97
8.0.260.0080.00016.83
8.0.250.0000.00816.99
8.0.240.0040.00416.87
8.0.230.0000.00716.89
8.0.220.0000.00716.77
8.0.210.0070.00016.77
8.0.200.0030.00316.97
8.0.190.0080.00016.97
8.0.180.0080.00016.84
8.0.170.0060.00316.90
8.0.160.0000.00816.98
8.0.150.0040.00416.76
8.0.140.0040.00516.77
8.0.130.0040.00516.81
8.0.120.0040.00516.82
8.0.110.0050.00416.83
8.0.100.0040.00516.83
8.0.90.0030.00516.83
8.0.80.0040.00516.78
8.0.70.0040.00516.82
8.0.60.0050.00316.81
8.0.50.0030.00516.80
8.0.30.0040.00416.79
8.0.20.0040.00416.89
8.0.10.0040.00616.94
7.4.330.0000.00515.55
7.4.320.0050.00216.56
7.4.300.0000.00616.45
7.4.290.0000.00816.44
7.4.280.0030.00616.50
7.4.270.0060.00316.49
7.4.260.0050.00416.49
7.4.250.0040.00416.47
7.4.240.0040.00316.50
7.4.230.0030.00416.51
7.4.220.0050.00316.50
7.4.210.0040.00416.50
7.4.200.0040.00416.48
7.4.190.0050.00416.55
7.4.180.0030.00516.55
7.4.160.0040.00416.53
7.4.150.0040.00416.45
7.4.140.0040.00416.43
7.4.130.0040.00316.40
7.4.120.0020.00516.39
7.4.110.0050.00316.39
7.4.100.0040.00316.44
7.4.90.0040.00416.42
7.4.80.0040.00416.40
7.4.70.0030.00416.41
7.4.60.0030.00416.40
7.4.50.0040.00416.28
7.4.40.0030.00416.37
7.4.30.0030.00516.37
7.4.20.0030.00516.39
7.4.10.0040.00416.37
7.4.00.0040.00416.44

preferences:
59.46 ms | 403 KiB | 5 Q