3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pricingSlot['0']['type'] = 'he'; $pricingSlot['0']['max'] = '5'; $pricingSlot['0']['min'] = '1'; $pricingSlot['1']['type'] = 'she'; $pricingSlot['1']['max'] = '15'; $pricingSlot['1']['min'] = '2'; print_r($pricingSlot); //$pricingSlot1[0][type] = 'he'; //$pricingSlot1[0][max] = '5'; //$pricingSlot1[0][min] = '1'; //$pricingSlot1[1][type] = 'she'; //$pricingSlot1[1][max] = '15'; //$pricingSlot1[1][min] = '2'; //print_r($pricingSlot1); foreach($pricingSlot as $key => $value) { print_r($value); } ?>

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.70.0070.00716.61
8.3.60.0060.00818.30
8.3.50.0120.00821.26
8.3.40.0140.00418.79
8.3.30.0100.00319.08
8.3.20.0080.00020.25
8.3.10.0030.00620.21
8.3.00.0090.00017.50
8.2.190.0030.01818.48
8.2.180.0070.00716.50
8.2.170.0110.00722.96
8.2.160.0100.00320.47
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00422.23
8.2.110.0060.00320.64
8.2.100.0030.00918.09
8.2.90.0030.00619.36
8.2.80.0100.00017.97
8.2.70.0030.00517.50
8.2.60.0000.00817.80
8.2.50.0030.00518.07
8.2.40.0040.00418.32
8.2.30.0050.00219.30
8.2.20.0090.00017.76
8.2.10.0000.00718.13
8.2.00.0040.00417.82
8.1.280.0140.00725.92
8.1.270.0040.00422.05
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00323.96
8.1.230.0070.00419.09
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0070.00317.48
8.1.190.0040.00417.22
8.1.180.0090.00018.10
8.1.170.0040.00418.61
8.1.160.0040.00422.03
8.1.150.0070.00018.82
8.1.140.0000.00717.36
8.1.130.0030.00317.88
8.1.120.0000.00717.36
8.1.110.0070.00017.32
8.1.100.0040.00417.46
8.1.90.0040.00417.38
8.1.80.0070.00017.39
8.1.70.0000.00717.40
8.1.60.0060.00317.50
8.1.50.0000.00817.57
8.1.40.0040.00417.39
8.1.30.0060.00317.70
8.1.20.0030.00517.66
8.1.10.0000.00717.52
8.1.00.0040.00417.50
8.0.300.0060.00318.77
8.0.290.0080.00016.63
8.0.280.0070.00018.36
8.0.270.0070.00017.25
8.0.260.0030.00317.33
8.0.250.0070.00016.94
8.0.240.0000.00716.98
8.0.230.0030.00316.84
8.0.220.0050.00216.77
8.0.210.0000.00716.81
8.0.200.0000.00716.97
8.0.190.0030.00516.99
8.0.180.0040.00416.81
8.0.170.0060.00316.86
8.0.160.0070.00016.85
8.0.150.0070.00016.84
8.0.140.0050.00316.88
8.0.130.0000.00613.32
8.0.120.0000.00816.83
8.0.110.0040.00416.93
8.0.100.0000.00716.91
8.0.90.0050.00316.68
8.0.80.0130.00316.78
8.0.70.0030.00516.77
8.0.60.0050.00216.69
8.0.50.0040.00416.92
8.0.30.0080.01117.06
8.0.20.0080.01217.40
8.0.10.0040.00416.90
8.0.00.0090.00816.79
7.4.330.0030.00315.05
7.4.320.0000.00716.65
7.4.300.0000.00616.55
7.4.290.0000.00716.57
7.4.280.0000.00716.48
7.4.270.0030.00316.59
7.4.260.0070.00016.61
7.4.250.0040.00416.48
7.4.240.0040.00316.51
7.4.230.0000.00716.41
7.4.220.0090.01316.69
7.4.210.0070.01316.63
7.4.200.0030.00316.54
7.4.160.0130.00316.66
7.4.150.0110.00817.40
7.4.140.0090.00817.86
7.4.130.0130.00716.62
7.4.120.0110.00616.41
7.4.110.0090.00916.61
7.4.100.0170.00416.54
7.4.90.0100.01316.45
7.4.80.0070.01119.37
7.4.70.0130.00316.45
7.4.60.0070.01016.57
7.4.50.0030.00616.35
7.4.40.0090.00816.34
7.4.30.0030.01316.38
7.4.00.0080.00815.18
7.3.330.0060.00013.16
7.3.320.0030.00313.10
7.3.310.0070.00016.32
7.3.300.0070.00016.17
7.3.290.0100.01016.33
7.3.280.0090.00616.30
7.3.270.0110.00717.40
7.3.260.0060.01316.53
7.3.250.0170.00316.59
7.3.240.0110.00716.36
7.3.230.0030.01316.39
7.3.210.0030.01316.51
7.3.200.0100.00719.39
7.3.190.0080.00916.23
7.3.180.0090.00616.57
7.3.170.0080.00816.44
7.3.160.0090.00916.32
7.3.10.0120.00616.36
7.3.00.0030.00915.99
7.2.330.0110.00516.60
7.2.320.0060.01216.71
7.2.310.0120.00616.70
7.2.300.0090.01516.35
7.2.290.0150.00316.54
7.2.130.0040.01116.18
7.2.120.0090.00916.51
7.2.110.0030.01016.36
7.2.100.0000.01016.66
7.2.90.0100.00316.65
7.2.80.0040.01116.65
7.2.70.0070.00716.90
7.2.60.0140.00316.85
7.2.50.0060.00616.94
7.2.40.0090.00316.86
7.2.30.0070.00316.95
7.2.20.0030.01316.96
7.2.10.0040.01116.89
7.2.00.0060.00618.09
7.1.250.0030.01415.41
7.1.200.0040.00415.79
7.1.100.0070.00418.45
7.1.70.0030.00617.11
7.1.60.0090.01619.32
7.1.50.0110.00717.03
7.1.00.0070.07322.36
7.0.200.0000.00816.85
7.0.140.0030.07321.99
7.0.60.0100.05320.04
7.0.50.0100.07717.87
7.0.40.0030.04720.41
7.0.30.0370.07020.24
7.0.20.0230.06320.23
7.0.10.0330.08020.13
7.0.00.0030.04320.09
5.6.280.0030.07321.06
5.6.210.0000.07320.50
5.6.200.0130.07318.27
5.6.190.0070.04020.64
5.6.180.0170.04720.48
5.6.170.0200.04320.52
5.6.160.0100.04320.52
5.6.150.0130.07318.19
5.6.140.0000.08318.18
5.6.130.0070.03718.20
5.6.120.0030.05021.01
5.6.110.0200.06720.99
5.6.100.0200.06020.96
5.6.90.0100.08320.95
5.6.80.0070.03720.25
5.6.70.3970.03720.52
5.5.350.0270.06320.41
5.5.340.0070.04317.95
5.5.330.0000.06020.43
5.5.320.0430.07020.32
5.5.310.0270.06720.26
5.5.300.0100.06717.98
5.5.290.0070.06017.94
5.5.280.0000.04720.89
5.5.270.0070.08720.86
5.5.260.0170.07020.86
5.5.250.0100.06020.54
5.5.240.0300.05020.29
5.4.450.0500.04719.64
5.4.440.0200.05019.62
5.4.430.1170.05019.43
5.4.420.0700.00019.32
5.4.410.0630.00019.27
5.4.400.0700.00019.16
5.4.390.0630.00019.25
5.4.380.0470.05018.46
5.4.370.0370.05718.68
5.4.360.0400.05018.75
5.4.350.0300.05318.50
5.4.340.0230.06018.78
5.4.320.0070.03612.48
5.4.310.0070.04312.48
5.4.300.0080.05012.48
5.4.290.0110.03612.48
5.4.280.0080.03612.38
5.4.270.0050.03812.38
5.4.260.0080.03812.38
5.4.250.0060.03812.38
5.4.240.0040.03812.38
5.4.230.0080.03412.37
5.4.220.0060.03512.37
5.4.210.0060.05212.37
5.4.200.0060.04112.37
5.4.190.0070.03812.37
5.4.180.0050.03612.36
5.4.170.0070.04012.38
5.4.160.0040.03812.38
5.4.150.0120.03412.37
5.4.140.0060.03812.05
5.4.130.0080.03312.04
5.4.120.0060.03512.00
5.4.110.0060.03712.00
5.4.100.0050.03712.00
5.4.90.0070.03612.00
5.4.80.0080.03712.00
5.4.70.0040.03911.99
5.4.60.0060.03411.99
5.4.50.0050.04111.99
5.4.40.0070.03411.98
5.4.30.0050.03711.98
5.4.20.0080.03511.98
5.4.10.0060.04311.98
5.4.00.0100.04111.47
5.3.290.0090.03712.80
5.3.280.0030.04112.71
5.3.270.0080.03612.72
5.3.260.0040.04012.72
5.3.250.0050.03812.72
5.3.240.0110.03812.72
5.3.230.0050.03812.71
5.3.220.0080.04512.68
5.3.210.0070.04012.68
5.3.200.0060.03812.68
5.3.190.0040.04912.67
5.3.180.0050.03812.67
5.3.170.0090.03512.67
5.3.160.0090.03512.68
5.3.150.0090.04012.68
5.3.140.0070.04112.66
5.3.130.0050.04212.66
5.3.120.0090.03712.66
5.3.110.0070.03812.66
5.3.100.0060.03712.12
5.3.90.0060.03712.09
5.3.80.0060.03712.08
5.3.70.0090.03512.08
5.3.60.0070.04712.07
5.3.50.0050.03912.02
5.3.40.0050.03812.02
5.3.30.0050.03611.97
5.3.20.0050.04011.75
5.3.10.0030.03811.71
5.3.00.0060.03911.70
5.2.170.0090.0279.21
5.2.160.0050.0309.21
5.2.150.0080.0289.21
5.2.140.0050.0309.20
5.2.130.0050.0369.16
5.2.120.0050.0309.16
5.2.110.0050.0319.17
5.2.100.0050.0309.16
5.2.90.0050.0309.16
5.2.80.0070.0309.16
5.2.70.0040.0329.16
5.2.60.0050.0359.12
5.2.50.0090.0279.08
5.2.40.0050.0299.06
5.2.30.0040.0319.04
5.2.20.0040.0299.02
5.2.10.0060.0308.93
5.2.00.0060.0358.79
5.1.60.0040.0248.06
5.1.50.0040.0268.06
5.1.40.0040.0268.04
5.1.30.0030.0288.39
5.1.20.0020.0308.41
5.1.10.0030.0278.14
5.1.00.0020.0298.14
5.0.50.0030.0216.62
5.0.40.0030.0196.47
5.0.30.0030.0336.29
5.0.20.0020.0216.26
5.0.10.0020.0216.24
5.0.00.0050.0306.23
4.4.90.0030.0164.77
4.4.80.0020.0174.76
4.4.70.0030.0164.76
4.4.60.0030.0154.76
4.4.50.0040.0154.77
4.4.40.0050.0264.71
4.4.30.0030.0154.76
4.4.20.0020.0174.84
4.4.10.0010.0184.85
4.4.00.0030.0264.76
4.3.110.0020.0174.67
4.3.100.0060.0124.66
4.3.90.0030.0154.63
4.3.80.0050.0224.59
4.3.70.0030.0144.63
4.3.60.0020.0164.63
4.3.50.0050.0144.63
4.3.40.0020.0264.53
4.3.30.0050.0153.28
4.3.20.0000.0183.26
4.3.10.0010.0173.22
4.3.00.0000.01314.30

preferences:
54.54 ms | 401 KiB | 5 Q