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) { // echo 'key = '.$key; // echo '<br>'; // echo 'value = '.$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.60.0070.00718.68
8.3.50.0090.01221.07
8.3.40.0190.00018.80
8.3.30.0070.01319.27
8.3.20.0040.00420.16
8.3.10.0000.00820.48
8.3.00.0040.00417.63
8.2.180.0150.00618.34
8.2.170.0110.00422.96
8.2.160.0100.00320.39
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0070.00022.19
8.2.110.0030.00622.11
8.2.100.0040.00818.03
8.2.90.0040.00419.20
8.2.80.0050.00317.97
8.2.70.0080.00017.62
8.2.60.0090.00017.93
8.2.50.0050.00318.07
8.2.40.0040.00418.34
8.2.30.0040.00419.31
8.2.20.0060.00317.70
8.2.10.0000.00718.05
8.2.00.0000.00817.87
8.1.280.0040.01125.92
8.1.270.0030.00622.13
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0030.00623.91
8.1.230.0090.00319.16
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0060.00617.48
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0030.00618.61
8.1.160.0000.00821.97
8.1.150.0000.00718.94
8.1.140.0000.00717.46
8.1.130.0030.00317.84
8.1.120.0030.00517.38
8.1.110.0040.00317.51
8.1.100.0050.00217.38
8.1.90.0030.00317.36
8.1.80.0000.00717.43
8.1.70.0000.00717.45
8.1.60.0060.00317.61
8.1.50.0040.00417.50
8.1.40.0050.00317.54
8.1.30.0040.00417.61
8.1.20.0020.00517.55
8.1.10.0000.00817.59
8.1.00.0060.00317.56
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.52
8.0.270.0000.00717.20
8.0.260.0000.00617.18
8.0.250.0000.00716.93
8.0.240.0050.00217.14
8.0.230.0070.00016.97
8.0.220.0030.00316.96
8.0.210.0000.00716.93
8.0.200.0080.00216.98
8.0.190.0030.00516.90
8.0.180.0000.00716.95
8.0.170.0040.00416.88
8.0.160.0000.00716.88
8.0.150.0030.00316.90
8.0.140.0030.00516.83
8.0.130.0000.00613.44
8.0.120.0000.00716.90
8.0.110.0070.00016.86
8.0.100.0030.00316.78
8.0.90.0040.00416.81
8.0.80.0070.00716.96
8.0.70.0000.00716.84
8.0.60.0040.00417.09
8.0.50.0000.00716.80
8.0.30.0110.01117.28
8.0.20.0110.01417.40
8.0.10.0000.00817.13
8.0.00.0080.01116.80
7.4.330.0000.00515.05
7.4.320.0030.00316.55
7.4.300.0000.00616.44
7.4.290.0030.00316.48
7.4.280.0040.00416.47
7.4.270.0030.00316.63
7.4.260.0070.00016.52
7.4.250.0050.00316.43
7.4.240.0020.00516.54
7.4.230.0030.00316.61
7.4.220.0130.00916.63
7.4.210.0000.01416.61
7.4.200.0000.00716.51
7.4.160.0130.00316.38
7.4.150.0090.00917.40
7.4.140.0150.00317.86
7.4.130.0140.00316.58
7.4.120.0110.00816.55
7.4.110.0140.00316.57
7.4.100.0090.00916.36
7.4.90.0060.01216.60
7.4.80.0090.00919.37
7.4.70.0060.01116.48
7.4.60.0070.01016.64
7.4.50.0030.00516.41
7.4.40.0070.01016.33
7.4.30.0100.00616.59
7.4.00.0070.00715.13
7.3.330.0030.00313.33
7.3.320.0060.00013.26
7.3.310.0000.00816.49
7.3.300.0030.00316.44
7.3.290.0070.01016.48
7.3.280.0060.01416.45
7.3.270.0120.00817.40
7.3.260.0070.01416.44
7.3.250.0100.00916.36
7.3.240.0070.01416.36
7.3.230.0100.00716.61
7.3.210.0140.00316.60
7.3.200.0060.01519.39
7.3.190.0100.00716.53
7.3.180.0070.01416.63
7.3.170.0070.01016.52
7.3.160.0130.00616.52
7.2.330.0140.00316.66
7.2.320.0070.01116.85
7.2.310.0070.01016.72
7.2.300.0070.01416.37
7.2.290.0090.01516.68
7.2.60.0070.00716.95
7.2.00.0030.00919.32
7.1.200.0090.00915.86
7.1.100.0000.01118.30
7.1.70.0000.00717.26
7.1.60.0090.01519.32
7.1.50.0060.00616.86
7.1.00.0000.08022.31
7.0.200.0030.00516.67
7.0.140.0030.07322.14
7.0.70.2430.03020.00
7.0.60.0030.07019.98
7.0.50.0070.08717.91
7.0.40.0100.03720.23
7.0.30.0370.04720.24
7.0.20.0270.04320.12
7.0.10.0200.03720.38
7.0.00.0030.08720.09
5.6.280.0000.07720.95
5.6.210.0000.05020.61
5.6.200.0100.07718.12
5.6.190.0130.03720.39
5.6.180.0030.05720.52
5.6.170.0330.06320.50
5.6.160.0000.04320.57
5.6.150.0170.06018.21
5.6.140.0030.04718.14
5.6.130.0070.08018.14
5.6.120.0100.08321.09
5.6.110.0070.08321.12
5.6.100.0030.08320.96
5.6.90.0000.06020.95
5.6.80.0030.08320.39
5.6.70.0300.03720.47
5.5.350.0100.07020.49
5.5.340.0130.07317.98
5.5.330.0100.06720.43
5.5.320.0030.07020.35
5.5.310.0330.06720.50
5.5.300.0000.08718.07
5.5.290.0170.07318.07
5.5.280.0000.05320.68
5.5.270.0000.04320.72
5.5.260.0000.04720.79
5.5.250.0070.04020.48
5.5.240.0070.04020.18
5.4.450.0670.03719.57
5.4.440.0930.05319.21
5.4.430.1000.05319.46
5.4.420.0670.00019.38
5.4.410.0770.00019.21
5.4.400.0670.00019.26
5.4.390.0830.00019.11
5.4.380.0500.07018.63
5.4.370.0500.05718.52
5.4.360.0200.06018.72
5.4.350.0330.06718.54
5.4.340.0330.06318.50
5.4.320.0100.03212.49
5.4.310.0100.03312.48
5.4.300.0070.04412.48
5.4.290.0070.05412.49
5.4.280.0030.04012.38
5.4.270.0050.05212.38
5.4.260.0060.03812.38
5.4.250.0060.05212.38
5.4.240.0040.03912.38
5.4.230.0040.04712.37
5.4.220.0060.03812.37
5.4.210.0060.05112.37
5.4.200.0060.03712.38
5.4.190.0070.04512.37
5.4.180.0060.03612.37
5.4.170.0010.04112.38
5.4.160.0050.03912.38
5.4.150.0090.03812.37
5.4.140.0070.04712.06
5.4.130.0050.04112.05
5.4.120.0040.03712.00
5.4.110.0070.03412.00
5.4.100.0060.04112.00
5.4.90.0070.04112.00
5.4.80.0090.04012.00
5.4.70.0080.03412.00
5.4.60.0090.03812.00
5.4.50.0090.03811.99
5.4.40.0090.03211.98
5.4.30.0060.04511.98
5.4.20.0050.04211.98
5.4.10.0080.04511.98
5.4.00.0040.03711.47
5.3.290.0060.04312.80
5.3.280.0060.03712.71
5.3.270.0050.04012.72
5.3.260.0080.03812.72
5.3.250.0070.03612.72
5.3.240.0090.04412.71
5.3.230.0120.04312.70
5.3.220.0070.04712.68
5.3.210.0100.04012.68
5.3.200.0050.03812.68
5.3.190.0070.03812.68
5.3.180.0100.03312.67
5.3.170.0060.03712.67
5.3.160.0060.03712.67
5.3.150.0060.03912.67
5.3.140.0040.04112.66
5.3.130.0080.03912.66
5.3.120.0070.03712.66
5.3.110.0100.04112.65
5.3.100.0090.05112.12
5.3.90.0110.04712.09
5.3.80.0090.03812.09
5.3.70.0140.02812.08
5.3.60.0090.04612.07
5.3.50.0080.03612.01
5.3.40.0060.03812.01
5.3.30.0060.03711.98
5.3.20.0050.03711.75
5.3.10.0060.03611.72
5.3.00.0050.03811.71
5.2.170.0060.0329.21
5.2.160.0070.0299.21
5.2.150.0030.0429.21
5.2.140.0060.0409.20
5.2.130.0050.0309.17
5.2.120.0080.0359.17
5.2.110.0090.0269.17
5.2.100.0080.0269.17
5.2.90.0050.0299.17
5.2.80.0070.0289.16
5.2.70.0070.0349.17
5.2.60.0040.0339.12
5.2.50.0050.0369.09
5.2.40.0090.0379.07
5.2.30.0040.0439.04
5.2.20.0050.0339.03
5.2.10.0040.0348.94
5.2.00.0030.0318.80
5.1.60.0030.0268.07
5.1.50.0100.0328.07
5.1.40.0040.0308.05
5.1.30.0030.0288.40
5.1.20.0050.0348.42
5.1.10.0050.0368.14
5.1.00.0050.0308.14
5.0.50.0040.0226.63
5.0.40.0080.0206.49
5.0.30.0030.0426.30
5.0.20.0040.0196.28
5.0.10.0060.0256.25
5.0.00.0040.0326.24
4.4.90.0040.0164.78
4.4.80.0040.0144.75
4.4.70.0040.0194.75
4.4.60.0030.0164.76
4.4.50.0020.0244.77
4.4.40.0030.0264.71
4.4.30.0040.0304.76
4.4.20.0050.0184.85
4.4.10.0060.0134.84
4.4.00.0030.0254.76
4.3.110.0040.0154.66
4.3.100.0050.0224.66
4.3.90.0020.0174.64
4.3.80.0050.0274.59
4.3.70.0020.0174.63
4.3.60.0040.0154.63
4.3.50.0060.0184.62
4.3.40.0040.0364.53
4.3.30.0020.0163.29
4.3.20.0020.0163.27
4.3.10.0030.0153.23
4.3.00.0100.03014.30

preferences:
46.18 ms | 401 KiB | 5 Q