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 "; } 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.40.0040.01118.85
8.3.30.0060.00920.20
8.3.20.0040.00420.14
8.3.10.0080.00021.79
8.3.00.0080.00022.43
8.2.170.0170.00322.96
8.2.160.0030.01022.11
8.2.150.0080.00024.18
8.2.140.0100.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00421.04
8.2.110.0060.00322.28
8.2.100.0050.00517.78
8.2.90.0070.00019.17
8.2.80.0040.00419.23
8.2.70.0040.00417.50
8.2.60.0070.00017.93
8.2.50.0030.00618.07
8.2.40.0070.00018.09
8.2.30.0040.00419.29
8.2.20.0040.00417.70
8.2.10.0070.00017.73
8.2.00.0040.00417.74
8.1.270.0100.00023.99
8.1.260.0070.00026.35
8.1.250.0030.00728.09
8.1.240.0060.00323.96
8.1.230.0080.00319.17
8.1.220.0080.00017.76
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00817.30
8.1.180.0090.00019.01
8.1.170.0030.00618.44
8.1.160.0000.00818.93
8.1.150.0050.00218.74
8.1.140.0070.00017.40
8.1.130.0040.00417.73
8.1.120.0040.00417.43
8.1.110.0080.00017.49
8.1.100.0050.00217.33
8.1.90.0040.00417.47
8.1.80.0000.00717.42
8.1.70.0030.00317.35
8.1.60.0000.00817.53
8.1.50.0000.00817.54
8.1.40.0050.00317.51
8.1.30.0000.00717.51
8.1.20.0040.00417.59
8.1.10.0000.00717.50
8.1.00.0000.00817.48
8.0.300.0050.00318.77
8.0.290.0030.00517.04
8.0.280.0030.00318.51
8.0.270.0000.00717.25
8.0.260.0060.00016.90
8.0.250.0030.00316.99
8.0.240.0030.00516.86
8.0.230.0030.00317.00
8.0.220.0070.00016.88
8.0.210.0030.00316.84
8.0.200.0000.00616.87
8.0.190.0000.00816.82
8.0.180.0040.00416.93
8.0.170.0050.00316.88
8.0.160.0000.00716.91
8.0.150.0080.00016.79
8.0.140.0060.00316.78
8.0.130.0050.00013.27
8.0.120.0040.00416.86
8.0.110.0030.00316.79
8.0.100.0050.00316.71
8.0.90.0000.00716.93
8.0.80.0060.00916.94
8.0.70.0030.00516.79
8.0.60.0000.00816.71
8.0.50.0040.00416.89
8.0.30.0120.00917.11
8.0.20.0100.00717.40
8.0.10.0000.00716.89
8.0.00.0150.00916.75
7.4.330.0000.00415.00
7.4.320.0030.00316.48
7.4.300.0000.00716.64
7.4.290.0080.00016.57
7.4.280.0070.00316.59
7.4.270.0000.00716.55
7.4.260.0000.00613.38
7.4.250.0070.00016.59
7.4.240.0050.00216.61
7.4.230.0070.00016.39
7.4.220.0140.00416.63
7.4.210.0070.00716.62
7.4.200.0070.00016.66
7.4.190.0000.00716.64
7.4.160.0120.00616.51
7.4.150.0100.01017.40
7.4.140.0150.00717.86
7.4.130.0100.00616.54
7.4.120.0100.00716.66
7.4.110.0070.01116.63
7.4.100.0160.00016.51
7.4.90.0120.00616.48
7.4.80.0120.00919.39
7.4.70.0090.00616.51
7.4.60.0000.01716.34
7.4.50.0000.00816.57
7.4.40.0100.00722.77
7.4.30.0100.01216.61
7.4.10.0000.01114.83
7.4.00.0110.00514.97
7.3.330.0000.00512.98
7.3.320.0070.00012.94
7.3.310.0050.00215.99
7.3.300.0030.00315.99
7.3.290.0100.00316.14
7.3.280.0070.01116.20
7.3.270.0030.01317.40
7.3.260.0070.01016.54
7.3.250.0170.00316.11
7.3.240.0060.01516.45
7.3.230.0030.01316.39
7.3.210.0120.00616.19
7.3.200.0120.00619.39
7.3.190.0130.01016.26
7.3.180.0040.01116.46
7.3.170.0130.00316.30
7.3.160.0150.00316.25
7.3.130.0080.01114.72
7.3.120.0050.01214.78
7.3.110.0000.01514.84
7.3.100.0070.00714.69
7.3.90.0100.00714.75
7.3.80.0080.00614.63
7.3.70.0040.01114.70
7.3.60.0030.01314.43
7.3.50.0000.01214.55
7.3.40.0030.01014.61
7.3.30.0040.00714.69
7.3.20.0090.00616.55
7.3.10.0100.00416.37
7.3.00.0030.01216.25
7.2.330.0090.00916.68
7.2.320.0070.01016.36
7.2.310.0110.00616.38
7.2.300.0090.00916.28
7.2.290.0140.00716.46
7.2.260.0090.01015.09
7.2.250.0040.01414.92
7.2.240.0040.00815.14
7.2.230.0030.01415.15
7.2.220.0040.01414.86
7.2.210.0030.01014.57
7.2.200.0070.01114.86
7.2.190.0130.00314.93
7.2.180.0000.01514.77
7.2.170.0030.01414.90
7.2.160.0090.00614.76
7.2.150.0030.01216.72
7.2.140.0030.01016.76
7.2.130.0140.00516.44
7.2.120.0120.00516.59
7.2.110.0090.01016.29
7.2.100.0080.00616.54
7.2.90.0050.01016.62
7.2.80.0080.01116.37
7.2.70.0060.00916.57
7.2.60.0070.01016.42
7.2.50.0150.00916.58
7.2.40.0140.00716.62
7.2.30.0110.00816.69
7.2.20.0100.01016.59
7.2.10.0070.00816.64
7.2.00.0090.00817.29
7.1.330.0040.00815.69
7.1.320.0030.01115.55
7.1.310.0100.00315.61
7.1.300.0060.00915.56
7.1.290.0030.00615.57
7.1.280.0070.00315.79
7.1.270.0070.00715.46
7.1.260.0040.00415.69
7.1.250.0080.00815.46
7.1.240.0090.00015.46
7.1.230.0070.00315.79
7.1.220.0040.00815.84
7.1.210.0030.01015.75
7.1.200.0090.00615.77
7.1.190.0060.00615.57
7.1.180.0150.00015.59
7.1.170.0060.00615.64
7.1.160.0040.01115.66
7.1.150.0120.00015.80
7.1.140.0030.01015.52
7.1.130.0100.00315.52
7.1.120.0000.00915.70
7.1.110.0100.00315.79
7.1.100.0050.00616.70
7.1.90.0030.00615.51
7.1.80.0030.01015.71
7.1.70.0060.00616.29
7.1.60.0140.00517.47
7.1.50.0110.00615.96
7.1.40.0000.01515.90
7.1.30.0030.00715.64
7.1.20.0030.00815.35
7.1.10.0070.00715.57
7.1.00.0040.02318.90
7.0.330.0080.00815.57
7.0.320.0030.01315.34
7.0.310.0060.00615.19
7.0.300.0060.00615.49
7.0.290.0030.00915.38
7.0.280.0040.00715.47
7.0.270.0060.00615.32
7.0.260.0040.01115.23
7.0.250.0000.01715.49
7.0.240.0060.00315.52
7.0.230.0030.00915.25
7.0.220.0000.00815.53
7.0.210.0070.00315.40
7.0.200.0030.00816.06
7.0.190.0080.00515.39
7.0.180.0030.01015.68
7.0.170.0040.00715.46
7.0.160.0000.01215.50
7.0.150.0030.00715.35
7.0.140.0080.04018.65
7.0.130.0040.00815.45
7.0.120.0030.00915.47
7.0.110.0040.00715.13
7.0.100.0070.00715.06
7.0.90.0030.00915.62
7.0.80.0000.00815.34
7.0.70.0050.04518.59
7.0.60.0070.03518.67
7.0.50.0020.04318.65
7.0.40.0080.04316.63
7.0.30.0080.02716.83
7.0.20.0070.04316.77
7.0.10.0080.04316.85
7.0.00.0080.04316.79
5.6.400.0030.00914.30
5.6.390.0000.01114.53
5.6.380.0030.01314.42
5.6.370.0030.01314.04
5.6.360.0120.00314.29
5.6.350.0000.01414.27
5.6.340.0000.01214.42
5.6.330.0030.01014.66
5.6.320.0060.00913.92
5.6.310.0070.00714.54
5.6.300.0060.00914.11
5.6.290.0030.01114.63
5.6.280.0030.04117.85
5.6.270.0000.01114.69
5.6.260.0100.00314.27
5.6.250.0130.00014.52
5.6.240.0060.00614.24
5.6.230.0060.00314.09
5.6.220.0100.03317.54
5.6.210.0030.04517.45
5.6.200.0020.03717.76
5.6.190.0030.04517.76
5.6.180.0050.04417.56
5.6.170.0100.04517.56
5.6.160.0060.03317.54
5.6.150.0050.04517.60
5.6.140.0020.03617.77
5.6.130.0100.03617.66
5.6.120.0080.03517.62
5.6.110.0070.04717.78
5.6.100.0050.03417.65
5.6.90.0030.03517.51
5.6.80.0040.04017.29
5.6.70.0030.02717.23
5.6.60.0050.04217.47
5.6.50.0080.04417.47
5.6.40.0020.03917.25
5.6.30.0060.02817.27
5.6.20.0060.04117.22
5.6.10.0030.03417.20
5.6.00.0040.03417.24
5.5.380.0040.00414.25
5.5.370.0030.00914.34
5.5.360.0040.04417.29
5.5.350.0050.03317.37
5.5.340.0030.04117.46
5.5.330.0050.04417.52
5.5.320.0050.04917.39
5.5.310.0030.04517.48
5.5.300.0100.03317.35
5.5.290.0090.02117.48
5.5.280.0030.04317.58
5.5.270.0040.03917.44
5.5.260.0100.04517.37
5.5.250.0020.05017.60
5.5.240.0050.02717.19
5.5.230.0050.02117.17
5.5.220.0110.04117.17
5.5.210.0020.04417.21
5.5.200.0100.03717.20
5.5.190.0060.02117.12
5.5.180.0050.04817.22
5.5.170.0030.01014.16
5.5.160.0030.04717.12
5.5.150.0070.03917.11
5.5.140.0080.04017.24
5.5.130.0030.03817.33
5.5.120.0040.04517.06
5.5.110.0080.02517.22
5.5.100.0050.04417.06
5.5.90.0040.03217.05
5.5.80.0050.04617.10
5.5.70.0190.03317.09
5.5.60.0040.02916.99
5.5.50.0050.03317.18
5.5.40.0050.04116.88
5.5.30.0080.03217.11
5.5.20.0030.04516.92
5.5.10.0050.04416.95
5.5.00.0050.02517.11
5.4.450.0070.02316.15
5.4.440.0020.03016.18
5.4.430.0030.02616.12
5.4.420.0050.04016.18
5.4.410.0030.04216.09
5.4.400.0040.04315.99
5.4.390.0120.03316.00
5.4.380.0090.03415.93
5.4.370.0050.04015.95
5.4.360.0040.02616.00
5.4.350.0050.04116.09
5.4.340.0040.03316.09
5.4.330.0070.00412.95
5.4.320.0050.02716.01
5.4.310.0050.02515.87
5.4.300.0070.02715.96
5.4.290.0080.02516.00
5.4.280.0060.02215.99
5.4.270.0080.02215.95
5.4.260.0000.02515.88
5.4.250.0030.04016.01
5.4.240.0050.04015.99
5.4.230.0030.03016.04
5.4.220.0080.02816.01
5.4.210.0060.03716.04
5.4.200.0060.04016.02
5.4.190.0050.04216.08
5.4.180.0040.04016.00
5.4.170.0030.02515.92
5.4.160.0020.02815.98
5.4.150.0080.03315.94
5.4.140.0040.03014.65
5.4.130.0010.02314.65
5.4.120.0060.03114.61
5.4.110.0020.04014.59
5.4.100.0030.03014.58
5.4.90.0050.03814.59
5.4.80.0050.02114.62
5.4.70.0080.02214.68
5.4.60.0070.03114.65
5.4.50.0070.03714.62
5.4.40.0070.03314.59
5.4.30.0040.03714.66
5.4.20.0040.03614.58
5.4.10.0060.03114.68
5.4.00.0060.03714.36
5.3.290.0050.03413.79
5.3.280.0030.04113.70
5.3.270.0000.04713.76
5.3.260.0040.04313.75
5.3.250.0040.02213.75
5.3.240.0050.02513.77
5.3.230.0020.04513.77
5.3.220.0040.04113.75
5.3.210.0030.04013.74
5.3.200.0020.02413.68
5.3.190.0050.02813.75
5.3.180.0010.03413.66
5.3.170.0070.02813.68
5.3.160.0020.02213.73
5.3.150.0030.04113.75
5.3.140.0040.03713.75
5.3.130.0010.04113.73
5.3.120.0080.03813.73
5.3.110.0040.04213.75
5.3.100.0070.04213.49
5.3.90.0030.03713.46
5.3.80.0020.03813.46
5.3.70.0010.03413.36
5.3.60.0030.02513.35
5.3.50.0050.03813.37
5.3.40.0030.04013.44
5.3.30.0030.03713.41
5.3.20.0030.04113.27
5.3.10.0020.04013.23
5.3.00.0070.03813.18
5.2.170.0000.04712.29
5.2.160.0030.06012.29
5.2.150.0030.06712.29
5.2.140.0030.05312.29
5.2.130.0070.05712.29
5.2.120.0030.05012.29
5.2.110.0030.05312.29
5.2.100.0000.04312.29
5.2.90.0000.06312.29
5.2.80.0030.06312.29
5.2.70.0030.06312.29
5.2.60.0070.06012.29
5.2.50.0030.04712.29
5.2.40.0070.05312.29
5.2.30.0000.04312.29
5.2.20.0030.06012.29
5.2.10.0000.06312.29
5.2.00.0000.05312.29
5.1.60.0000.05712.29
5.1.50.0030.03712.29
5.1.40.0000.04012.29
5.1.30.0070.05012.29
5.1.20.0030.05312.29
5.1.10.0030.02312.29
5.1.00.0070.05312.29
5.0.50.0000.03312.29
5.0.40.0030.04012.29
5.0.30.0000.04312.29
5.0.20.0030.02312.29
5.0.10.0100.04012.29
5.0.00.0000.07012.29
4.4.90.0070.02312.29
4.4.80.0000.03012.29
4.4.70.0000.03712.29
4.4.60.0030.03312.29
4.4.50.0000.02712.29
4.4.40.0030.04012.29
4.4.30.0030.03312.29
4.4.20.0000.02012.29
4.4.10.0000.03312.29
4.4.00.0000.05312.29
4.3.110.0030.02312.29
4.3.100.0000.01712.29
4.3.90.0000.03712.29
4.3.80.0030.04312.29
4.3.70.0030.03312.29
4.3.60.0000.03012.29
4.3.50.0070.03012.29
4.3.40.0030.05012.29
4.3.30.0000.04012.29
4.3.20.0000.03712.29
4.3.10.0000.03712.29
4.3.00.0000.03712.29

preferences:
39.22 ms | 400 KiB | 5 Q