3v4l.org

run code in 300+ PHP versions simultaneously
<?php $required = array(); if (is_null($required) && !is_array($required)) { throw new Exception('The names of required fields must be an array, even if only one field is required.'); } else { echo "The if clause was not run /n"; } echo is_array($required)?'true':'false';

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.0070.01118.18
8.3.50.0100.00821.27
8.3.40.0140.00018.56
8.3.30.0140.00720.15
8.3.20.0000.00820.20
8.3.10.0090.00021.92
8.3.00.0000.00822.39
8.2.180.0080.00816.75
8.2.170.0100.01022.96
8.2.160.0070.00722.11
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00020.86
8.2.110.0070.00321.06
8.2.100.0070.00417.71
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0080.00017.50
8.2.60.0000.00918.04
8.2.50.0040.00418.10
8.2.40.0040.00417.97
8.2.30.0060.00319.44
8.2.20.0000.00817.66
8.2.10.0070.00017.61
8.2.00.0080.00017.78
8.1.280.0120.00325.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0090.00023.97
8.1.230.0110.00017.76
8.1.220.0000.00817.75
8.1.210.0000.00818.77
8.1.200.0030.00617.13
8.1.190.0060.00317.22
8.1.180.0030.00518.10
8.1.170.0000.00918.61
8.1.160.0050.00320.61
8.1.150.0040.00418.51
8.1.140.0040.00417.43
8.1.130.0000.00917.81
8.1.120.0040.00417.45
8.1.110.0070.00017.37
8.1.100.0050.00317.49
8.1.90.0000.00717.33
8.1.80.0030.00617.42
8.1.70.0000.00717.45
8.1.60.0020.00517.49
8.1.50.0070.00017.40
8.1.40.0000.00817.52
8.1.30.0040.00417.59
8.1.20.0000.00817.56
8.1.10.0000.00717.49
8.1.00.0000.01017.41
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0030.00317.27
8.0.260.0030.00316.68
8.0.250.0070.00016.94
8.0.240.0040.00416.92
8.0.230.0000.00716.86
8.0.220.0000.00716.89
8.0.210.0070.00016.87
8.0.200.0030.00316.84
8.0.190.0000.00716.93
8.0.180.0040.00416.88
8.0.170.0060.00316.95
8.0.160.0000.00817.00
8.0.150.0030.00316.74
8.0.140.0030.00616.86
8.0.130.0030.00313.25
8.0.120.0000.00816.77
8.0.110.0080.00016.84
8.0.100.0040.00417.00
8.0.90.0000.00816.91
8.0.80.0040.01116.88
8.0.70.0020.00516.76
8.0.60.0000.00716.79
8.0.50.0000.00816.84
8.0.30.0090.01216.96
8.0.20.0100.01117.40
8.0.10.0070.00016.81
8.0.00.0060.01116.71
7.4.330.0000.00415.00
7.4.320.0030.00316.58
7.4.300.0030.00316.50
7.4.290.0030.00316.62
7.4.280.0030.00716.57
7.4.270.0070.00016.56
7.4.260.0030.00313.27
7.4.250.0080.00016.51
7.4.240.0020.00516.52
7.4.230.0070.00016.41
7.4.220.0130.01316.56
7.4.210.0070.00816.59
7.4.200.0000.00716.59
7.4.190.0070.00016.75
7.4.160.0130.01016.45
7.4.150.0150.00317.40
7.4.140.0120.00517.86
7.4.130.0100.00716.43
7.4.120.0120.00516.38
7.4.110.0080.01216.51
7.4.100.0130.00316.59
7.4.90.0140.00316.56
7.4.80.0040.01519.39
7.4.70.0100.00716.42
7.4.60.0140.00316.57
7.4.50.0000.00816.50
7.4.40.0060.00922.77
7.4.30.0100.00716.55
7.4.00.0030.01014.71
7.3.330.0000.00512.91
7.3.320.0000.00612.89
7.3.310.0070.00016.21
7.3.300.0000.00716.10
7.3.290.0030.01116.10
7.3.280.0090.00916.15
7.3.270.0100.00617.40
7.3.260.0100.00716.37
7.3.250.0140.00316.33
7.3.240.0060.01716.31
7.3.230.0060.01116.39
7.3.210.0100.00616.21
7.3.200.0030.01919.39
7.3.190.0100.00716.46
7.3.180.0120.00416.25
7.3.170.0040.01216.27
7.3.160.0040.01116.34
7.3.120.0070.00714.94
7.3.10.0080.01116.34
7.3.00.0110.00716.26
7.2.330.0110.00716.45
7.2.320.0080.01016.63
7.2.310.0060.01716.50
7.2.300.0070.01116.46
7.2.290.0060.01016.50
7.2.130.0130.00516.67
7.2.120.0000.01516.52
7.2.110.0140.00716.59
7.2.100.0160.00316.58
7.2.90.0090.01016.18
7.2.80.0170.00416.74
7.2.70.0150.00916.64
7.2.60.0160.00216.76
7.2.50.0090.00716.53
7.2.40.0030.00716.46
7.2.30.0060.00916.73
7.2.20.0070.01016.51
7.2.10.0120.00616.77
7.2.00.0090.00518.08
7.1.250.0000.01115.38
7.1.200.0030.01315.54
7.1.100.0040.01117.91
7.1.70.0070.00316.74
7.1.60.0130.01319.32
7.1.50.0130.00616.62
7.1.00.0030.03322.45
7.0.200.0030.00616.55
7.0.140.0070.07322.07
7.0.60.0100.08320.02
7.0.50.0100.08017.66
7.0.40.0000.07720.21
7.0.30.0270.08320.17
7.0.20.0230.05720.17
7.0.10.0100.04720.16
7.0.00.0100.07320.03
5.6.280.0030.07321.10
5.6.210.0100.06320.73
5.6.200.0100.07018.16
5.6.190.0070.06020.44
5.6.180.0300.08020.43
5.6.170.0130.06720.44
5.6.160.0100.08020.38
5.6.150.0070.03718.13
5.6.140.0070.03718.19
5.6.130.0070.08018.15
5.6.120.0030.05321.14
5.6.110.0130.08320.96
5.6.100.0070.08721.02
5.6.90.0070.07021.01
5.6.80.0100.07720.40
5.6.70.0200.05020.41
5.5.350.0000.04320.38
5.5.340.0000.07717.96
5.5.330.0170.07320.14
5.5.320.0230.05020.28
5.5.310.0270.06720.28
5.5.300.0100.05717.91
5.5.290.0030.07718.02
5.5.280.0030.04720.96
5.5.270.0100.07720.64
5.5.260.0170.07320.88
5.5.250.0100.07020.54
5.5.240.0030.07320.04
5.4.450.0100.06019.58
5.4.440.0000.06019.41
5.4.430.0000.05319.41
5.4.420.0030.05019.45
5.4.410.0000.04319.11
5.4.400.0070.04019.14
5.4.390.0070.05719.06
5.4.380.0130.03719.09
5.4.370.0070.06018.81
5.4.360.0130.07319.22
5.4.350.0030.07319.11
5.4.340.0000.05718.80
5.4.320.0070.07318.93
5.4.310.0070.06018.80
5.4.300.0100.04019.11
5.4.290.0030.07018.88
5.4.280.0030.06019.24
5.4.270.0030.07719.08
5.4.260.0000.06319.15
5.4.250.0070.05719.08
5.4.240.0030.08019.08
5.4.230.0070.05719.17
5.4.220.0130.07019.05
5.4.210.0070.07318.78
5.4.200.0100.07019.23
5.4.190.0070.07319.22
5.4.180.0030.05018.79
5.4.170.0030.06318.80
5.4.160.0030.04319.13
5.4.150.0070.04319.16
5.4.140.0030.06716.47
5.4.130.0000.05016.25
5.4.120.0170.03316.26
5.4.110.0030.04716.22
5.4.100.0030.04716.21
5.4.90.0070.07316.35
5.4.80.0030.05716.44
5.4.70.0100.06016.38
5.4.60.0030.06716.28
5.4.50.0100.06316.45
5.4.40.0100.05016.31
5.4.30.0030.07316.40
5.4.20.0070.07316.28
5.4.10.0070.05316.38
5.4.00.0000.05315.82
5.3.290.0030.06314.82
5.3.280.0000.08314.82
5.3.270.0030.07314.82
5.3.260.0070.06714.82
5.3.250.0030.08014.82
5.3.240.0100.05714.82
5.3.230.0000.07714.82
5.3.220.0000.07014.82
5.3.210.0000.07014.82
5.3.200.0030.04714.82
5.3.190.0100.07314.82
5.3.180.0100.06714.82
5.3.170.0000.07714.82
5.3.160.0000.07314.82
5.3.150.0030.06714.82
5.3.140.0070.07314.82
5.3.130.0030.07014.82
5.3.120.0030.08014.82
5.3.110.0000.07314.82
5.3.100.0030.06014.82
5.3.90.0030.06714.82
5.3.80.0030.05714.82
5.3.70.0030.04714.82
5.3.60.0000.04714.82
5.3.50.0000.05714.82
5.3.40.0070.07314.82
5.3.30.0070.06014.82
5.3.20.0000.07314.82
5.3.10.0070.05314.82
5.3.00.0100.06014.82
5.2.170.0000.06314.82
5.2.160.0030.04714.82
5.2.150.0000.06314.82
5.2.140.0030.04314.82
5.2.130.0000.07014.82
5.2.120.0030.04014.82
5.2.110.0070.04314.82
5.2.100.0030.05714.82
5.2.90.0000.06714.82
5.2.80.0030.05314.82
5.2.70.0030.06014.82
5.2.60.0030.04714.82
5.2.50.0070.05714.82
5.2.40.0030.06314.82
5.2.30.0030.05014.82
5.2.20.0070.03014.82
5.2.10.0030.04314.82
5.2.00.0000.04014.82
5.1.60.0030.05314.82
5.1.50.0030.03714.82
5.1.40.0000.05714.82
5.1.30.0030.06014.82
5.1.20.0030.05314.82
5.1.10.0030.05314.82
5.1.00.0070.04014.82
5.0.50.0030.03014.82
5.0.40.0000.04314.82
5.0.30.0130.05014.82
5.0.20.0000.04714.82
5.0.10.0030.03014.82
5.0.00.0030.06014.82
4.4.90.0000.03014.82
4.4.80.0000.02314.82
4.4.70.0070.01314.82
4.4.60.0000.02314.82
4.4.50.0030.02714.82
4.4.40.0030.03714.82
4.4.30.0000.02714.82
4.4.20.0030.03014.82
4.4.10.0030.03314.82
4.4.00.0000.05314.82
4.3.110.0030.03314.82
4.3.100.0030.03014.82
4.3.90.0000.03714.82
4.3.80.0030.04314.82
4.3.70.0000.03014.82
4.3.60.0000.02714.82
4.3.50.0070.03014.82
4.3.40.0000.04014.82
4.3.30.0000.03014.82
4.3.20.0030.03314.82
4.3.10.0100.01714.82
4.3.00.0070.03314.82

preferences:
45.67 ms | 400 KiB | 5 Q