3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'ratePlanId' => 1, 'name' => 'Test', 'type' => 'Discount::TYPE_COMBINED', 'priority' => 1, 'bookingStartDate' => (new \DateTime('+7 days'))->format('Y-m-d'), 'bookingEndDate' => (new \DateTime('+14 days'))->format('Y-m-d'), 'periodType' => Discount::PERIOD_TYPE_CHECKIN, 'periodStartDate' => (new \DateTime('+14 days'))->format('Y-m-d'), 'periodEndDate' => (new \DateTime('+21 days'))->format('Y-m-d'), 'maxAppliedRoom' => 1, 'stock' => 5, 'remark' => 'remark', 'cancelOption' => 1, 'monday' => 1, 'tuesday' => 1, 'wednesday' => 1, 'thursday' => 1, 'friday' => 1, 'saturday' => 1, 'sunday' => 1, 'combinations' => [ [ 'combinationType' => 'Discount::TYPE_EARLY_BOOKING', 'minStay' => 1, 'daysBeforeCheckinMin' => 1, 'daysBeforeCheckinMax' => 4, // 'amount' => 10, // 'amountType' => Discount::AMOUNT_TYPE_PER_PAX_PRICE ], [ 'combinationType' => 'Discount::TYPE_LAST_MINUTE', 'minStay' => 1, 'daysBeforeCheckinMin' => 1, 'daysBeforeCheckinMax' => 4, 'amount' => 10, 'amountType' => Discount::AMOUNT_TYPE_PERCENTAGE ], ], ]; echo json_decode($array);

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.0140.00716.75
8.3.50.0100.01021.33
8.3.40.0120.00619.20
8.3.30.0040.01119.10
8.3.20.0050.00220.34
8.3.10.0040.00421.76
8.3.00.0000.00923.54
8.2.180.0070.00718.41
8.2.170.0070.01022.96
8.2.160.0110.00420.39
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00420.91
8.2.120.0070.00026.35
8.2.110.0060.00320.48
8.2.100.0090.00318.16
8.2.90.0040.00419.46
8.2.80.0040.00417.97
8.2.70.0040.00418.00
8.2.60.0060.00317.93
8.2.50.0040.00418.09
8.2.40.0040.00422.45
8.2.30.0020.00519.69
8.2.20.0030.00518.19
8.2.10.0070.00018.14
8.2.00.0070.00018.17
8.1.280.0150.00625.92
8.1.270.0030.00522.11
8.1.260.0020.00528.09
8.1.250.0040.00428.09
8.1.240.0040.00422.18
8.1.230.0070.00422.21
8.1.220.0000.00717.88
8.1.210.0080.00018.77
8.1.200.0000.00917.72
8.1.190.0000.00817.47
8.1.180.0030.00518.10
8.1.170.0080.00018.87
8.1.160.0050.00220.95
8.1.150.0050.00520.72
8.1.140.0080.00019.68
8.1.130.0000.00717.85
8.1.120.0070.00017.71
8.1.110.0040.00417.73
8.1.100.0060.00317.63
8.1.90.0000.00817.77
8.1.80.0030.00617.76
8.1.70.0070.00017.71
8.1.60.0060.00317.70
8.1.50.0000.00817.66
8.1.40.0060.00617.55
8.1.30.0000.00817.79
8.1.20.0040.00417.66
8.1.10.0080.00017.66
8.1.00.0000.00817.72
8.0.300.0040.00419.09
8.0.290.0070.00016.97
8.0.280.0070.00018.65
8.0.270.0080.00017.34
8.0.260.0030.00517.45
8.0.250.0030.00317.27
8.0.240.0080.00017.35
8.0.230.0000.00717.27
8.0.220.0040.00417.13
8.0.210.0070.00017.27
8.0.200.0000.00717.16
8.0.190.0110.00017.20
8.0.180.0000.00717.15
8.0.170.0030.00617.15
8.0.160.0050.00317.27
8.0.150.0040.00417.07
8.0.140.0000.00817.08
8.0.130.0000.00613.52
8.0.120.0040.00417.17
8.0.110.0030.00517.27
8.0.100.0000.00817.13
8.0.90.0000.00717.35
8.0.80.0060.01317.12
8.0.70.0080.00017.13
8.0.60.0030.00617.04
8.0.50.0030.00517.27
8.0.30.0080.01317.27
8.0.20.0100.01017.52
8.0.10.0000.00717.18
8.0.00.0140.01217.03
7.4.330.0000.00516.84
7.4.320.0030.00316.76
7.4.300.0060.00316.76
7.4.290.0070.00016.55
7.4.280.0050.00316.66
7.4.270.0030.00316.76
7.4.260.0030.00316.67
7.4.250.0000.00716.62
7.4.240.0040.00416.76
7.4.230.0000.00716.65
7.4.220.0180.00616.71
7.4.210.0040.01116.80
7.4.200.0000.00716.85
7.4.160.0120.00616.64
7.4.150.0130.00317.40
7.4.140.0130.00617.86
7.4.130.0120.00816.85
7.4.120.0150.00616.57
7.4.110.0100.00716.82
7.4.100.0080.00916.75
7.4.90.0120.00616.95
7.4.80.0130.00519.39
7.4.70.0100.01016.64
7.4.60.0150.00316.63
7.4.50.0030.01016.66
7.4.40.0150.00416.82
7.4.30.0110.01116.92
7.4.00.0120.00315.27
7.3.330.0020.00213.22
7.3.320.0060.00013.39
7.3.310.0000.00716.57
7.3.300.0070.00016.50
7.3.290.0070.01016.47
7.3.280.0090.00916.45
7.3.270.0120.00617.40
7.3.260.0070.01516.70
7.3.250.0080.00916.74
7.3.240.0120.00616.60
7.3.230.0120.00616.66
7.3.210.0100.00716.69
7.3.200.0150.00619.39
7.3.190.0030.01316.66
7.3.180.0030.01916.50
7.3.170.0170.00416.68
7.3.160.0060.00916.63
7.3.10.0050.00716.64
7.3.00.0050.00816.74
7.2.330.0070.01116.55
7.2.320.0110.00516.76
7.2.310.0070.01017.00
7.2.300.0030.01417.03
7.2.290.0120.00616.71
7.2.130.0070.00616.92
7.2.120.0080.00717.18
7.2.110.0070.00617.13
7.2.100.0030.01017.05
7.2.90.0080.00917.05
7.2.80.0080.00516.93
7.2.70.0100.00417.03
7.2.60.0090.00516.99
7.2.50.0070.00616.76
7.2.40.0050.01016.82
7.2.30.0060.00717.10
7.2.20.0040.01317.20
7.2.10.0040.01116.98
7.2.00.0070.00717.92
7.1.250.0040.00816.03
7.1.200.0030.01215.89
7.1.100.0000.01517.95
7.1.70.0030.00617.11
7.1.60.0000.01419.40
7.1.50.0000.01216.92
7.1.00.0070.07322.30
7.0.200.0310.00614.60
7.0.60.0330.08020.03
7.0.50.0030.04017.82
7.0.40.0030.08020.04
7.0.30.0270.08020.30
7.0.20.0270.06720.06
7.0.10.0070.08720.13
7.0.00.0200.07019.99
5.6.280.0000.06721.11
5.6.210.0170.06320.48
5.6.200.0030.08718.13
5.6.190.0100.08720.61
5.6.180.0270.06320.67
5.6.170.0300.04720.33
5.6.160.0070.04720.41
5.6.150.0030.08718.18
5.6.140.0000.04018.18
5.6.130.0000.04318.17
5.6.120.0100.08721.05
5.6.110.0130.07721.13
5.6.100.0070.08721.07
5.6.90.0170.05321.01
5.6.80.0130.07320.37
5.5.350.0170.06020.45
5.5.340.0030.06317.91
5.5.330.0030.07320.25
5.5.320.0630.06020.20
5.5.310.0400.07020.34
5.5.300.0000.04717.98
5.5.290.0030.06018.02
5.5.280.0100.05320.77
5.5.270.0100.07020.84
5.5.260.0170.07020.80
5.5.250.0100.05320.72
5.5.240.0130.03320.35

preferences:
56.2 ms | 401 KiB | 5 Q