3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = []; @$var = ["",0,null,1,2,3,$foo,$o['myIndex']]; array_walk($var, function($v) { echo (!isset($v) || $v == false) ? 'true ' : 'false'; echo ' ' . (empty($v) ? 'true' : 'false'); echo "\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.20.0170.00317.64
8.4.10.0080.00817.80
8.3.150.0090.00918.38
8.3.140.0060.00317.35
8.3.130.0180.00418.59
8.3.120.0090.00620.89
8.3.110.0100.01020.94
8.3.100.0000.00916.63
8.3.90.0040.00426.77
8.3.80.0100.00317.97
8.3.70.0120.00318.31
8.3.60.0110.00718.53
8.3.50.0070.01118.22
8.3.40.0070.00718.84
8.3.30.0140.00018.84
8.3.20.0070.00019.21
8.3.10.0080.00021.85
8.3.00.0100.00123.87
8.2.260.0040.00416.70
8.2.250.0000.00816.95
8.2.240.0050.00517.17
8.2.230.0150.00022.58
8.2.220.0040.00424.06
8.2.210.0090.00926.77
8.2.200.0090.00018.54
8.2.190.0090.00618.82
8.2.180.0110.00716.47
8.2.170.0120.00322.96
8.2.160.0090.00622.19
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0010.00727.12
8.2.120.0060.00723.65
8.2.110.0090.00325.16
8.2.100.0030.00723.00
8.2.90.0030.00622.92
8.2.80.0030.00723.03
8.2.70.0080.00423.07
8.2.60.0060.00622.92
8.2.50.0040.00623.08
8.2.40.0020.00723.12
8.2.30.0050.00423.05
8.2.20.0060.00323.14
8.2.10.0080.00223.11
8.2.00.0030.00621.33
8.1.310.0070.01118.52
8.1.300.0060.00318.69
8.1.290.0030.00618.88
8.1.280.0130.00725.92
8.1.270.0030.00623.99
8.1.260.0090.00027.22
8.1.250.0070.00328.09
8.1.240.0050.00525.96
8.1.230.0040.00824.45
8.1.220.0070.00222.91
8.1.210.0010.00823.43
8.1.200.0100.00222.72
8.1.190.0020.00823.53
8.1.180.0040.00523.09
8.1.170.0090.00323.40
8.1.160.0050.00523.45
8.1.150.0040.00424.12
8.1.140.0050.00523.77
8.1.130.0080.00318.96
8.1.120.0050.00519.00
8.1.110.0040.00618.20
8.1.100.0070.00418.61
8.1.90.0070.00518.53
8.1.80.0070.00618.56
8.1.70.0070.00518.39
8.1.60.0080.00618.35
8.1.50.0090.00518.18
8.1.40.0100.00418.19
8.1.30.0090.00518.12
8.1.20.0090.00618.12
8.1.10.0120.00518.03
8.1.00.0130.00517.97
8.0.300.0020.00624.09
8.0.290.0030.00622.42
8.0.280.0070.00223.27
8.0.270.0020.00722.45
8.0.260.0060.00418.21
8.0.250.0060.00518.23
8.0.240.0100.00218.25
8.0.230.0050.00718.22
8.0.220.0080.00418.06
8.0.210.0070.00417.94
8.0.200.0080.00517.92
8.0.190.0070.00617.71
8.0.180.0080.00517.70
8.0.170.0080.00417.72
8.0.160.0070.00517.68
8.0.150.0090.00517.40
8.0.140.0090.00517.41
8.0.130.0080.00617.27
8.0.120.0090.00617.09
8.0.110.0090.00417.06
8.0.100.0080.00517.03
8.0.90.0090.00417.02
8.0.80.0090.00517.03
8.0.70.0090.00417.04
8.0.60.0090.00517.03
8.0.50.0080.00617.03
8.0.30.0090.00617.01
8.0.20.0090.00717.09
8.0.10.0100.00717.14
8.0.00.0080.00717.11
7.4.330.0110.00217.87
7.4.320.0100.00317.74
7.4.300.0120.00517.67
7.4.290.0100.00517.42
7.4.280.0100.00417.41
7.4.270.0100.00517.11
7.4.260.0150.00217.15
7.4.250.0120.00416.79
7.4.240.0110.00416.76
7.4.230.0100.00516.75
7.4.220.0100.00416.75
7.4.210.0080.00516.72
7.4.200.0090.00516.76
7.4.190.0100.00416.77
7.4.180.0080.00616.79
7.4.160.0080.00716.69
7.4.150.0090.00616.68
7.4.140.0100.00616.69
7.4.130.0100.00616.60
7.4.120.0100.00616.59
7.4.110.0090.00716.58
7.4.100.0100.00616.61
7.4.90.0100.00716.59
7.4.80.0110.00616.61
7.4.70.0100.00716.62
7.4.60.0110.00716.60
7.4.50.0100.00716.56
7.4.40.0100.00716.55
7.4.30.0100.00716.60
7.4.20.0100.00816.58
7.4.10.0100.00816.57
7.4.00.0090.00816.58
7.3.330.0110.00416.85
7.3.320.0100.00516.56
7.3.310.0110.00416.70
7.3.300.0090.00516.65
7.3.290.0090.00516.66
7.3.280.0100.00516.60
7.3.270.0090.00616.60
7.3.260.0100.00716.55
7.3.250.0100.00616.57
7.3.240.0110.00616.56
7.3.230.0100.00716.53
7.3.220.0100.00716.52
7.3.210.0110.00716.49
7.3.200.0110.00716.55
7.3.190.0110.00716.53
7.3.180.0100.00816.54
7.3.170.0110.00716.54
7.3.160.0110.00716.53
7.3.150.0100.00716.55
7.3.140.0100.00816.53
7.3.130.0100.00716.51
7.3.120.0100.00716.49
7.3.110.0110.00716.42
7.3.100.0110.00716.33
7.3.90.0110.00816.41
7.3.80.0110.00716.26
7.3.70.0110.00716.18
7.3.60.0110.00716.19
7.3.50.0120.00716.17
7.3.40.0110.00716.14
7.3.30.0110.00716.07
7.3.20.0270.00716.48
7.3.10.0270.00716.35
7.3.00.0270.00716.37
7.2.340.0140.00716.54
7.2.330.0140.00816.54
7.2.320.0150.00716.57
7.2.310.0140.00716.56
7.2.300.0140.00716.57
7.2.290.0130.00916.58
7.2.280.0130.00716.57
7.2.270.0130.00816.55
7.2.260.0130.00716.54
7.2.250.0130.00816.55
7.2.240.0120.00816.50
7.2.230.0120.00816.43
7.2.220.0130.00816.36
7.2.210.0120.00816.30
7.2.200.0130.00816.29
7.2.190.0120.00816.26
7.2.180.0120.00716.27
7.2.170.0120.00716.25
7.2.160.0140.00716.17
7.2.150.0300.00816.65
7.2.140.0260.00816.66
7.2.130.0250.00916.61
7.2.120.0240.00816.55
7.2.110.0280.00816.48
7.2.100.0340.00816.47
7.2.90.0320.00816.46
7.2.80.0290.00816.42
7.2.70.0290.00816.46
7.2.60.0300.00816.45
7.2.50.0280.00816.47
7.2.40.0290.00816.51
7.2.30.0310.00716.52
7.2.20.0260.00816.51
7.2.10.0260.00816.49
7.2.00.0260.00816.51
7.1.330.0170.00716.08
7.1.320.0180.00715.89
7.1.310.0170.00816.12
7.1.300.0150.00815.73
7.1.290.0160.00715.74
7.1.280.0160.00715.72
7.1.270.0260.00815.62
7.1.260.0230.00715.63
7.1.250.0250.00815.48
7.1.240.0310.00815.46
7.1.230.0300.00715.43
7.1.220.0340.00715.41
7.1.210.0360.00715.40
7.1.200.0340.00715.41
7.1.190.0340.00715.40
7.1.180.0300.00815.38
7.1.170.0310.00815.38
7.1.160.0320.00715.39
7.1.150.0310.00815.39
7.1.140.0330.00715.39
7.1.130.0280.00715.40
7.1.120.0280.00815.41
7.1.110.0280.00815.42
7.1.100.0300.00715.41
7.1.90.0270.00715.41
7.1.80.0240.00815.43
7.1.70.0260.00815.37
7.1.60.0280.00816.44
7.1.50.0260.00816.48
7.1.40.0260.00816.43
7.1.30.0250.00816.45
7.1.20.0260.00816.43
7.1.10.0250.00715.43
7.1.00.0240.00815.42
7.0.330.0310.00715.13
7.0.320.0250.00815.12
7.0.310.0310.00715.03
7.0.300.0320.00715.03
7.0.290.0320.00715.06
7.0.280.0310.00715.04
7.0.270.0300.00715.06
7.0.260.0300.00715.05
7.0.250.0310.00715.13
7.0.240.0300.00715.16
7.0.230.0260.00715.16
7.0.220.0290.00815.09
7.0.210.0250.00715.10
7.0.200.0260.00715.09
7.0.190.0250.00815.11
7.0.180.0260.00715.09
7.0.170.0270.00715.12
7.0.160.0290.00815.10
7.0.150.0240.00815.09
7.0.140.0250.00715.10
7.0.130.0230.00715.15
7.0.120.0240.00715.15
7.0.110.0240.00715.10
7.0.100.0240.00715.13
7.0.90.0220.00715.10
7.0.80.0230.00715.09
7.0.70.0210.00815.08
7.0.60.0240.00715.09
7.0.50.0240.00715.10
7.0.40.0230.00715.13
7.0.30.0230.00815.13
7.0.20.0220.00715.09
7.0.10.0250.00715.13
7.0.00.0220.00715.10
5.6.400.0130.00915.62
5.6.390.0150.00815.64
5.6.380.0150.00815.42
5.6.370.0140.00915.66
5.6.360.0140.00915.68
5.6.350.0140.00815.67
5.6.340.0150.00815.68
5.6.330.0150.00815.67
5.6.320.0150.00815.67
5.6.310.0140.00815.68
5.6.300.0140.00815.64
5.6.290.0140.00815.67
5.6.280.0150.00915.66
5.6.270.0150.00915.67
5.6.260.0140.00815.70
5.6.250.0140.00915.72
5.6.240.0140.00815.69
5.6.230.0150.00815.74
5.6.220.0140.00815.71
5.6.210.0140.00815.68
5.6.200.0140.00815.73
5.6.190.0160.00815.74
5.6.180.0140.00815.69
5.6.170.0140.00815.72
5.6.160.0140.00815.68
5.6.150.0140.00815.72
5.6.140.0150.00815.67
5.6.130.0140.00815.68
5.6.120.0150.00915.70
5.6.110.0140.00915.67
5.6.100.0140.00815.67
5.6.90.0140.00815.65
5.6.80.0140.00715.62
5.6.70.0120.00815.68
5.6.60.0140.00815.69
5.6.50.0140.00815.65
5.6.40.0130.00815.62
5.6.30.0160.00815.62
5.6.20.0130.00815.62
5.6.10.0130.00915.62
5.6.00.0140.00915.62

preferences:
37.1 ms | 403 KiB | 5 Q