3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = null; echo "Should throw a notice when trying to access an element in a non-array data type \n"; $should_throw_notice = 'foo' === $arr['key']; echo "\n=======\n\n"; echo "Should NOT throw a notice when setting an element in a non-array data type. PHP should type juggle from `null` to `array`.\n\n"; $arr['key'] = 'foo'; var_dump( $arr );

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.20.0130.00625.90
8.4.10.0090.00023.69
8.3.150.0060.01216.78
8.3.140.0110.00016.66
8.3.130.0040.00418.38
8.3.120.0000.01519.00
8.3.110.0030.00616.69
8.3.100.0030.00616.83
8.3.90.0060.00316.61
8.3.80.0090.00017.97
8.3.70.0090.00616.50
8.3.60.0090.00616.63
8.3.50.0090.00616.51
8.3.40.0100.01020.38
8.3.30.0070.00719.02
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0000.00826.16
8.2.270.0100.01016.91
8.2.260.0060.00317.01
8.2.250.0080.00018.65
8.2.240.0060.00316.82
8.2.230.0050.00520.94
8.2.220.0000.00824.06
8.2.210.0090.00626.77
8.2.200.0090.00016.75
8.2.190.0140.00718.41
8.2.180.0080.00818.41
8.2.170.0110.00418.96
8.2.160.0040.01122.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00926.16
8.2.110.0060.00320.28
8.2.100.0030.00620.51
8.1.310.0140.00018.57
8.1.300.0110.00816.03
8.1.290.0090.00418.88
8.1.280.0110.01125.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00318.47
8.1.230.0070.00318.64
7.4.330.0020.00616.30

preferences:
30.75 ms | 403 KiB | 5 Q