3v4l.org

run code in 300+ PHP versions simultaneously
<?php $configArray = array( 'grand_total' => array( 'after' => array(), 'before' => array(), '_code' => 'grand_total', ), 'discount' => array( 'after' => array(), 'before' => array('grand_total'), '_code' => 'discount', ), ); reset($configArray); $element = current($configArray); foreach ($configArray as $code => $data) { foreach ($data['before'] as $beforeCode) { if (!isset($configArray[$beforeCode])) { continue; } $configArray[$code]['before'] = array_unique( array_merge( $configArray[$code]['before'], $configArray[$beforeCode]['before'] ) ); $configArray[$beforeCode]['after'] = array_merge( $configArray[$beforeCode]['after'], array($code), $data['after'] ); $configArray[$beforeCode]['after'] = array_unique($configArray[$beforeCode]['after']); } foreach ($data['after'] as $afterCode) { if (!isset($configArray[$afterCode])) { continue; } $configArray[$code]['after'] = array_unique( array_merge( $configArray[$code]['after'], $configArray[$afterCode]['after'] ) ); $configArray[$afterCode]['before'] = array_merge( $configArray[$afterCode]['before'], array($code), $data['before'] ); $configArray[$afterCode]['before'] = array_unique($configArray[$afterCode]['before']); } } print_r(array_keys($configArray));

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.0100.01018.47
8.3.50.0120.01022.05
8.3.40.0130.00318.75
8.3.30.0080.00619.19
8.3.20.0000.00720.35
8.3.10.0060.00320.46
8.3.00.0040.00419.50
8.2.180.0090.00616.49
8.2.170.0150.00322.96
8.2.160.0030.01420.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0000.00821.04
8.2.110.0030.00620.47
8.2.100.0030.00917.91
8.2.90.0050.00318.16
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0060.00318.34
8.2.30.0040.00419.34
8.2.20.0040.00417.84
8.2.10.0000.00818.00
8.2.00.0000.00817.79
8.1.280.0140.00325.92
8.1.270.0000.00823.89
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.14
8.1.230.0090.00320.97
8.1.220.0000.00817.74
8.1.210.0030.00518.86
8.1.200.0060.00317.35
8.1.190.0030.00517.23
8.1.180.0050.00318.10
8.1.170.0000.00918.65
8.1.160.0040.00422.04
8.1.150.0000.00718.95
8.1.140.0000.00717.45
8.1.130.0000.00817.70
8.1.120.0000.00717.48
8.1.110.0000.00717.51
8.1.100.0040.00417.38
8.1.90.0040.00417.41
8.1.80.0000.00717.52
8.1.70.0030.00317.38
8.1.60.0030.00617.55
8.1.50.0030.00517.53
8.1.40.0060.00317.50
8.1.30.0050.00317.65
8.1.20.0080.00017.50
8.1.10.0000.00717.62
8.1.00.0030.00617.46
8.0.300.0040.00420.11
8.0.290.0040.00416.63
8.0.280.0030.00318.53
8.0.270.0030.00317.29
8.0.260.0000.00717.29
8.0.250.0040.00416.99
8.0.240.0000.00716.87
8.0.230.0000.00716.95
8.0.220.0030.00416.93
8.0.210.0030.00316.93
8.0.200.0050.00216.88
8.0.190.0000.00816.97
8.0.180.0080.00016.98
8.0.170.0000.00816.84
8.0.160.0050.00317.00
8.0.150.0040.00416.77
8.0.140.0050.00316.89
8.0.130.0070.00013.33
8.0.120.0030.00616.94
8.0.110.0060.00316.93
8.0.100.0080.00016.91
8.0.90.0050.00216.91
8.0.80.0060.00916.88
8.0.70.0060.00316.88
8.0.60.0050.00216.84
8.0.50.0040.00416.71
8.0.30.0090.00917.04
8.0.20.0070.01217.40
8.0.10.0030.00516.92
8.0.00.0070.01216.68
7.4.330.0000.00515.16
7.4.320.0090.00016.57
7.4.300.0030.00316.63
7.4.290.0040.00416.52
7.4.280.0000.00716.63
7.4.270.0030.00316.59
7.4.260.0040.00416.61
7.4.250.0080.00016.48
7.4.240.0020.00516.43
7.4.230.0070.00016.45
7.4.220.0120.00616.61
7.4.210.0030.01216.48
7.4.200.0050.00216.39
7.4.160.0160.00716.57
7.4.150.0110.00717.40
7.4.140.0100.00717.86
7.4.130.0100.00816.54
7.4.120.0100.00816.48
7.4.110.0100.00716.52
7.4.100.0140.00316.54
7.4.90.0030.01616.45
7.4.80.0100.00619.39
7.4.70.0080.00816.54
7.4.60.0100.00716.42
7.4.50.0040.00016.57
7.4.40.0060.01016.61
7.4.30.0140.00316.57
7.4.10.0090.00915.15
7.4.00.0120.00714.95
7.3.330.0060.00013.28
7.3.320.0050.00013.23
7.3.310.0040.00416.48
7.3.300.0040.00416.33
7.3.290.0030.01616.34
7.3.280.0100.00716.37
7.3.270.0030.01317.40
7.3.260.0140.00316.35
7.3.250.0160.00516.24
7.3.240.0120.00616.56
7.3.230.0060.01016.44
7.3.210.0100.00616.66
7.3.200.0090.00919.39
7.3.190.0130.00316.66
7.3.180.0090.00616.41
7.3.170.0100.00716.37
7.3.160.0090.01216.62
7.3.130.0090.00915.08
7.3.120.0070.01215.12
7.3.110.0100.00814.76
7.3.100.0050.00815.02
7.3.90.0090.00814.88
7.3.80.0060.00915.13
7.3.70.0030.01114.85
7.3.60.0070.00714.89
7.3.50.0090.00414.73
7.3.40.0110.00614.86
7.3.30.0080.00214.84
7.3.20.0060.00916.50
7.3.10.0050.00716.64
7.3.00.0080.00816.71
7.2.330.0070.01016.79
7.2.320.0100.00616.80
7.2.310.0100.01016.59
7.2.300.0100.00716.81
7.2.290.0040.01716.72
7.2.260.0090.00915.07
7.2.250.0080.01115.16
7.2.240.0060.00615.19
7.2.230.0030.01315.11
7.2.220.0030.01015.27
7.2.210.0040.00814.84
7.2.200.0080.00615.14
7.2.190.0070.00815.09
7.2.180.0070.00715.15
7.2.170.0050.00615.22
7.2.160.0090.00614.95
7.2.150.0040.01516.95
7.2.140.0030.00916.91
7.2.130.0000.00916.90
7.2.120.0030.01017.05
7.2.110.0060.00317.09
7.2.100.0070.00717.18
7.2.90.0100.00716.85
7.2.80.0110.00416.93
7.2.70.0060.00917.04
7.2.60.0000.01417.06
7.2.50.0070.00716.90
7.2.40.0060.01016.70
7.2.30.0030.01017.14
7.2.20.0110.00416.97
7.2.10.0150.00416.78
7.2.00.0050.00618.00
7.1.330.0050.00815.92
7.1.320.0070.00715.82
7.1.310.0020.00915.66
7.1.300.0090.00615.77
7.1.290.0050.01315.92
7.1.280.0040.00615.82
7.1.270.0050.00915.92
7.1.260.0070.00615.83
7.1.250.0040.00815.61
7.1.240.0070.00715.68
7.1.230.0070.00815.74
7.1.220.0040.00815.83
7.1.210.0030.00915.78
7.1.200.0050.00915.63
7.1.190.0030.01015.84
7.1.180.0070.00715.54
7.1.170.0000.01016.02
7.1.160.0070.01016.02
7.1.150.0070.00715.76
7.1.140.0070.00715.78
7.1.130.0030.00615.82
7.1.120.0030.01015.88
7.1.110.0030.00515.50
7.1.100.0040.00716.94
7.1.90.0100.00015.90
7.1.80.0040.00816.00
7.1.70.0060.00416.50
7.1.60.0050.01417.73
7.1.50.0050.00616.38
7.1.40.0070.01015.82
7.1.30.0070.00715.77
7.1.20.0000.01315.72
7.1.10.0030.00715.71
7.1.00.0080.04519.17
7.0.330.0070.00715.26
7.0.320.0030.01015.36
7.0.310.0040.00415.40
7.0.300.0100.00715.51
7.0.290.0090.00315.27
7.0.280.0090.00015.64
7.0.270.0080.00015.46
7.0.260.0070.00415.05
7.0.250.0080.00315.21
7.0.240.0070.00715.18
7.0.230.0000.00815.44
7.0.220.0040.00815.34
7.0.210.0030.00615.55
7.0.200.0200.00615.16
7.0.190.0030.00715.36
7.0.180.0030.01015.34
7.0.170.0070.00315.38
7.0.160.0030.01015.50
7.0.150.0040.00815.56
7.0.140.0070.03518.66
7.0.130.0070.00715.28
7.0.120.0060.00315.27
7.0.110.0040.00415.58
7.0.100.0030.01015.45
7.0.90.0040.00415.58
7.0.80.0000.01015.11
7.0.70.0030.00715.12
7.0.60.0050.02617.74
7.0.50.0000.05216.67
7.0.40.0000.02816.78
7.0.30.0130.04316.78
7.0.20.0150.02016.75
7.0.10.0050.04716.81
7.0.00.0080.03916.72
5.6.400.0030.00714.09
5.6.390.0060.00614.70
5.6.380.0070.00414.42
5.6.370.0070.00414.51
5.6.360.0090.00614.85
5.6.350.0030.01314.48
5.6.340.0070.00714.48
5.6.330.0050.00514.38
5.6.320.0070.00714.18
5.6.310.0130.00314.65
5.6.300.0060.00314.30
5.6.290.0140.00014.69
5.6.280.0060.04017.60
5.6.270.0040.00714.16
5.6.260.0110.00414.59
5.6.250.0000.01414.75
5.6.240.0030.00914.44
5.6.230.0110.00314.48
5.6.220.0070.00714.75
5.6.210.0070.03317.65
5.6.200.0080.04516.30
5.6.190.0050.02517.41
5.6.180.0130.04117.38
5.6.170.0160.02517.57
5.6.160.0100.03517.51
5.6.150.0090.02716.31
5.6.140.0070.04016.51
5.6.130.0050.04516.31
5.6.120.0050.04817.92
5.6.110.0070.02517.66
5.6.100.0070.04517.64
5.6.90.0030.03617.75
5.6.80.0030.05017.42
5.6.70.1850.02017.29
5.6.60.0080.00814.34
5.6.50.0040.00414.43
5.6.40.0030.00914.46
5.6.30.0030.00914.41
5.6.20.0070.00314.21
5.6.10.0110.00414.35
5.6.00.0060.00814.25
5.5.380.0040.00914.64
5.5.370.0110.00714.19
5.5.360.0000.00914.36
5.5.350.0090.03117.40
5.5.340.0050.02116.28
5.5.330.0070.03617.17
5.5.320.0250.03817.29
5.5.310.0130.02517.28
5.5.300.0060.04615.92
5.5.290.0040.02216.22
5.5.280.0060.04517.48
5.5.270.0050.04417.59
5.5.260.0030.04517.70
5.5.250.0070.04117.46
5.5.240.1920.01717.27
5.5.230.0030.00613.88
5.5.220.0060.00614.72
5.5.210.0030.00914.30
5.5.200.0060.00914.25
5.5.190.0030.01414.11
5.5.180.0060.00314.27
5.5.170.0070.00714.59
5.5.160.0000.00914.26
5.5.150.0060.00714.14
5.5.140.0040.01114.06
5.5.130.0000.00914.05
5.5.120.0060.00614.28
5.5.110.0030.01014.23
5.5.100.0030.00613.96
5.5.90.0030.00714.52
5.5.80.0110.00014.43
5.5.70.0030.01014.39
5.5.60.0000.00914.38
5.5.50.0030.00714.04
5.5.40.0000.01014.44
5.5.30.0110.00314.21
5.5.20.0000.01314.42
5.5.10.0060.01014.29
5.5.00.0070.00713.95
5.4.450.0170.02716.27
5.4.440.0220.02916.34
5.4.430.0220.02316.45
5.4.420.0200.02016.32
5.4.410.0000.02316.32
5.4.400.0230.02516.26
5.4.390.0220.02416.09
5.4.380.0050.03415.91
5.4.370.0110.03415.97
5.4.360.0180.03116.08
5.4.350.0220.03115.91
5.4.340.0100.03316.06
5.4.330.0060.00613.35
5.4.320.0050.02012.92
5.4.310.0060.02412.92
5.4.300.0040.02212.92
5.4.290.0040.02212.92
5.4.280.0050.02012.87
5.4.270.0020.02312.87
5.4.260.0030.02412.87
5.4.250.0050.02012.87
5.4.240.0040.02212.87
5.4.230.0060.02212.87
5.4.220.0020.02312.87
5.4.210.0040.02212.86
5.4.200.0070.01912.87
5.4.190.0050.01912.86
5.4.180.0050.01912.86
5.4.170.0080.01712.87
5.4.160.0070.01912.87
5.4.150.0050.02112.87
5.4.140.0070.02012.71
5.4.130.0050.02412.70
5.4.120.0050.02012.68
5.4.110.0060.02112.68
5.4.100.0050.02112.68
5.4.90.0060.02112.68
5.4.80.0030.02412.68
5.4.70.0060.01912.67
5.4.60.0030.02212.68
5.4.50.0030.02112.68
5.4.40.0070.02112.67
5.4.30.0050.02112.67
5.4.20.0060.02012.67
5.4.10.0050.02012.67
5.4.00.0050.02212.42
5.3.290.0080.03912.80
5.3.280.0050.03912.71
5.3.270.0070.04112.72
5.3.260.0060.04312.72
5.3.250.0050.04012.71
5.3.240.0060.03912.72
5.3.230.0080.03712.70
5.3.220.0090.03412.68
5.3.210.0070.04312.68
5.3.200.0070.03912.68
5.3.190.0060.04112.68
5.3.180.0070.03612.68
5.3.170.0060.03712.67
5.3.160.0070.03612.67
5.3.150.0100.03312.67
5.3.140.0060.04312.66
5.3.130.0060.03912.66
5.3.120.0090.03512.66
5.3.110.0060.03812.66
5.3.100.0060.03712.12
5.3.90.0080.03512.10
5.3.80.0050.03812.10
5.3.70.0130.03912.10
5.3.60.0080.03612.08
5.3.50.0080.03412.03
5.3.40.0090.03212.03
5.3.30.0060.03511.99
5.3.20.0090.03711.77
5.3.10.0140.05711.73
5.3.00.0040.04711.72
5.2.170.0050.0319.22
5.2.160.0050.0339.23
5.2.150.0060.0339.23
5.2.140.0060.0349.23
5.2.130.0070.0309.19
5.2.120.0090.0309.19
5.2.110.0040.0359.19
5.2.100.0050.0429.18
5.2.90.0080.0269.19
5.2.80.0040.0329.18
5.2.70.0070.0289.18
5.2.60.0070.0289.14
5.2.50.0050.0319.11
5.2.40.0070.0289.08
5.2.30.0070.0369.05
5.2.20.0060.0279.04
5.2.10.0050.0298.95
5.2.00.0050.0288.82
5.1.60.0060.0228.08
5.1.50.0050.0248.08
5.1.40.0060.0248.06
5.1.30.0080.0238.41
5.1.20.0060.0278.43
5.1.10.0040.0278.16
5.1.00.0060.0248.16
5.0.50.0050.0196.64
5.0.40.0030.0216.50
5.0.30.0030.0356.32
5.0.20.0030.0216.28
5.0.10.0040.0206.27
5.0.00.0050.0326.26
4.4.90.0030.0174.78
4.4.80.0050.0144.76
4.4.70.0020.0174.76
4.4.60.0040.0184.75
4.4.50.0040.0214.77
4.4.40.0050.0304.71
4.4.30.0040.0184.75
4.4.20.0030.0154.85
4.4.10.0030.0154.84
4.4.00.0010.0264.76
4.3.110.0030.0154.67
4.3.100.0030.0154.66
4.3.90.0010.0164.63
4.3.80.0020.0254.58
4.3.70.0040.0184.63
4.3.60.0000.0174.63
4.3.50.0040.0154.63
4.3.40.0020.0304.54
4.3.30.0010.0173.32
4.3.20.0020.0163.29
4.3.10.0010.0163.24
4.3.00.0070.01713.95

preferences:
52.39 ms | 401 KiB | 5 Q