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); $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); 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.0140.00018.55
8.3.50.0110.01021.13
8.3.40.0100.00618.78
8.3.30.0110.00319.16
8.3.20.0040.00420.16
8.3.10.0080.00020.61
8.3.00.0080.00017.71
8.2.180.0070.01116.88
8.2.170.0110.00422.96
8.2.160.0070.00720.05
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0070.00022.10
8.2.110.0030.00620.29
8.2.100.0040.00818.22
8.2.90.0040.00419.25
8.2.80.0030.00617.97
8.2.70.0040.00417.88
8.2.60.0080.00017.93
8.2.50.0000.00918.07
8.2.40.0090.00018.34
8.2.30.0040.00419.28
8.2.20.0070.00317.71
8.2.10.0040.00418.03
8.2.00.0050.00317.79
8.1.280.0140.00325.92
8.1.270.0060.00322.17
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.91
8.1.230.0070.00419.16
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00817.35
8.1.190.0000.00917.23
8.1.180.0000.00918.10
8.1.170.0000.00818.62
8.1.160.0000.00722.04
8.1.150.0030.00518.88
8.1.140.0050.00217.48
8.1.130.0040.00417.77
8.1.120.0040.00417.53
8.1.110.0020.00517.52
8.1.100.0000.00717.42
8.1.90.0000.00717.54
8.1.80.0040.00417.52
8.1.70.0040.00417.28
8.1.60.0030.00617.49
8.1.50.0000.00817.47
8.1.40.0040.00417.58
8.1.30.0030.00517.55
8.1.20.0040.00417.57
8.1.10.0050.00317.60
8.1.00.0030.00517.55
8.0.300.0080.00018.77
8.0.290.0000.00916.75
8.0.280.0000.00718.47
8.0.270.0030.00317.29
8.0.260.0030.00317.29
8.0.250.0030.00316.98
8.0.240.0000.00817.11
8.0.230.0030.00317.09
8.0.220.0020.00516.87
8.0.210.0040.00417.05
8.0.200.0100.00016.88
8.0.190.0000.00817.07
8.0.180.0040.00417.00
8.0.170.0030.00516.98
8.0.160.0050.00217.02
8.0.150.0000.00716.82
8.0.140.0040.00416.88
8.0.130.0000.00513.45
8.0.120.0050.00316.85
8.0.110.0000.00817.01
8.0.100.0000.00717.00
8.0.90.0040.00416.93
8.0.80.0090.01216.86
8.0.70.0000.00716.84
8.0.60.0030.00516.78
8.0.50.0040.00417.02
8.0.30.0090.01117.05
8.0.20.0100.01417.40
8.0.10.0040.00417.08
8.0.00.0140.00616.77
7.4.330.0020.00215.13
7.4.320.0030.00316.53
7.4.300.0000.00616.56
7.4.290.0070.00016.55
7.4.280.0080.00016.42
7.4.270.0000.00716.59
7.4.260.0080.00016.63
7.4.250.0060.00316.59
7.4.240.0050.00216.47
7.4.230.0030.00316.61
7.4.220.0150.00316.61
7.4.210.0110.00316.51
7.4.200.0000.00716.61
7.4.160.0080.00816.64
7.4.150.0130.00817.40
7.4.140.0100.00817.86
7.4.130.0120.00616.47
7.4.120.0120.00716.51
7.4.110.0110.00616.73
7.4.100.0130.00316.68
7.4.90.0130.01016.55
7.4.80.0070.01119.37
7.4.70.0070.01116.61
7.4.60.0070.01016.54
7.4.50.0000.00816.58
7.4.40.0030.01416.76
7.4.30.0110.00516.75
7.4.00.0040.00714.95
7.3.330.0000.00613.16
7.3.320.0060.00013.18
7.3.310.0030.00316.50
7.3.300.0000.00616.44
7.3.290.0090.01216.45
7.3.280.0110.00616.44
7.3.270.0070.01317.40
7.3.260.0150.01116.52
7.3.250.0050.01416.63
7.3.240.0110.01116.52
7.3.230.0140.00616.55
7.3.210.0100.00716.38
7.3.200.0040.01319.39
7.3.190.0100.00716.48
7.3.180.0030.01316.50
7.3.170.0060.01016.37
7.3.160.0090.00916.57
7.2.330.0060.01216.56
7.2.320.0030.01416.55
7.2.310.0070.01416.67
7.2.300.0100.01416.73
7.2.290.0110.01116.86
7.2.60.0080.00816.81
7.2.00.0060.00619.41
7.1.200.0070.00715.75
7.1.100.0060.00618.33
7.1.70.0030.00717.07
7.1.60.0110.01419.32
7.1.50.0070.01716.89
7.1.00.0100.06022.30
7.0.200.0050.00316.51
7.0.140.0000.07721.92
7.0.60.0100.05019.81
7.0.50.0070.04317.96
7.0.40.0100.04320.27
7.0.30.0200.04320.08
7.0.20.0270.07720.33
7.0.10.0070.06020.04
7.0.00.0100.04720.25
5.6.280.0070.07020.90
5.6.210.0130.07020.54
5.6.200.0200.07318.14
5.6.190.0030.05320.60
5.6.180.0430.06720.67
5.6.170.0300.07320.45
5.6.160.0030.04320.44
5.6.150.0100.03318.15
5.6.140.0070.06018.23
5.6.130.0100.08018.17
5.6.120.0070.04020.95
5.6.110.0030.04320.95
5.6.100.0100.08021.02
5.6.90.0070.04320.96
5.6.80.0170.07720.38
5.5.350.0230.07720.33
5.5.340.0130.07017.98
5.5.330.0030.05020.13
5.5.320.0270.04020.27
5.5.310.0300.03320.26
5.5.300.0100.07018.04
5.5.290.0000.04317.97
5.5.280.0130.07720.87
5.5.270.0130.07720.86
5.5.260.0070.08020.75
5.5.250.0070.07320.69
5.5.240.0100.08020.18
5.4.450.1170.06019.64
5.4.440.0830.04719.68
5.4.430.1000.06719.34
5.4.420.0900.00019.51
5.4.410.0630.00019.21
5.4.400.0770.00019.04
5.4.390.0800.00019.16
5.4.380.1000.05718.75
5.4.370.0930.08018.58
5.4.360.1000.06018.59
5.4.350.1230.05318.78
5.4.340.1030.05318.55
5.4.320.0090.03512.48
5.4.310.0070.03612.48
5.4.300.0040.03812.48
5.4.290.0040.03912.48
5.4.280.0070.03412.38
5.4.270.0070.04512.38
5.4.260.0050.04012.38
5.4.250.0090.03712.38
5.4.240.0060.03712.38
5.4.230.0110.04412.37
5.4.220.0040.04512.37
5.4.210.0050.04212.37
5.4.200.0040.03912.37
5.4.190.0070.04912.36
5.4.180.0050.03812.36
5.4.170.0050.04312.38
5.4.160.0060.04712.38
5.4.150.0050.04312.37
5.4.140.0080.03512.05
5.4.130.0050.03612.04
5.4.120.0070.03312.00
5.4.110.0090.03511.99
5.4.100.0060.03812.00
5.4.90.0070.03812.00
5.4.80.0060.04111.99
5.4.70.0060.03411.99
5.4.60.0080.03211.99
5.4.50.0080.03511.99
5.4.40.0080.03211.98
5.4.30.0050.03611.98
5.4.20.0050.03711.98
5.4.10.0070.03411.98
5.4.00.0070.04411.47
5.3.290.0060.04612.80
5.3.280.0080.03712.71
5.3.270.0070.04312.72
5.3.260.0070.03812.72
5.3.250.0030.04012.72
5.3.240.0100.03812.71
5.3.230.0040.03912.70
5.3.220.0070.04312.68
5.3.210.0080.03612.68
5.3.200.0050.03712.68
5.3.190.0070.03612.67
5.3.180.0070.03512.67
5.3.170.0080.03412.67
5.3.160.0090.03712.67
5.3.150.0060.03712.67
5.3.140.0050.03712.66
5.3.130.0060.03712.66
5.3.120.0040.04012.66
5.3.110.0070.03912.66
5.3.100.0060.04312.12
5.3.90.0060.03512.09
5.3.80.0100.03912.08
5.3.70.0070.03612.08
5.3.60.0080.03512.07
5.3.50.0070.03512.02
5.3.40.0070.04312.01
5.3.30.0040.03711.97
5.3.20.0060.03511.75
5.3.10.0050.03411.72
5.3.00.0080.04211.71
5.2.170.0060.0299.21
5.2.160.0040.0309.21
5.2.150.0060.0309.21
5.2.140.0090.0279.20
5.2.130.0110.0309.17
5.2.120.0060.0289.16
5.2.110.0050.0309.18
5.2.100.0040.0309.17
5.2.90.0070.0279.17
5.2.80.0030.0329.16
5.2.70.0030.0359.16
5.2.60.0040.0319.12
5.2.50.0070.0289.09
5.2.40.0040.0319.06
5.2.30.0030.0319.04
5.2.20.0080.0269.03
5.2.10.0060.0288.94
5.2.00.0060.0278.80
5.1.60.0040.0248.09
5.1.50.0030.0268.08
5.1.40.0040.0248.06
5.1.30.0070.0238.41
5.1.20.0050.0268.43
5.1.10.0040.0258.16
5.1.00.0050.0248.16
5.0.50.0040.0256.64
5.0.40.0050.0256.50
5.0.30.0050.0286.31
5.0.20.0030.0226.29
5.0.10.0060.0236.27
5.0.00.0030.0306.25
4.4.90.0060.0204.78
4.4.80.0040.0154.75
4.4.70.0020.0214.76
4.4.60.0030.0164.75
4.4.50.0030.0194.77
4.4.40.0030.0274.71
4.4.30.0040.0174.76
4.4.20.0040.0144.85
4.4.10.0030.0164.85
4.4.00.0060.0274.76
4.3.110.0050.0144.67
4.3.100.0020.0164.66
4.3.90.0050.0154.63
4.3.80.0050.0224.58
4.3.70.0060.0184.63
4.3.60.0030.0194.63
4.3.50.0010.0174.63
4.3.40.0040.0244.54
4.3.30.0010.0203.31
4.3.20.0050.0153.29
4.3.10.0010.0173.25
4.3.00.0070.01714.30

preferences:
41.64 ms | 401 KiB | 5 Q