3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = ['someKey' => 'someValue']; echo $var['someKey']; $wasSet = isset($var['aKey']); if ($wasSet) { echo "was set"; } else { echo "was not set"; } $possibleVar = $var['aKey']; if ($possibleVar) { echo "possible var: $possibleVar"; } else { echo "possible var is false: $possibleVar"; }

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.3.60.0140.00318.30
8.3.50.0170.00316.37
8.3.40.0120.00618.84
8.3.30.0090.00618.84
8.3.20.0050.00320.31
8.3.10.0050.00323.39
8.3.00.0040.00422.09
8.2.180.0090.00918.43
8.2.170.0110.00422.96
8.2.160.0100.00719.21
8.2.150.0000.00724.18
8.2.140.0000.00824.66
8.2.130.0030.00620.94
8.2.120.0030.00526.35
8.2.110.0030.00620.35
8.2.100.0080.00317.84
8.2.90.0030.00619.22
8.2.80.0030.00517.97
8.2.70.0050.00317.75
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0080.00020.58
8.2.30.0030.00621.07
8.2.20.0030.00618.16
8.2.10.0040.00418.07
8.2.00.0070.00018.10
8.1.280.0080.00825.92
8.1.270.0050.00322.20
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00623.96
8.1.230.0070.00419.22
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0000.00817.10
8.1.180.0000.00918.10
8.1.170.0040.00418.59
8.1.160.0030.00619.11
8.1.150.0000.00718.71
8.1.140.0070.00019.42
8.1.130.0040.00418.89
8.1.120.0000.01017.32
8.1.110.0030.00517.35
8.1.100.0040.00417.31
8.1.90.0040.00417.46
8.1.80.0000.00717.41
8.1.70.0000.00717.46
8.1.60.0000.00817.53
8.1.50.0040.00417.52
8.1.40.0000.00817.37
8.1.30.0040.00417.67
8.1.20.0040.00417.61
8.1.10.0080.00017.50
8.1.00.0050.00317.39
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0040.00418.41
8.0.270.0050.00317.27
8.0.260.0030.00316.96
8.0.250.0050.00217.04
8.0.240.0080.00017.05
8.0.230.0030.00317.00
8.0.220.0040.00416.98
8.0.210.0000.00716.92
8.0.200.0060.00016.90
8.0.190.0040.00417.06
8.0.180.0040.00416.96
8.0.170.0030.00317.03
8.0.160.0000.00816.98
8.0.150.0000.00716.82
8.0.140.0040.00416.92
8.0.130.0000.00613.38
8.0.120.0040.00416.89
8.0.110.0000.00716.88
8.0.100.0000.00716.96
8.0.90.0040.00417.00
8.0.80.0150.00017.00
8.0.70.0040.00416.70
8.0.60.0040.00416.93
8.0.50.0030.00516.84
8.0.30.0120.00717.18
8.0.20.0100.00917.40
8.0.10.0050.00316.94
8.0.00.0090.00916.75
7.4.330.0050.00015.55
7.4.320.0030.00316.50
7.4.300.0060.00016.53
7.4.290.0080.00016.30
7.4.280.0080.00016.45
7.4.270.0030.00316.37
7.4.260.0030.00316.36
7.4.250.0000.00716.46
7.4.240.0000.00716.60
7.4.230.0030.00316.34
7.4.220.0090.00916.49
7.4.210.0090.00616.63
7.4.200.0000.00716.63
7.4.160.0160.00416.47
7.4.150.0120.00617.40
7.4.140.0110.00717.86
7.4.130.0110.00716.57
7.4.120.0080.01216.49
7.4.110.0090.00916.36
7.4.100.0090.00916.66
7.4.90.0090.00916.54
7.4.80.0090.00919.39
7.4.70.0130.00316.47
7.4.60.0150.00316.50
7.4.50.0090.00516.41
7.4.40.0080.00816.35
7.4.30.0060.00916.55
7.4.00.0090.00814.94
7.3.330.0060.00313.09
7.3.320.0050.00013.16
7.3.310.0000.00716.38
7.3.300.0040.00416.17
7.3.290.0070.00616.40
7.3.280.0080.00916.37
7.3.270.0090.00917.40
7.3.260.0100.00716.74
7.3.250.0080.01216.37
7.3.240.0100.01016.51
7.3.230.0060.01216.36
7.3.210.0080.00816.61
7.3.200.0100.01016.41
7.3.190.0090.00916.31
7.3.180.0080.00816.56
7.3.170.0110.00416.56
7.3.160.0030.01216.66
7.3.120.0040.01214.92
7.3.110.0050.01314.81
7.3.100.0080.00814.97
7.3.90.0070.01014.81
7.3.80.0080.00714.94
7.3.70.0050.00814.79
7.3.60.0070.00714.90
7.3.50.0100.00214.76
7.3.40.0100.00314.84
7.3.30.0070.00514.77
7.3.20.0050.00716.58
7.3.10.0090.00416.66
7.3.00.0040.00816.58
7.2.330.0140.00316.66
7.2.320.0100.01016.76
7.2.310.0130.00316.44
7.2.300.0110.00716.43
7.2.290.0140.01116.66
7.2.250.0100.01015.10
7.2.240.0070.00615.13
7.2.230.0090.00814.91
7.2.220.0060.00715.12
7.2.210.0100.00414.96
7.2.200.0080.00614.95
7.2.190.0040.01114.97
7.2.180.0050.01014.89
7.2.170.0040.01014.95
7.2.160.0000.01815.00
7.2.150.0100.00616.74
7.2.140.0000.01516.85
7.2.130.0090.00617.08
7.2.120.0070.00716.81
7.2.110.0060.00617.01
7.2.100.0120.00616.91
7.2.90.0120.00316.84
7.2.80.0100.00316.87
7.2.70.0030.01216.83
7.2.60.0090.00716.87
7.2.50.0030.00616.71
7.2.40.0060.01016.87
7.2.30.0000.01217.04
7.2.20.0090.00616.73
7.2.10.0040.01216.82
7.2.00.0100.00418.16
7.1.330.0020.01215.81
7.1.320.0040.01015.86
7.1.310.0060.00915.82
7.1.300.0060.00815.58
7.1.290.0060.00815.74
7.1.280.0040.00915.68
7.1.270.0050.01015.76
7.1.260.0110.00515.88
7.1.250.0070.00715.75
7.1.200.0080.00615.54
7.1.100.0080.00317.96
7.1.70.0050.01716.99
7.1.60.0230.02034.81
7.1.50.0210.01634.65
7.1.40.0330.01234.30
7.1.30.0350.01034.42
7.1.20.0250.02334.38
7.1.10.0130.00616.56
7.1.00.0070.01116.54
7.0.200.0170.00316.84
7.0.190.0120.00816.63
7.0.180.0120.01216.22
7.0.170.0070.01316.13
7.0.160.0140.00315.99
7.0.150.0000.01816.36
7.0.140.0070.01016.22
7.0.130.0070.01016.58
7.0.120.0090.00616.66
7.0.110.0110.00916.01
7.0.100.0130.00816.41
7.0.90.0030.01816.14
7.0.80.0110.00716.38
7.0.70.0000.01616.31
7.0.60.0090.00915.88
7.0.50.0120.00916.48
7.0.40.0090.00916.52
7.0.30.0060.01216.48
7.0.20.0100.01116.45
7.0.10.0080.00816.31
7.0.00.0080.01216.38

preferences:
46.86 ms | 401 KiB | 5 Q