3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mandatoryFields = ['a', 'b', 'c']; $checkIfMandatoryFieldsAreMissing = function($mandatoryField){ return false; }; $checkedMandatoryFields = array_map($checkIfMandatoryFieldsAreMissing, $mandatoryFields);

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.00716.38
8.3.50.0040.01116.27
8.3.40.0000.01418.77
8.3.30.0150.00018.68
8.3.20.0040.00418.70
8.3.10.0040.00421.73
8.3.00.0000.00821.71
8.2.180.0040.01118.43
8.2.170.0070.00722.96
8.2.160.0100.00322.06
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00419.82
8.2.120.0050.00226.35
8.2.110.0040.00422.02
8.2.100.0090.00317.91
8.2.90.0080.00017.63
8.2.80.0040.00417.97
8.2.70.0040.00417.93
8.2.60.0050.00319.37
8.2.50.0000.00818.10
8.2.40.0030.00520.60
8.2.30.0040.00419.13
8.2.20.0000.00717.98
8.2.10.0070.00018.12
8.2.00.0070.00017.72
8.1.280.0110.00625.92
8.1.270.0100.00323.87
8.1.260.0000.00828.09
8.1.250.0070.00028.09
8.1.240.0060.00323.79
8.1.230.0050.00519.07
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.22
8.1.180.0030.00518.10
8.1.170.0040.00418.72
8.1.160.0020.00523.84
8.1.150.0040.00418.80
8.1.140.0040.00419.57
8.1.130.0000.00717.70
8.1.120.0050.00317.45
8.1.110.0040.00417.34
8.1.100.0040.00417.44
8.1.90.0030.00617.31
8.1.80.0040.00417.29
8.1.70.0080.00017.48
8.1.60.0080.00017.48
8.1.50.0040.00417.52
8.1.40.0040.00417.44
8.1.30.0000.00817.68
8.1.20.0080.00017.57
8.1.10.0080.00017.52
8.1.00.0070.00317.39
8.0.300.0070.00018.77
8.0.290.0090.00016.63
8.0.280.0000.00718.41
8.0.270.0030.00317.30
8.0.260.0030.00317.25
8.0.250.0070.00016.93
8.0.240.0000.00716.76
8.0.230.0030.00316.88
8.0.220.0070.00016.84
8.0.210.0000.00716.80
8.0.200.0000.00716.82
8.0.190.0030.00316.93
8.0.180.0040.00416.93
8.0.170.0080.00016.89
8.0.160.0040.00416.85
8.0.150.0030.00316.77
8.0.140.0080.00016.72
8.0.130.0000.00513.25
8.0.120.0000.00816.91
8.0.110.0030.00316.71
8.0.100.0080.00016.87
8.0.90.0000.00716.95
8.0.80.0060.01016.77
8.0.70.0040.00416.95
8.0.60.0000.00716.92
8.0.50.0040.00416.87
8.0.30.0100.00617.13
8.0.20.0100.01017.40
8.0.10.0050.00216.79
8.0.00.0090.00916.77
7.4.330.0000.00515.55
7.4.320.0000.00616.46
7.4.300.0000.00716.59
7.4.290.0030.00316.61
7.4.280.0070.00416.59
7.4.270.0000.00716.59
7.4.260.0030.00316.48
7.4.250.0000.00816.45
7.4.240.0000.00716.52
7.4.230.0000.00716.42
7.4.220.0140.01016.51
7.4.210.0070.01316.64
7.4.200.0000.00716.66
7.4.160.0100.00616.51
7.4.150.0150.00317.40
7.4.140.0130.00617.86
7.4.130.0100.00816.43
7.4.120.0060.01116.44
7.4.110.0100.00716.49
7.4.100.0070.01016.47
7.4.90.0140.00416.37
7.4.80.0140.00419.39
7.4.70.0060.00916.37
7.4.60.0070.01016.36
7.4.50.0150.00016.32
7.4.40.0060.01116.60
7.4.30.0100.00716.48
7.4.10.0040.01414.78
7.4.00.0090.00914.90
7.3.330.0030.00313.02
7.3.320.0060.00013.12
7.3.310.0040.00416.04
7.3.300.0000.00716.20
7.3.290.0030.01016.21
7.3.280.0070.01116.22
7.3.270.0130.00317.40
7.3.260.0110.00716.50
7.3.250.0100.00916.28
7.3.240.0120.00716.45
7.3.230.0130.00716.39
7.3.210.0060.01116.31
7.3.200.0080.00816.58
7.3.190.0080.00816.21
7.3.180.0120.00316.22
7.3.170.0000.01916.34
7.3.160.0200.00016.12
7.3.130.0000.01414.63
7.3.120.0050.01314.82
7.3.110.0120.00714.73
7.3.100.0040.01014.59
7.3.90.0080.00714.78
7.3.80.0060.00714.73
7.3.70.0050.00914.61
7.3.60.0060.00914.75
7.3.50.0080.00714.46
7.3.40.0090.00714.70
7.3.30.0040.01014.55
7.3.20.0050.01116.45
7.3.10.0070.00816.25
7.3.00.0080.00716.42
7.2.330.0070.01416.68
7.2.320.0150.00316.68
7.2.310.0040.01216.71
7.2.300.0130.00916.66
7.2.290.0070.01516.45
7.2.260.0100.01014.97
7.2.250.0100.00814.97
7.2.240.0060.01014.81
7.2.230.0090.00914.94
7.2.220.0040.00814.93
7.2.210.0040.01214.83
7.2.200.0020.00914.71
7.2.190.0070.00815.01
7.2.180.0060.00614.90
7.2.170.0030.00914.90
7.2.160.0000.01614.89
7.2.150.0040.01216.87
7.2.140.0070.00417.06
7.2.130.0070.00916.70
7.2.120.0080.00816.64
7.2.110.0090.00716.64
7.2.100.0100.00816.29
7.2.90.0120.00816.69
7.2.80.0130.00616.53
7.2.70.0070.00816.76
7.2.60.0060.01416.63
7.2.50.0100.00816.54
7.2.40.0110.00616.73
7.2.30.0060.00916.57
7.2.20.0050.00816.46
7.2.10.0090.00616.80
7.2.00.0050.01017.68
7.1.330.0070.00715.78
7.1.320.0030.00815.69
7.1.310.0040.01015.79
7.1.300.0080.00615.49
7.1.290.0090.00615.79
7.1.280.0040.01015.86
7.1.270.0060.00515.58
7.1.260.0020.01315.56
7.1.250.0090.00515.47
7.1.240.0060.00615.68
7.1.230.0100.00315.75
7.1.220.0100.00315.71
7.1.210.0030.00915.82
7.1.200.0060.00315.74
7.1.190.0030.00915.55
7.1.180.0030.00615.84
7.1.170.0060.00615.55
7.1.160.0040.00415.75
7.1.150.0000.01115.42
7.1.140.0040.00715.68
7.1.130.0030.01015.57
7.1.120.0070.01015.34
7.1.110.0030.01015.69
7.1.100.0060.00615.94
7.1.90.0070.00315.79
7.1.80.0040.01215.50
7.1.70.0070.00516.40
7.1.60.0030.00616.37
7.1.50.0040.01115.88
7.1.40.0040.01115.63
7.1.30.0070.00715.66
7.1.20.0030.00815.67
7.1.10.0040.01215.79
7.1.00.0030.04319.14
7.0.330.0060.00615.27
7.0.320.0040.00715.28
7.0.310.0000.01515.43
7.0.300.0040.00915.30
7.0.290.0060.00615.32
7.0.280.0060.00615.39
7.0.270.0040.00715.44
7.0.260.0030.01015.32
7.0.250.0070.00715.48
7.0.240.0040.00415.32
7.0.230.0030.00615.47
7.0.220.0030.01015.31
7.0.210.0060.00915.41
7.0.200.0270.00514.90
7.0.190.0110.00015.41
7.0.180.0040.01115.44
7.0.170.0070.00715.36
7.0.160.0030.00715.36
7.0.150.0070.01015.29
7.0.140.0120.00315.39
7.0.130.0040.01215.37
7.0.120.0090.03518.62
7.0.110.0080.03618.81
7.0.100.0070.03218.76
7.0.90.0150.02518.74
7.0.80.0070.03018.67
7.0.70.0120.03018.72
7.0.60.0070.03218.75
7.0.50.0070.04218.85
7.0.40.0120.03117.84
7.0.30.0050.04417.67
7.0.20.0050.03817.74
7.0.10.0100.03217.72
7.0.00.0070.03317.79
5.6.400.0030.00714.35
5.6.390.0070.00314.18
5.6.380.0030.00614.07
5.6.370.0040.00814.02
5.6.360.0070.00714.02
5.6.350.0070.00414.25
5.6.340.0080.00414.26
5.6.330.0040.00714.05
5.6.320.0090.00614.02
5.6.310.0120.00314.09
5.6.300.0100.00314.32
5.6.290.0070.00714.11
5.6.280.0000.01113.98
5.6.270.0080.03617.79
5.6.260.0150.02517.73
5.6.250.0050.03517.60
5.6.240.0140.03017.62
5.6.230.0100.03517.49
5.6.220.0080.03517.70
5.6.210.0180.03017.38
5.6.200.0080.05217.57
5.6.190.0100.03817.64
5.6.180.0100.03417.45
5.6.170.0130.03317.71
5.6.160.0130.03817.66
5.6.150.0080.04317.55
5.6.140.0120.03317.70
5.6.130.0180.03217.66
5.6.120.0150.03617.55
5.6.110.0110.03417.62
5.6.100.0070.03517.77
5.6.90.0180.03517.45
5.6.80.0180.03617.24
5.6.70.0070.03717.37
5.6.60.0020.05217.22
5.6.50.0170.02517.15
5.6.40.0100.03317.21
5.6.30.0080.03717.09
5.6.20.0130.03617.30
5.6.10.0130.02817.22
5.6.00.0070.03517.16

preferences:
57.41 ms | 401 KiB | 5 Q