3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('foo'=>'bar'); $notexists = !array_key_exists('foo', $array); $empty = empty($array['foo']); var_dump($notexists, $empty, $notexists || $empty);

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.0110.01116.63
8.3.50.0210.01122.00
8.3.40.0090.00618.71
8.3.30.0030.01319.10
8.3.20.0040.00720.09
8.3.10.0060.00323.61
8.3.00.0030.00619.26
8.2.180.0120.00318.41
8.2.170.0090.00622.96
8.2.160.0170.00320.14
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0120.00426.16
8.2.120.0000.01022.21
8.2.110.0030.00622.28
8.2.100.0000.01217.91
8.2.90.0030.00619.22
8.2.80.0050.00318.15
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0040.00418.10
8.2.20.0020.00517.79
8.2.10.0030.00519.84
8.2.00.0070.00417.73
8.1.280.0040.01125.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.92
8.1.230.0070.00419.04
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0070.00317.35
8.1.190.0040.00417.51
8.1.180.0040.00418.10
8.1.170.0040.00418.36
8.1.160.0000.00722.00
8.1.150.0000.00818.54
8.1.140.0000.00817.44
8.1.130.0000.00817.71
8.1.120.0040.00417.31
8.1.110.0060.00317.39
8.1.100.0030.00517.41
8.1.90.0040.00417.35
8.1.80.0060.00317.46
8.1.70.0030.00517.44
8.1.60.0000.00817.46
8.1.50.0050.00317.49
8.1.40.0040.00417.42
8.1.30.0000.00817.50
8.1.20.0000.00817.56
8.1.10.0030.00617.46
8.1.00.0080.00017.45
8.0.300.0080.00018.77
8.0.290.0040.00417.05
8.0.280.0070.00018.48
8.0.270.0080.00017.16
8.0.260.0000.00717.11
8.0.250.0080.00016.93
8.0.240.0040.00416.86
8.0.230.0040.00416.98
8.0.220.0000.00816.88
8.0.210.0000.00716.85
8.0.200.0060.00316.80
8.0.190.0060.00316.80
8.0.180.0040.00416.88
8.0.170.0040.00416.79
8.0.160.0000.00716.78
8.0.150.0000.00716.88
8.0.140.0000.00816.86
8.0.130.0050.00013.39
8.0.120.0030.00516.87
8.0.110.0050.00316.87
8.0.100.0070.00016.94
8.0.90.0000.00716.82
8.0.80.0090.00616.91
8.0.70.0020.00516.86
8.0.60.0070.00416.82
8.0.50.0080.00016.75
8.0.30.0080.01017.15
8.0.20.0070.01117.40
8.0.10.0050.00316.97
8.0.00.0080.00916.75
7.4.330.0000.00515.00
7.4.320.0000.00616.55
7.4.300.0030.00516.47
7.4.290.0000.00816.48
7.4.280.0030.00316.48
7.4.270.0000.00716.52
7.4.260.0090.00016.34
7.4.250.0000.00716.41
7.4.240.0000.00716.53
7.4.230.0030.00316.57
7.4.220.0070.01316.61
7.4.210.0090.00916.53
7.4.200.0070.00016.30
7.4.190.0040.00416.55
7.4.160.0100.00616.62
7.4.150.0180.00717.40
7.4.140.0090.01117.86
7.4.130.0080.00916.39
7.4.120.0100.00616.59
7.4.110.0070.01016.39
7.4.100.0140.00416.43
7.4.90.0060.01016.58
7.4.80.0150.00919.39
7.4.70.0140.00416.48
7.4.60.0110.01016.53
7.4.50.0040.00416.29
7.4.40.0000.01422.77
7.4.30.0100.00716.54
7.4.00.0060.00914.82
7.3.330.0030.00413.09
7.3.320.0050.00013.13
7.3.310.0000.00716.10
7.3.300.0070.00016.07
7.3.290.0030.01816.24
7.3.280.0040.01616.28
7.3.270.0070.01017.40
7.3.260.0150.00516.21
7.3.250.0140.00516.21
7.3.240.0090.01216.23
7.3.230.0130.00916.39
7.3.210.0130.00516.43
7.3.200.0040.01419.39
7.3.190.0120.01016.51
7.3.180.0000.01616.30
7.3.170.0040.01416.27
7.3.160.0030.01316.39
7.3.120.0030.01014.74
7.2.330.0090.00916.41
7.2.320.0130.00916.50
7.2.310.0040.01516.39
7.2.300.0100.00716.62
7.2.290.0120.00616.35
7.2.110.0130.00716.13
7.2.00.0000.01319.23
7.1.100.0060.00618.23
7.1.70.0020.00516.67
7.1.60.0170.00719.33
7.1.50.0180.01116.79
7.1.00.0100.07022.40
7.0.200.0040.00816.74
7.0.140.0130.06322.08
7.0.60.0000.04319.93
7.0.50.0000.04317.75
7.0.40.0130.04320.27
7.0.30.0300.04720.13
7.0.20.0270.06020.29
7.0.10.0100.08320.27
7.0.00.0030.04320.16
5.6.280.0000.07721.06
5.6.210.0030.08020.50
5.6.200.0100.08018.22
5.6.190.0030.04020.61
5.6.180.0200.04020.43
5.6.170.0170.05020.71
5.6.160.0100.05020.48
5.6.150.0100.08018.15
5.6.140.0030.08318.20
5.6.130.0070.06718.20
5.6.120.0030.05321.11
5.6.110.0070.09021.08
5.6.100.0000.09020.98
5.6.90.0100.07721.06
5.6.80.0070.07320.38
5.5.350.0130.07320.32
5.5.340.0130.03017.96
5.5.330.0070.10020.40
5.5.320.0100.07720.21
5.5.310.0230.07720.20
5.5.300.0030.05318.02
5.5.290.0130.06718.02
5.5.280.0070.07020.77
5.5.270.0130.08320.71
5.5.260.0100.05020.71
5.5.250.0070.03720.61
5.5.240.0130.03720.34
5.4.450.0300.06719.42
5.4.440.0230.03719.38
5.4.430.0170.05719.56
5.4.420.0230.07019.40
5.4.410.0200.05019.07
5.4.400.0200.04719.11
5.4.390.0330.06019.12
5.4.380.0230.07018.79
5.4.370.0270.06719.13
5.4.360.0230.04318.93
5.4.350.0230.07019.09
5.4.340.0170.05019.14
5.4.320.0300.06719.22
5.4.310.0270.06719.08
5.4.300.0230.07019.24
5.4.290.0200.07719.08
5.4.280.0230.05319.09
5.4.270.0200.04718.75
5.4.260.0270.06719.06
5.4.250.0230.06319.07
5.4.240.0300.06018.78
5.4.230.0270.07019.08
5.4.220.0270.07019.09
5.4.210.0300.06719.21
5.4.200.0330.05719.24
5.4.190.0230.06719.21
5.4.180.0230.07719.07
5.4.170.0170.04319.07
5.4.160.0330.06019.22
5.4.150.0370.04019.20
5.4.140.0330.04716.27
5.4.130.0200.06316.26
5.4.120.0330.04716.18
5.4.110.0270.05016.39
5.4.100.0230.07316.39
5.4.90.0300.06716.47
5.4.80.0230.06716.41
5.4.70.0200.07316.39
5.4.60.0230.06316.21
5.4.50.0230.04316.28
5.4.40.0270.06716.36
5.4.30.0200.07016.36
5.4.20.0200.04016.27
5.4.10.0230.06016.03
5.4.00.0200.04315.89
5.3.290.0300.07014.75
5.3.280.0200.05014.44
5.3.270.0300.06714.46
5.3.260.0230.05314.45
5.3.250.0130.08314.43
5.3.240.0230.06014.54
5.3.230.0170.07014.62
5.3.220.0230.05014.41
5.3.210.0470.05314.40
5.3.200.0230.07314.52
5.3.190.0200.06014.51
5.3.180.0270.07014.54
5.3.170.0170.07014.50
5.3.160.0170.05014.50
5.3.150.0200.04714.54
5.3.140.0200.04714.48
5.3.130.0200.07314.59
5.3.120.0170.06714.38
5.3.110.0230.07314.52
5.3.100.0230.06014.01
5.3.90.0200.05313.86
5.3.80.0230.03013.95
5.3.70.0100.04313.87
5.3.60.0200.04713.98
5.3.50.0200.03313.88
5.3.40.0230.02713.72
5.3.30.0200.03013.78
5.3.20.0130.03713.46
5.3.10.0100.03713.61
5.3.00.0100.03713.58
5.2.170.0100.03012.11
5.2.160.0130.02712.11
5.2.150.0100.03012.11
5.2.140.0100.03012.11
5.2.130.0070.04312.11
5.2.120.0170.03012.11
5.2.110.0070.03312.11
5.2.100.0130.03012.11
5.2.90.0100.03312.11
5.2.80.0230.02312.11
5.2.70.0100.03012.11
5.2.60.0130.03012.11
5.2.50.0070.03012.11
5.2.40.0030.03312.11
5.2.30.0100.03312.11
5.2.20.0130.03012.11
5.2.10.0100.02712.11
5.2.00.0100.02712.11
5.1.60.0100.02312.11
5.1.50.0030.03012.11
5.1.40.0100.02312.11
5.1.30.0100.02312.11
5.1.20.0100.02712.11
5.1.10.0070.02712.11
5.1.00.0130.02312.11
5.0.50.0000.02312.11
5.0.40.0100.01712.11
5.0.30.0070.02712.11
5.0.20.0070.03012.11
5.0.10.0030.02012.11
5.0.00.0030.03312.11
4.4.90.0030.01712.11
4.4.80.0070.01312.11
4.4.70.0030.01712.11
4.4.60.0000.02012.11
4.4.50.0100.01012.11
4.4.40.0030.02312.11
4.4.30.0030.01712.11
4.4.20.0130.01012.11
4.4.10.0070.01312.11
4.4.00.0030.02712.11
4.3.110.0070.01312.11
4.3.100.0070.01312.11
4.3.90.0100.01312.11
4.3.80.0070.02312.11
4.3.70.0030.02312.11
4.3.60.0100.02012.11
4.3.50.0070.01312.11
4.3.40.0130.03312.11
4.3.30.0000.02012.11
4.3.20.0030.01312.11
4.3.10.0070.02012.11
4.3.00.0030.01712.11

preferences:
60.5 ms | 401 KiB | 5 Q