3v4l.org

run code in 300+ PHP versions simultaneously
<?php $conf = array(); $test = array( 'one' => array( 'conf1' => '1' ), 'two' => array( 'conf2' => '2' ), 'three' => array( 'conf3' => '3' ), ); foreach ($test as $item) { var_dump($item); $config = array_merge($conf); } echo 'result'; var_dump($conf);

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.00718.30
8.3.50.0130.00621.92
8.3.40.0040.01118.79
8.3.30.0110.00319.14
8.3.20.0070.00020.16
8.3.10.0040.00420.34
8.3.00.0040.00419.26
8.2.180.0140.00716.46
8.2.170.0140.00022.96
8.2.160.0180.00320.34
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0040.00422.28
8.2.110.0000.00922.22
8.2.100.0040.00817.72
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0080.00017.80
8.2.50.0030.00618.07
8.2.40.0040.00418.19
8.2.30.0070.00019.29
8.2.20.0040.00417.56
8.2.10.0070.00018.08
8.2.00.0030.00617.87
8.1.280.0040.01825.92
8.1.270.0040.00423.67
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.79
8.1.230.0070.00419.04
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0090.00017.13
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0080.00418.49
8.1.160.0050.00222.07
8.1.150.0070.00018.88
8.1.140.0070.00017.50
8.1.130.0000.00717.90
8.1.120.0000.00717.46
8.1.110.0040.00417.47
8.1.100.0000.00717.39
8.1.90.0030.00317.39
8.1.80.0040.00417.39
8.1.70.0080.00017.39
8.1.60.0040.00417.57
8.1.50.0040.00417.57
8.1.40.0040.00417.52
8.1.30.0030.00517.54
8.1.20.0040.00417.69
8.1.10.0040.00417.43
8.1.00.0000.00817.55
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0030.00318.34
8.0.270.0030.00317.30
8.0.260.0000.00617.17
8.0.250.0070.00017.01
8.0.240.0000.00716.97
8.0.230.0070.00017.02
8.0.220.0030.00316.93
8.0.210.0040.00416.91
8.0.200.0000.00716.96
8.0.190.0070.00016.94
8.0.180.0040.00416.93
8.0.170.0030.00516.91
8.0.160.0000.00716.88
8.0.150.0000.00716.77
8.0.140.0000.00816.87
8.0.130.0030.00313.26
8.0.120.0050.00216.78
8.0.110.0070.00016.80
8.0.100.0040.00416.77
8.0.90.0030.00516.91
8.0.80.0070.01616.82
8.0.70.0040.00416.78
8.0.60.0000.00716.89
8.0.50.0040.00416.88
8.0.30.0070.01317.01
8.0.20.0180.00617.40
8.0.10.0000.00816.95
8.0.00.0040.01316.68
7.4.330.0000.00515.14
7.4.320.0030.00316.47
7.4.300.0000.00716.61
7.4.290.0000.00716.51
7.4.280.0110.00016.40
7.4.270.0080.00016.50
7.4.260.0000.00716.59
7.4.250.0070.00016.36
7.4.240.0080.00016.41
7.4.230.0060.00016.58
7.4.220.0170.00316.58
7.4.210.0070.01016.43
7.4.200.0000.00816.44
7.4.160.0030.01316.43
7.4.150.0060.01217.40
7.4.140.0140.00717.86
7.4.130.0060.00916.41
7.4.120.0110.00816.50
7.4.110.0130.00316.59
7.4.100.0060.01116.64
7.4.90.0110.01416.50
7.4.80.0100.00718.63
7.4.70.0110.00616.31
7.4.60.0100.00716.50
7.4.50.0000.00816.36
7.4.40.0130.00416.53
7.4.30.0150.00016.47
7.4.00.0050.01214.98
7.3.330.0060.00013.10
7.3.320.0060.00013.25
7.3.310.0050.00316.29
7.3.300.0070.00016.28
7.3.290.0110.00316.21
7.3.280.0080.01116.24
7.3.270.0090.00917.40
7.3.260.0100.01316.23
7.3.250.0080.01116.53
7.3.240.0110.00816.45
7.3.230.0120.00616.39
7.3.210.0080.00816.57
7.3.200.0110.01219.39
7.3.190.0060.01216.31
7.3.180.0070.01116.53
7.3.170.0080.00816.66
7.3.160.0060.00916.39
7.3.120.0140.00315.10
7.3.110.0090.00914.93
7.3.100.0070.01014.59
7.3.90.0070.01114.86
7.3.80.0000.01015.13
7.3.70.0070.00714.96
7.3.60.0000.01214.90
7.3.50.0060.00914.70
7.3.40.0030.01014.86
7.3.30.0030.00714.80
7.3.20.0080.00416.76
7.3.10.0100.00516.71
7.3.00.0060.00816.53
7.2.330.0120.01016.67
7.2.320.0110.00716.70
7.2.310.0030.01416.73
7.2.300.0090.01016.68
7.2.290.0100.01416.59
7.2.250.0100.01014.88
7.2.240.0100.01015.23
7.2.230.0030.01014.95
7.2.220.0070.01114.75
7.2.210.0060.00614.83
7.2.200.0070.00715.13
7.2.190.0100.00014.87
7.2.180.0030.01014.84
7.2.170.0090.00615.04
7.2.130.0150.01516.60
7.2.120.0070.00716.68
7.2.110.0030.01416.72
7.2.100.0040.01116.45
7.2.90.0070.00716.55
7.2.80.0080.00516.34
7.2.70.0000.01216.82
7.2.60.0090.00516.87
7.2.50.0110.00716.65
7.2.40.0060.00616.48
7.2.30.0160.00316.54
7.2.20.0060.00316.80
7.2.10.0110.00417.00
7.2.00.0030.01117.95
7.1.330.0040.01115.88
7.1.320.0030.01015.65
7.1.310.0080.00415.42
7.1.300.0030.01015.97
7.1.290.0040.01115.81
7.1.280.0000.00915.72
7.1.270.0120.00416.04
7.1.260.0130.00315.82
7.1.250.0080.00815.58
7.1.200.0000.00915.66
7.1.100.0120.00618.17
7.1.70.0030.00617.31
7.1.60.0180.00719.32
7.1.50.0090.01216.92
7.1.00.0030.07722.33
7.0.200.0040.00716.87
7.0.140.0030.07322.08
7.0.60.0130.08020.09
7.0.50.0000.04717.89
7.0.40.0030.06320.05
7.0.30.0430.07020.18
7.0.20.0330.05320.16
7.0.10.0070.08020.16
7.0.00.0070.09020.19
5.6.280.0000.07720.82
5.6.210.0170.07020.62
5.6.200.0100.05318.20
5.6.190.0100.05720.64
5.6.180.0470.05720.33
5.6.170.0370.07720.51
5.6.160.0170.08320.51
5.6.150.0030.04018.13
5.6.140.0030.08318.20
5.6.130.0100.04318.11
5.6.120.0030.05720.88
5.6.110.0030.04721.11
5.6.100.0270.06321.11
5.6.90.0070.05320.96
5.6.80.0070.08320.33
5.5.350.0130.07020.30
5.5.340.0000.08017.98
5.5.330.0000.07320.23
5.5.320.0500.06320.24
5.5.310.0230.03320.32
5.5.300.0100.08018.00
5.5.290.0070.04017.93
5.5.280.0100.07320.96
5.5.270.0030.07320.72
5.5.260.0030.09020.84
5.5.250.0300.04020.61
5.5.240.2600.04020.26
5.4.450.0270.06319.54
5.4.440.1200.06719.24
5.4.430.0370.06019.09
5.4.420.0930.05019.32
5.4.410.0970.05019.50
5.4.400.0870.04718.81
5.4.390.0330.06019.08
5.4.380.0300.05018.70
5.4.370.0270.06018.62
5.4.360.0430.05318.41
5.4.350.0370.04718.50
5.4.340.0300.05318.68
5.4.320.0090.04312.46
5.4.310.0050.03912.45
5.4.300.0110.05312.46
5.4.290.0100.05212.45
5.4.280.0060.04712.35
5.4.270.0100.04512.35
5.4.260.0090.04512.35
5.4.250.0050.04112.35
5.4.240.0070.03612.35
5.4.230.0060.05012.34
5.4.220.0060.03612.34
5.4.210.0080.03312.34
5.4.200.0060.04012.34
5.4.190.0060.04312.34
5.4.180.0060.03612.34
5.4.170.0100.03312.35
5.4.160.0080.03812.35
5.4.150.0070.04212.34
5.4.140.0080.03912.02
5.4.130.0070.03812.02
5.4.120.0090.03911.97
5.4.110.0050.03711.96
5.4.100.0030.03911.97
5.4.90.0050.03811.96
5.4.80.0070.03811.97
5.4.70.0060.04511.96
5.4.60.0080.03411.96
5.4.50.0050.03711.96
5.4.40.0030.03811.95
5.4.30.0030.03811.95
5.4.20.0060.03611.95
5.4.10.0080.03511.95
5.4.00.0040.03711.44
5.3.290.0040.04112.80
5.3.280.0100.04012.71
5.3.270.0060.03912.72
5.3.260.0100.04112.72
5.3.250.0090.04312.71
5.3.240.0060.03812.72
5.3.230.0120.04412.71
5.3.220.0100.04012.68
5.3.210.0100.03912.68
5.3.200.0050.03912.68
5.3.190.0110.03312.68
5.3.180.0110.03312.67
5.3.170.0110.04812.67
5.3.160.0120.04312.67
5.3.150.0050.04012.68
5.3.140.0060.03712.66
5.3.130.0090.03712.66
5.3.120.0100.03612.66
5.3.110.0100.04312.66
5.3.100.0060.04512.12
5.3.90.0070.04012.08
5.3.80.0080.04312.08
5.3.70.0060.04312.08
5.3.60.0030.04012.07
5.3.50.0050.03712.00
5.3.40.0040.03912.00
5.3.30.0040.03611.95
5.3.20.0050.03611.72
5.3.10.0040.04111.69
5.3.00.0060.04311.68
5.2.170.0040.0329.18
5.2.160.0070.0299.18
5.2.150.0050.0319.18
5.2.140.0100.0299.18
5.2.130.0060.0309.13
5.2.120.0060.0309.14
5.2.110.0060.0289.14
5.2.100.0040.0329.14
5.2.90.0080.0289.14
5.2.80.0050.0309.13
5.2.70.0060.0319.13
5.2.60.0020.0359.09
5.2.50.0040.0319.06
5.2.40.0040.0299.04
5.2.30.0050.0299.01
5.2.20.0080.0319.00
5.2.10.0110.0278.92
5.2.00.0040.0318.78
5.1.60.0030.0288.07
5.1.50.0020.0368.06
5.1.40.0020.0328.04
5.1.30.0040.0268.39
5.1.20.0060.0258.41
5.1.10.0020.0288.14
5.1.00.0040.0318.14
5.0.50.0070.0236.62
5.0.40.0070.0236.48
5.0.30.0060.0346.29
5.0.20.0060.0176.26
5.0.10.0040.0206.24
5.0.00.0040.0436.23
4.4.90.0010.0274.78
4.4.80.0040.0184.76
4.4.70.0040.0164.75
4.4.60.0040.0164.75
4.4.50.0010.0174.77
4.4.40.0060.0234.71
4.4.30.0030.0214.76
4.4.20.0040.0164.84
4.4.10.0030.0164.85
4.4.00.0030.0304.75
4.3.110.0020.0204.67
4.3.100.0060.0144.67
4.3.90.0040.0144.63
4.3.80.0040.0244.59
4.3.70.0030.0154.63
4.3.60.0030.0154.63
4.3.50.0050.0164.63
4.3.40.0050.0254.54
4.3.30.0040.0153.28
4.3.20.0050.0143.25
4.3.10.0010.0173.22
4.3.00.0000.0376.86

preferences:
74.25 ms | 400 KiB | 5 Q