3v4l.org

run code in 300+ PHP versions simultaneously
<?php $days_allowed = array('ID' => '1', 'monday' => '1', 'tuesday' => '1', 'wednesday' => '1', 'thursday' => '1', 'friday' => '1', 'saturday' => '0', 'sunday' => '0'); $days = array(); if($days_allowed["monday"] == 1) { array_push($days, '1'); } if($days_allowed["tuesday"] == 1) { array_push($days, '2'); } if($days_allowed["wednesday"] == 1) { array_push($days, '3'); } if($days_allowed["thursday"] == 1) { array_push($days, '4'); } if($days_allowed["friday"] == 1) { array_push($days, '5'); } if($days_allowed["saturday"] == 1) { array_push($days, '6'); } if($days_allowed["sunday"] == 1) { array_push($days, '0'); } //if (!($_hebeproductionDeliveryDate->format("w") == 2 || $_hebeproductionDeliveryDate->format("w") == 4 || $_hebeproductionDeliveryDate->format("w") == 6)) { if (!(in_array($_hebeproductionDeliveryDate->format("w"), $days))) { echo "do error"; }

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.0000.01418.68
8.3.50.0140.00316.65
8.3.40.0110.00419.02
8.3.30.0090.00618.70
8.3.20.0000.00720.61
8.3.10.0100.00021.92
8.3.00.0080.00022.27
8.2.180.0070.01418.54
8.2.170.0140.00022.96
8.2.160.0080.00522.11
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0060.00319.95
8.2.110.0030.00622.07
8.2.100.0080.00417.97
8.2.90.0040.00418.34
8.2.80.0040.00417.97
8.2.70.0000.00818.05
8.2.60.0040.00418.22
8.2.50.0000.00818.10
8.2.40.0070.00020.52
8.2.30.0040.00419.38
8.2.20.0000.00718.21
8.2.10.0040.00419.32
8.2.00.0050.00318.04
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00623.77
8.1.230.0080.00320.87
8.1.220.0040.00417.74
8.1.210.0080.00018.94
8.1.200.0030.00617.35
8.1.190.0050.00317.13
8.1.180.0060.00318.10
8.1.170.0080.00018.61
8.1.160.0000.00718.93
8.1.150.0050.00218.86
8.1.140.0000.00720.28
8.1.130.0040.00820.20
8.1.120.0000.00817.37
8.1.110.0070.00017.36
8.1.100.0080.00017.46
8.1.90.0050.00517.36
8.1.80.0030.00617.45
8.1.70.0050.00217.48
8.1.60.0000.00917.60
8.1.50.0070.00017.53
8.1.40.0050.00517.51
8.1.30.0050.00317.73
8.1.20.0040.00417.66
8.1.10.0040.00417.47
8.1.00.0000.00717.41
8.0.300.0000.00720.04
8.0.290.0070.00016.75
8.0.280.0070.00018.34
8.0.270.0030.00317.12
8.0.260.0030.00320.09
8.0.250.0070.00016.95
8.0.240.0030.00317.02
8.0.230.0050.00316.99
8.0.220.0040.00416.96
8.0.210.0050.00517.01
8.0.200.0000.00817.03
8.0.190.0000.00716.90
8.0.180.0040.00416.98
8.0.170.0030.00517.04
8.0.160.0080.00017.02
8.0.150.0040.00416.86
8.0.140.0070.00016.88
8.0.130.0030.00313.44
8.0.120.0080.00016.97
8.0.110.0000.00716.99
8.0.100.0020.00516.87
8.0.90.0050.00316.89
8.0.80.0030.01216.90
8.0.70.0040.00416.99
8.0.60.0000.00716.91
8.0.50.0000.00716.99
8.0.30.0140.00617.20
8.0.20.0130.01017.06
8.0.10.0040.00417.01
8.0.00.0120.01016.74
7.4.330.0040.00015.55
7.4.320.0030.00316.64
7.4.300.0060.00016.57
7.4.290.0000.00716.58
7.4.280.0040.00416.62
7.4.270.0060.00016.60
7.4.260.0030.00616.63
7.4.250.0070.00016.59
7.4.240.0040.00416.47
7.4.230.0070.00016.34
7.4.220.0040.00416.69
7.4.210.0100.00816.64
7.4.200.0070.00016.73
7.4.160.0080.00916.50
7.4.140.0110.00517.86
7.4.130.0070.01016.37
7.4.120.0150.00316.60
7.4.110.0120.00616.66
7.4.100.0110.01416.32
7.4.90.0130.00316.64
7.4.80.0150.00919.39
7.4.70.0110.00716.43
7.4.60.0070.01016.51
7.4.50.0030.01016.09
7.4.40.0110.00816.79
7.4.00.0110.00714.92
7.3.330.0000.00513.17
7.3.320.0000.00613.13
7.3.310.0030.00316.16
7.3.300.0040.00416.24
7.3.290.0090.01016.38
7.3.280.0090.00616.24
7.3.260.0110.00816.40
7.3.240.0110.00816.43
7.3.230.0100.00716.29
7.3.210.0140.00316.29
7.3.200.0130.00316.34
7.3.190.0040.01416.54
7.3.180.0100.01016.27
7.3.170.0080.00816.47
7.3.160.0070.01116.66
7.3.120.0100.00314.57
7.3.110.0130.00614.73
7.3.100.0090.00615.01
7.3.90.0040.00715.04
7.3.80.0000.01314.75
7.3.70.0100.00314.84
7.3.60.0030.00914.58
7.3.50.0120.00314.81
7.3.40.0030.01414.72
7.3.30.0050.01214.52
7.3.20.0400.00715.49
7.3.10.0280.00315.63
7.3.00.0250.01015.76
7.2.330.0130.00616.71
7.2.320.0030.01316.58
7.2.310.0060.01116.52
7.2.300.0070.01116.67
7.2.290.0070.01016.75
7.2.250.0070.01415.15
7.2.240.0030.01714.75
7.2.230.0040.00815.07
7.2.220.0090.01014.96
7.2.210.0000.01415.21
7.2.200.0070.01015.11
7.2.190.0060.00914.84
7.2.180.0140.00314.89
7.2.170.0070.01115.05
7.2.160.0150.00615.17
7.2.150.0400.01014.97
7.2.140.0470.00715.16
7.2.130.0400.00714.87
7.2.120.0470.00015.02
7.2.110.0480.00714.96
7.2.100.0560.00314.94
7.2.90.1350.01014.73
7.2.80.0430.00714.59
7.2.70.0540.00314.84
7.2.60.0510.01114.93
7.2.50.0470.00715.13
7.2.40.0480.00315.21
7.2.30.0360.00715.17
7.2.20.0370.00314.85
7.2.10.0360.01015.20
7.2.00.0370.01015.00
7.1.330.0000.01415.77
7.1.320.0040.00715.72
7.1.310.0090.00615.48
7.1.300.0070.00715.75
7.1.290.0070.00315.86
7.1.280.0030.01315.93
7.1.270.0260.00514.95
7.1.260.0300.00414.63
7.1.250.0390.00713.89

preferences:
26.36 ms | 401 KiB | 5 Q