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); 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.0100.01321.05
8.3.40.0160.00018.67
8.3.30.0140.00018.96
8.3.20.0050.00220.29
8.3.10.0080.00020.61
8.3.00.0090.00017.63
8.2.180.0090.00916.88
8.2.170.0110.00722.96
8.2.160.0030.01020.58
8.2.150.0080.00024.18
8.2.140.0070.00724.66
8.2.130.0040.00426.16
8.2.120.0050.00222.04
8.2.110.0060.00320.27
8.2.100.0040.00718.04
8.2.90.0000.00819.19
8.2.80.0050.00317.97
8.2.70.0080.00017.50
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0040.00418.16
8.2.30.0000.00819.32
8.2.20.0000.00917.64
8.2.10.0050.00318.11
8.2.00.0030.00617.77
8.1.280.0070.01025.92
8.1.270.0060.00322.19
8.1.260.0070.00026.35
8.1.250.0030.00628.09
8.1.240.0060.00323.90
8.1.230.0040.00719.22
8.1.220.0030.00517.76
8.1.210.0030.00518.77
8.1.200.0000.01117.36
8.1.190.0040.00417.22
8.1.180.0000.00718.10
8.1.170.0030.00518.62
8.1.160.0000.00721.93
8.1.150.0070.00018.81
8.1.140.0000.00817.46
8.1.130.0030.00317.91
8.1.120.0000.00717.38
8.1.110.0030.00517.42
8.1.100.0040.00417.45
8.1.90.0030.00317.51
8.1.80.0030.00317.41
8.1.70.0030.00517.41
8.1.60.0000.00817.61
8.1.50.0080.00017.57
8.1.40.0040.00417.49
8.1.30.0000.00817.72
8.1.20.0060.00317.57
8.1.10.0000.00817.61
8.1.00.0000.00717.39
8.0.300.0020.00518.77
8.0.290.0060.00316.88
8.0.280.0030.00318.42
8.0.270.0000.00717.29
8.0.260.0030.00317.27
8.0.250.0070.00017.01
8.0.240.0040.00417.01
8.0.230.0080.00016.86
8.0.220.0000.00716.95
8.0.210.0000.00716.96
8.0.200.0030.00316.94
8.0.190.0040.00417.01
8.0.180.0000.00716.97
8.0.170.0030.00617.03
8.0.160.0080.00016.85
8.0.150.0040.00416.92
8.0.140.0000.00716.92
8.0.130.0000.00513.43
8.0.120.0030.00516.96
8.0.110.0070.00016.99
8.0.100.0000.00817.00
8.0.90.0040.00416.80
8.0.80.0060.01516.90
8.0.70.0000.00716.86
8.0.60.0030.00617.03
8.0.50.0000.00716.83
8.0.30.0130.01017.06
8.0.20.0110.00817.40
8.0.10.0040.00416.89
8.0.00.0100.01117.04
7.4.330.0000.00515.02
7.4.320.0070.00016.64
7.4.300.0030.00316.51
7.4.290.0030.00316.59
7.4.280.0060.00316.50
7.4.270.0030.00316.45
7.4.260.0030.00316.50
7.4.250.0020.00516.43
7.4.240.0040.00416.55
7.4.230.0070.00016.41
7.4.220.0160.00916.55
7.4.210.0110.00416.52
7.4.200.0000.00716.51
7.4.160.0070.01016.59
7.4.150.0100.01017.40
7.4.140.0080.01017.86
7.4.130.0090.00816.64
7.4.120.0080.01216.54
7.4.110.0040.01216.64
7.4.100.0070.01516.50
7.4.90.0040.01316.57
7.4.80.0070.01019.37
7.4.70.0110.00516.72
7.4.60.0030.01616.53
7.4.50.0030.00516.38
7.4.40.0100.00716.43
7.4.30.0160.00016.22
7.4.00.0070.00314.95
7.3.330.0000.00513.20
7.3.320.0000.00513.25
7.3.310.0000.00816.49
7.3.300.0000.00716.39
7.3.290.0030.01616.45
7.3.280.0070.00816.43
7.3.270.0140.00617.40
7.3.260.0030.02316.38
7.3.250.0140.00716.49
7.3.240.0060.01216.57
7.3.230.0070.01016.42
7.3.210.0140.00716.44
7.3.200.0070.01019.39
7.3.190.0070.01516.54
7.3.180.0060.01016.55
7.3.170.0110.00516.63
7.3.160.0060.01216.39
7.2.330.0120.00616.89
7.2.320.0100.00716.73
7.2.310.0140.00516.56
7.2.300.0110.00816.45
7.2.290.0140.00816.64
7.2.60.0030.00917.12
7.2.00.0040.00819.42
7.1.200.0150.00315.35
7.1.100.0040.01118.14
7.1.70.0060.00617.24
7.1.60.0070.00317.25
7.1.50.0140.00717.06
7.1.00.0070.07322.48
7.0.200.0100.00716.89
7.0.140.0030.07321.99
7.0.60.0100.04019.94
7.0.50.0070.07317.90
7.0.40.0130.08020.15
7.0.30.0530.04720.24
7.0.20.0270.08320.23
7.0.10.0330.04320.23
7.0.00.0130.08020.16
5.6.280.0000.09321.06
5.6.210.0130.05320.43
5.6.200.0100.07718.19
5.6.190.0070.04320.60
5.6.180.5170.03020.51
5.6.170.0230.08320.52
5.6.160.0000.04720.55
5.6.150.0030.07718.25
5.6.140.0130.07318.16
5.6.130.0030.08718.11
5.6.120.0070.06021.09
5.6.110.0070.04720.97
5.6.100.0070.04320.96
5.6.90.0000.07321.07
5.6.80.0030.05320.39
5.6.70.3530.03020.36
5.5.350.0200.04320.43
5.5.340.0070.04318.07
5.5.330.0030.06720.21
5.5.320.0300.07020.30
5.5.310.0270.06320.23
5.5.300.0030.04718.08
5.5.290.0030.04017.92
5.5.280.0130.04320.79
5.5.270.0100.04720.72
5.5.260.0130.05720.86
5.5.250.0030.08320.79
5.5.240.0100.06720.07
5.4.450.0970.03719.48
5.4.440.0100.05719.54
5.4.430.0500.05019.64
5.4.420.0700.00019.41
5.4.410.0870.00019.31
5.4.400.0630.00019.22
5.4.390.0630.00019.13
5.4.380.0430.05318.75
5.4.370.0330.04718.52
5.4.360.0130.05718.71
5.4.350.0300.07018.44
5.4.340.0330.05018.50
5.4.320.0050.04312.48
5.4.310.0090.03712.48
5.4.300.0100.03112.48
5.4.290.0070.03712.48
5.4.280.0090.03612.38
5.4.270.0060.03512.38
5.4.260.0100.03412.38
5.4.250.0060.03612.38
5.4.240.0070.03512.38
5.4.230.0070.03612.37
5.4.220.0060.03512.37
5.4.210.0060.03512.37
5.4.200.0040.03912.37
5.4.190.0060.03612.36
5.4.180.0040.03912.37
5.4.170.0040.03812.38
5.4.160.0040.03712.38
5.4.150.0060.04212.37
5.4.140.0060.04112.05
5.4.130.0080.03712.04
5.4.120.0030.03812.00
5.4.110.0080.03211.99
5.4.100.0060.04211.99
5.4.90.0070.03611.99
5.4.80.0060.04012.00
5.4.70.0060.04011.99
5.4.60.0050.03511.99
5.4.50.0080.03711.99
5.4.40.0040.03611.98
5.4.30.0080.03311.98
5.4.20.0050.03811.97
5.4.10.0050.03511.98
5.4.00.0070.03711.47
5.3.290.0060.04312.80
5.3.280.0080.03512.71
5.3.270.0050.04012.73
5.3.260.0090.03412.72
5.3.250.0070.04112.72
5.3.240.0090.03712.72
5.3.230.0060.03912.71
5.3.220.0080.03612.68
5.3.210.0060.04712.68
5.3.200.0090.03612.68
5.3.190.0080.03912.68
5.3.180.0080.03612.67
5.3.170.0090.03612.67
5.3.160.0030.04212.68
5.3.150.0130.03212.67
5.3.140.0090.03512.66
5.3.130.0080.03912.66
5.3.120.0070.03912.66
5.3.110.0090.03612.66
5.3.100.0020.04112.12
5.3.90.0070.03512.09
5.3.80.0060.03912.08
5.3.70.0080.03712.08
5.3.60.0050.03612.06
5.3.50.0060.03512.01
5.3.40.0040.04412.02
5.3.30.0070.03811.97
5.3.20.0080.04311.75
5.3.10.0050.04411.71
5.3.00.0040.03911.70
5.2.170.0050.0349.21
5.2.160.0080.0279.21
5.2.150.0060.0369.21
5.2.140.0080.0289.20
5.2.130.0090.0319.17
5.2.120.0040.0319.17
5.2.110.0040.0359.17
5.2.100.0020.0339.16
5.2.90.0060.0409.16
5.2.80.0040.0319.16
5.2.70.0030.0329.16
5.2.60.0050.0299.12
5.2.50.0030.0339.09
5.2.40.0040.0299.06
5.2.30.0050.0329.04
5.2.20.0110.0269.03
5.2.10.0040.0338.93
5.2.00.0050.0288.79
5.1.60.0070.0278.08
5.1.50.0050.0248.08
5.1.40.0040.0248.05
5.1.30.0070.0248.41
5.1.20.0050.0258.43
5.1.10.0030.0288.15
5.1.00.0030.0298.15
5.0.50.0050.0206.63
5.0.40.0040.0256.49
5.0.30.0010.0346.30
5.0.20.0040.0266.27
5.0.10.0010.0246.25
5.0.00.0050.0366.24
4.4.90.0060.0124.78
4.4.80.0020.0184.75
4.4.70.0010.0174.76
4.4.60.0080.0114.75
4.4.50.0000.0204.77
4.4.40.0010.0264.71
4.4.30.0040.0234.76
4.4.20.0050.0184.84
4.4.10.0070.0124.85
4.4.00.0010.0314.76
4.3.110.0030.0204.67
4.3.100.0040.0244.66
4.3.90.0050.0124.64
4.3.80.0020.0254.58
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0040.0224.53
4.3.30.0030.0153.30
4.3.20.0030.0143.27
4.3.10.0020.0163.23
4.3.00.0030.01014.30

preferences:
45.93 ms | 400 KiB | 5 Q