3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = null; echo isset($options['search']) ? "yes" : "no"; echo !empty($options['search']) ? "yes" : "no"; echo "\n"; $options = ['search' => 0]; echo isset($options['search']) ? "yes" : "no"; echo !empty($options['search']) ? "yes" : "no"; echo "\n"; $options = ['search' => 0]; echo isset($options['search']) ? "yes" : "no"; echo !empty($options['search']) ? "yes" : "no";

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.40.0140.00718.86
8.3.30.0030.01019.12
8.3.20.0050.00320.37
8.3.10.0040.00423.53
8.3.00.0000.00819.11
8.2.170.0090.00622.96
8.2.160.0030.01022.20
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00419.66
8.2.110.0000.01019.33
8.2.100.0080.00417.91
8.2.90.0090.00020.63
8.2.80.0030.00717.97
8.2.70.0050.00318.04
8.2.60.0000.00818.28
8.2.50.0000.00818.10
8.2.40.0030.00619.05
8.2.30.0080.00019.18
8.2.20.0000.00717.79
8.2.10.0040.00418.05
8.2.00.0040.00417.66
8.1.270.0050.00319.01
8.1.260.0060.00626.35
8.1.250.0000.00728.09
8.1.240.0030.00622.63
8.1.230.0040.00820.90
8.1.220.0000.00817.74
8.1.210.0080.00018.97
8.1.200.0040.00617.35
8.1.190.0000.00917.13
8.1.180.0050.00318.10
8.1.170.0080.00022.25
8.1.160.0000.00718.93
8.1.150.0000.00718.74
8.1.140.0040.00417.44
8.1.130.0050.00317.86
8.1.120.0030.00317.39
8.1.110.0040.00717.44
8.1.100.0050.00217.44
8.1.90.0080.00017.51
8.1.80.0000.00717.51
8.1.70.0030.00317.46
8.1.60.0050.00317.52
8.1.50.0030.00517.39
8.1.40.0000.00717.59
8.1.30.0080.00017.68
8.1.20.0000.00817.55
8.1.10.0030.00517.57
8.1.00.0030.00617.57
8.0.300.0080.00019.85
8.0.290.0060.00316.75
8.0.280.0000.00718.34
8.0.270.0000.00717.25
8.0.260.0000.00617.16
8.0.250.0030.00316.87
8.0.240.0040.00416.93
8.0.230.0030.00316.94
8.0.220.0000.00716.78
8.0.210.0070.00016.79
8.0.200.0080.00016.81
8.0.190.0030.00616.96
8.0.180.0040.00416.84
8.0.170.0030.00616.96
8.0.160.0050.00316.84
8.0.150.0040.00716.81
8.0.140.0000.00816.77
8.0.130.0030.00313.35
8.0.120.0040.00416.82
8.0.110.0030.00516.80
8.0.100.0070.00016.88
8.0.90.0050.00316.73
8.0.80.0120.00816.88
8.0.70.0040.00416.88
8.0.60.0070.00017.00
8.0.50.0040.00416.88
8.0.30.0130.00817.14
8.0.20.0100.00917.40
8.0.10.0000.00716.95
8.0.00.0100.00816.87
7.4.330.0020.00215.14
7.4.320.0030.00316.45
7.4.300.0030.00316.59
7.4.290.0070.00016.50
7.4.280.0000.00716.63
7.4.270.0000.00716.48
7.4.260.0030.00316.44
7.4.250.0040.00416.36
7.4.240.0060.00216.50
7.4.230.0000.00716.69
7.4.220.0170.00916.60
7.4.210.0080.00716.48
7.4.200.0070.00016.55
7.4.160.0040.01216.57
7.4.150.0130.00517.40
7.4.140.0100.00917.86
7.4.130.0120.00716.54
7.4.120.0070.01116.61
7.4.110.0140.00516.47
7.4.100.0110.01116.51
7.4.90.0140.00316.38
7.4.80.0070.01019.39
7.4.70.0040.01416.60
7.4.60.0100.00716.66
7.4.50.0000.00816.50
7.4.40.0110.00616.36
7.4.30.0110.00716.49
7.4.00.0090.00914.96
7.3.330.0000.00613.18
7.3.320.0050.00013.07
7.3.310.0090.00016.25
7.3.300.0030.00316.29
7.3.290.0060.00916.18
7.3.280.0090.00816.20
7.3.270.0090.00917.40
7.3.260.0130.00416.45
7.3.250.0080.01316.21
7.3.240.0080.01116.45
7.3.230.0070.01016.39
7.3.210.0070.01016.57
7.3.200.0190.00319.39
7.3.190.0150.00316.15
7.3.180.0100.00716.19
7.3.170.0150.00516.34
7.3.160.0110.01016.33
7.2.330.0070.02716.42
7.2.320.0090.00916.38
7.2.310.0090.00916.27
7.2.300.0150.00616.66
7.2.290.0130.01016.61
7.2.00.0000.01219.08
7.1.100.0000.01318.22
7.1.70.0000.00817.00
7.1.60.0090.00919.22
7.1.50.0130.00616.19
7.1.00.0030.07322.51
7.0.200.0040.00416.85
7.0.140.0030.04021.99
7.0.60.0070.04319.93
7.0.50.0070.04017.81
7.0.40.0070.08720.02
7.0.30.0130.04720.13
7.0.20.0300.07720.16
7.0.10.0000.07720.13
7.0.00.0100.07320.01
5.6.210.0030.08720.75
5.6.200.0030.07718.13
5.6.190.0030.04320.42
5.6.180.0330.07020.39
5.6.170.0270.06020.42
5.6.160.0130.04320.45
5.6.150.0030.04318.11
5.6.140.0100.06318.15
5.6.130.0070.04718.11
5.6.120.0130.08021.00
5.6.110.0230.04721.01
5.6.100.0070.08320.96
5.6.90.0130.07021.09
5.6.80.0030.04020.38
5.5.350.0100.04320.43
5.5.340.0130.04718.02
5.5.330.0100.03320.40
5.5.320.0200.07020.31
5.5.310.0200.05720.13
5.5.300.0070.08018.02
5.5.290.0000.08718.00
5.5.280.0000.04320.97
5.5.270.0030.08720.76
5.5.260.0030.05320.78
5.5.250.0030.08720.49
5.5.240.0130.07020.34
5.4.450.0370.04319.52
5.4.440.0100.06019.52
5.4.430.0200.05319.54
5.4.420.0930.06019.51
5.4.410.0730.05319.06
5.4.400.0770.05319.21
5.4.390.0730.05318.84
5.4.380.0300.04318.77
5.4.370.0170.05718.61
5.4.360.0170.06018.66
5.4.350.0130.08318.53
5.4.340.0330.05018.59
5.4.320.0130.06318.74
5.4.310.0270.04718.63
5.4.300.0230.05018.56
5.4.290.0300.04018.72
5.4.280.0270.04318.62
5.4.270.0230.06018.73
5.4.260.0230.05718.48
5.4.250.0300.05718.48
5.4.240.0370.05018.60
5.4.230.0170.05318.49
5.4.220.0170.05718.64
5.4.210.0200.05718.51
5.4.200.0270.06316.51
5.4.190.0300.04018.55
5.4.180.0200.06318.54
5.4.170.0230.07318.68
5.4.160.0270.06718.74
5.4.150.0330.06018.50
5.4.140.0230.07016.23
5.4.130.0230.06716.16
5.4.120.0270.04716.27
5.4.110.0170.05316.13
5.4.100.0230.05716.08
5.4.90.0170.06316.32
5.4.80.0230.05716.17
5.4.70.0270.04316.14
5.4.60.0200.05016.25
5.4.50.0230.05016.19
5.4.40.0270.05016.23
5.4.30.0230.04716.13
5.4.20.0200.06316.12
5.4.10.0130.05716.09
5.4.00.0370.04015.58
5.3.290.0200.05314.67
5.3.280.0170.06014.49
5.3.270.0200.05314.64
5.3.260.0300.04714.58
5.3.250.0330.05014.54
5.3.240.0200.06314.60
5.3.230.0100.07314.50
5.3.220.0070.06314.52
5.3.210.0200.06014.56
5.3.200.0270.05714.46
5.3.190.0200.06014.60
5.3.180.0300.06714.57
5.3.170.0270.06014.56
5.3.160.0270.06314.61
5.3.150.0170.06714.51
5.3.140.0300.06314.46
5.3.130.0300.05714.49
5.3.120.0170.07014.66
5.3.110.0270.05014.55
5.3.100.0100.06314.07
5.3.90.0070.06313.93
5.3.80.0270.04713.92
5.3.70.0170.05713.92
5.3.60.0170.05314.09
5.3.50.0200.05013.94
5.3.40.0170.06314.04
5.3.30.0130.05713.85
5.3.20.0130.05713.59
5.3.10.0300.04713.64
5.3.00.0200.05013.68
5.2.170.0200.04311.06
5.2.160.0200.04711.10
5.2.150.0200.04311.10
5.2.140.0170.04011.20
5.2.130.0070.04711.02
5.2.120.0230.03011.14
5.2.110.0200.04311.02
5.2.100.0130.04311.14
5.2.90.0100.05711.24
5.2.80.0130.05011.25
5.2.70.0170.04311.08
5.2.60.0170.05711.09
5.2.50.0130.06011.05
5.2.40.0130.04010.99
5.2.30.0100.04710.98
5.2.20.0100.05011.07
5.2.10.0130.05310.87
5.2.00.0200.03310.79
5.1.60.0170.03310.11
5.1.50.0070.0439.96
5.1.40.0170.04010.00
5.1.30.0230.03310.45
5.1.20.0200.03310.32
5.1.10.0130.03310.12
5.1.00.0100.05310.13
5.0.50.0100.0338.61
5.0.40.0070.0278.43
5.0.30.0100.0438.32
5.0.20.0000.0378.18
5.0.10.0030.0408.19
5.0.00.0070.0438.23
4.4.90.0170.0136.74
4.4.80.0000.0276.74
4.4.70.0030.0236.74
4.4.60.0030.0236.74
4.4.50.0070.0236.74
4.4.40.0030.0406.74
4.4.30.0200.0206.74
4.4.20.0000.0306.74
4.4.10.0100.0276.74
4.4.00.0070.0436.74
4.3.110.0170.0236.74
4.3.100.0070.0276.74
4.3.90.0030.0306.74
4.3.80.0030.0376.74
4.3.70.0070.0276.74
4.3.60.0070.0176.74
4.3.50.0100.0176.74
4.3.40.0130.0376.74
4.3.30.0000.0276.74
4.3.20.0030.0236.74
4.3.10.0030.0236.74
4.3.00.0030.0237.59

preferences:
55.28 ms | 400 KiB | 5 Q