3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = array( 'test1' => array( '11', '22', '33', '44' ), 'test2' => array( '44', '55', '66', '77' ) ); $new = array(); $new2 = array(); foreach( $tests as $test ) { $new += array_flip( $test ); $new2 = array_merge( $new2, $test ); } print_r($new); print_r($new2);

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.55
8.3.50.0100.01021.90
8.3.40.0080.00818.75
8.3.30.0030.01018.96
8.3.20.0040.00420.16
8.3.10.0080.00022.12
8.3.00.0050.00322.46
8.2.180.0110.01118.29
8.2.170.0070.00722.96
8.2.160.0110.00420.77
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0040.01126.16
8.2.120.0050.00319.36
8.2.110.0090.00022.10
8.2.100.0080.00319.45
8.2.90.0000.00819.34
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0070.00317.80
8.2.50.0000.00918.07
8.2.40.0000.00818.09
8.2.30.0000.00718.08
8.2.20.0080.00017.57
8.2.10.0000.00817.73
8.2.00.0040.00417.74
8.1.280.0070.01425.92
8.1.270.0030.00623.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.88
8.1.230.0040.00819.22
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0040.00417.23
8.1.190.0050.00317.40
8.1.180.0030.00618.10
8.1.170.0060.00618.66
8.1.160.0000.01022.05
8.1.150.0030.00618.64
8.1.140.0000.00817.36
8.1.130.0030.00317.73
8.1.120.0000.00717.49
8.1.110.0030.00617.46
8.1.100.0040.00417.42
8.1.90.0030.00317.46
8.1.80.0000.00717.49
8.1.70.0000.00617.38
8.1.60.0070.00017.52
8.1.50.0060.00317.40
8.1.40.0000.00717.58
8.1.30.0030.00617.60
8.1.20.0040.00417.59
8.1.10.0070.00017.45
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0000.00817.18
8.0.280.0000.00818.45
8.0.270.0040.00417.25
8.0.260.0030.00316.75
8.0.250.0000.00717.02
8.0.240.0030.00316.97
8.0.230.0000.00717.00
8.0.220.0030.00316.84
8.0.210.0060.00016.86
8.0.200.0070.00017.05
8.0.190.0050.00316.89
8.0.180.0040.00416.87
8.0.170.0030.00517.03
8.0.160.0000.00916.82
8.0.150.0030.00716.90
8.0.140.0040.00416.89
8.0.130.0050.00313.36
8.0.120.0050.00216.92
8.0.110.0040.00416.97
8.0.100.0070.00016.84
8.0.90.0000.00716.98
8.0.80.0090.00616.99
8.0.70.0030.00516.82
8.0.60.0040.00416.93
8.0.50.0080.00016.99
8.0.30.0160.00616.99
8.0.20.0100.00817.40
8.0.10.0030.00516.94
8.0.00.0110.00816.73
7.4.330.0050.00015.11
7.4.320.0030.00316.52
7.4.300.0030.00316.58
7.4.290.0070.00016.45
7.4.280.0060.00016.46
7.4.270.0070.00016.52
7.4.260.0080.00016.38
7.4.250.0070.00016.52
7.4.240.0010.00616.60
7.4.230.0040.00416.70
7.4.220.0110.00716.67
7.4.210.0080.00816.53
7.4.200.0030.00316.43
7.4.190.0070.00016.50
7.4.160.0180.00316.30
7.4.150.0120.00617.40
7.4.140.0150.00517.86
7.4.130.0090.00816.43
7.4.120.0100.00816.57
7.4.110.0100.00716.32
7.4.100.0100.00716.39
7.4.90.0090.00916.47
7.4.80.0050.01316.47
7.4.70.0100.01316.38
7.4.60.0090.00916.59
7.4.50.0080.00016.41
7.4.40.0100.00722.77
7.4.30.0100.01016.56
7.4.00.0080.00814.58
7.3.330.0000.00513.06
7.3.320.0050.00013.06
7.3.310.0050.00216.20
7.3.300.0060.00016.17
7.3.290.0070.00716.23
7.3.280.0100.01016.25
7.3.270.0100.00717.40
7.3.260.0150.00316.21
7.3.250.0140.00516.27
7.3.240.0130.00716.25
7.3.230.0080.00816.44
7.3.210.0100.01016.37
7.3.200.0090.00919.39
7.3.190.0120.00916.54
7.3.180.0140.00316.25
7.3.170.0070.00716.28
7.3.160.0150.00616.27
7.3.120.0070.00714.81
7.3.00.0030.01216.50
7.2.330.0040.01416.69
7.2.320.0040.01216.50
7.2.310.0110.00816.46
7.2.300.0120.01216.61
7.2.290.0120.01016.50
7.2.130.0070.01016.95
7.2.120.0070.00416.47
7.2.110.0120.00317.04
7.2.100.0030.00616.93
7.2.90.0060.00616.86
7.2.80.0040.00716.88
7.2.70.0030.00717.03
7.2.60.0070.00716.88
7.2.50.0060.00916.91
7.2.40.0070.01016.96
7.2.30.0030.00616.76
7.2.20.0000.01316.68
7.2.10.0000.01216.85
7.2.00.0090.01118.03
7.1.250.0100.00715.82
7.1.240.0090.00615.80
7.1.230.0100.00615.93
7.1.220.0030.00615.79
7.1.210.0110.00015.84
7.1.200.0060.00615.53
7.1.190.0000.00915.64
7.1.180.0070.00315.79
7.1.170.0060.00915.49
7.1.160.0000.01115.63
7.1.150.0000.00915.66
7.1.140.0060.00615.57
7.1.130.0040.00715.74
7.1.120.0100.00315.69
7.1.110.0100.00315.70
7.1.100.0060.00517.01
7.1.90.0090.00615.64
7.1.80.0080.00015.98
7.1.70.0040.00516.34
7.1.60.0070.01117.85
7.1.50.0050.01016.36
7.1.40.0130.00015.50
7.1.30.0020.00515.57
7.1.20.0060.00615.58
7.1.10.0090.00615.68
7.1.00.0020.04519.06
7.0.330.0070.00715.29
7.0.320.0110.00415.46
7.0.310.0030.00715.58
7.0.300.0030.00715.35
7.0.290.0060.00615.32
7.0.280.0090.00315.20
7.0.270.0000.01015.46
7.0.260.0030.00615.41
7.0.250.0100.00315.40
7.0.240.0080.00315.34
7.0.230.0100.00015.46
7.0.220.0000.01315.44
7.0.210.0040.00815.54
7.0.200.0030.01016.09
7.0.190.0030.00515.30
7.0.180.0070.00715.37
7.0.170.0060.00615.47
7.0.160.0040.00815.50
7.0.150.0110.00415.36
7.0.140.0080.03718.61
7.0.130.0030.01015.38
7.0.120.0060.00615.57
7.0.110.0060.02417.71
7.0.100.0030.02417.71
7.0.90.0030.02317.73
7.0.80.0020.03417.81
7.0.70.0060.02917.63
7.0.60.0100.02517.59
7.0.50.0150.02217.78
7.0.40.0050.02316.74
7.0.30.0050.02516.59
7.0.20.0050.02816.79
7.0.10.0030.04716.89
7.0.00.0100.04216.65
5.6.380.0100.00314.60
5.6.370.0030.01314.58
5.6.360.0040.00414.19
5.6.350.0030.01014.62
5.6.340.0030.00614.62
5.6.330.0000.01314.59
5.6.320.0040.00714.23
5.6.310.0040.00714.16
5.6.300.0030.01014.16
5.6.290.0030.00613.96
5.6.280.0020.04417.59
5.6.270.0000.00814.54
5.6.260.0050.02517.58
5.6.250.0080.02617.28
5.6.240.0060.02917.54
5.6.230.0050.03317.47
5.6.220.0060.02517.38
5.6.210.0020.02717.50
5.6.200.0080.02017.61
5.6.190.0070.02217.67
5.6.180.0080.03617.67
5.6.170.0070.03317.56
5.6.160.0110.04017.57
5.6.150.0080.04217.67
5.6.140.0050.04517.73
5.6.130.0080.04517.77
5.6.120.0070.04317.66
5.6.110.0050.04817.57
5.6.100.0090.02617.87
5.6.90.0150.03817.60
5.6.80.0060.04417.13
5.6.70.0110.03817.28
5.6.60.0020.04817.30
5.6.50.0150.03817.25
5.6.40.0100.04217.38
5.6.30.0120.03317.33
5.6.20.0000.04417.25
5.6.10.0140.03717.33
5.6.00.0080.04217.31
5.5.380.0040.03115.86
5.5.370.0000.02515.80
5.5.360.0020.02615.67
5.5.350.0050.01915.89
5.5.340.0070.03616.07
5.5.330.0030.02516.07
5.5.320.0050.04116.00
5.5.310.0020.03916.03
5.5.300.0000.03315.96
5.5.290.0100.04015.87
5.5.280.0100.02715.94
5.5.270.0000.03816.07
5.5.260.0080.03816.03
5.5.250.0050.04615.87
5.5.240.0030.04615.60
5.5.230.0030.03815.83
5.5.220.0070.04215.59
5.5.210.0070.03215.70
5.5.200.0060.02415.69
5.5.190.0050.03515.49
5.5.180.0120.03515.71
5.5.170.0110.00010.97
5.5.160.0030.04215.62
5.5.150.0050.04315.65
5.5.140.0030.04215.51
5.5.130.0080.02815.81
5.5.120.0060.04015.68
5.5.110.0070.03715.58
5.5.100.0000.04715.51
5.5.90.0120.03315.67
5.5.80.0040.03815.57
5.5.70.0100.03415.47
5.5.60.0100.03515.65
5.5.50.0030.04115.70
5.5.40.0070.03515.50
5.5.30.0050.03715.57
5.5.20.0080.03515.69
5.5.10.0020.04515.68
5.5.00.0080.04015.47
5.4.450.0030.04115.33
5.4.440.0050.04215.32
5.4.430.0070.03015.19
5.4.420.0070.04015.41
5.4.410.0000.05215.17
5.4.400.0090.02015.21
5.4.390.0070.02715.17
5.4.380.0050.04015.00
5.4.370.0050.04215.18
5.4.360.0060.04115.04
5.4.350.0010.04115.16
5.4.340.0070.03715.13
5.4.330.0080.00311.20
5.4.320.0080.03815.07
5.4.310.0100.03915.02
5.4.300.0060.04114.96
5.4.290.0090.03515.12
5.4.280.0070.03714.94
5.4.270.0070.04014.90
5.4.260.0050.03515.05
5.4.250.0090.03515.02
5.4.240.0080.03215.14
5.4.230.0000.04814.96
5.4.220.0060.04015.13
5.4.210.0070.04015.08
5.4.200.0020.04414.98
5.4.190.0040.04015.10
5.4.180.0050.03814.84
5.4.170.0030.04315.12
5.4.160.0090.03214.93
5.4.150.0020.04714.84
5.4.140.0070.03913.46
5.4.130.0110.01813.50
5.4.120.0090.03013.63
5.4.110.0070.03813.78
5.4.100.0060.03613.59
5.4.90.0080.03813.74
5.4.80.0100.03313.79
5.4.70.0060.04113.65
5.4.60.0080.03613.83
5.4.50.0040.03613.75
5.4.40.0050.03913.93
5.4.30.0090.03513.71
5.4.20.0050.03513.71
5.4.10.0070.03513.58
5.4.00.0070.03513.50
5.3.290.0000.04412.71
5.3.280.0070.03412.45
5.3.270.0050.04012.65
5.3.260.0050.02712.60
5.3.250.0020.04212.52
5.3.240.0050.04012.47
5.3.230.0100.03712.63
5.3.220.0120.03312.62
5.3.210.0090.03712.42
5.3.200.0020.04312.50
5.3.190.0050.04012.57
5.3.180.0070.04012.65
5.3.170.0100.04012.68
5.3.160.0030.04912.68
5.3.150.0060.04212.55
5.3.140.0110.03512.57
5.3.130.0040.03812.58
5.3.120.0110.03812.50
5.3.110.0080.02912.60
5.3.100.0080.03812.35
5.3.90.0070.03712.39
5.3.80.0080.02012.33
5.3.70.0130.03312.21
5.3.60.0070.03012.30
5.3.50.0070.04012.18
5.3.40.0050.03512.27
5.3.30.0050.03912.32
5.3.20.0060.03612.12
5.3.10.0090.03312.03
5.3.00.0050.04011.86
5.2.170.0020.03410.92
5.2.160.0080.03210.92
5.2.150.0030.03510.92
5.2.140.0040.03110.92
5.2.130.0050.03210.92
5.2.120.0050.02510.92
5.2.110.0010.03610.92
5.2.100.0050.02310.92
5.2.90.0030.03510.92
5.2.80.0070.03010.92
5.2.70.0080.02810.92
5.2.60.0030.03410.92
5.2.50.0020.03410.92
5.2.40.0030.03310.92
5.2.30.0030.03110.92
5.2.20.0060.03110.92
5.2.10.0070.03010.92
5.2.00.0060.01810.92
5.1.60.0030.02810.92
5.1.50.0000.03310.92
5.1.40.0050.02310.92
5.1.30.0070.02710.92
5.1.20.0070.02210.92
5.1.10.0030.03110.92
5.1.00.0050.02410.92
5.0.50.0050.02310.92
5.0.40.0020.02410.92
5.0.30.0040.02010.92
5.0.20.0050.02210.92
5.0.10.0030.02410.92
5.0.00.0060.03310.92
4.4.90.0000.02210.92
4.4.80.0000.02210.92
4.4.70.0020.01810.92
4.4.60.0020.02010.92
4.4.50.0010.01910.92
4.4.40.0000.03010.92
4.4.30.0050.01510.92
4.4.20.0030.01910.92
4.4.10.0020.01210.92
4.4.00.0030.02710.92
4.3.110.0040.01810.92
4.3.100.0030.01910.92
4.3.90.0000.02010.92
4.3.80.0050.02310.92
4.3.70.0000.01310.92
4.3.60.0030.01510.92
4.3.50.0050.01710.92
4.3.40.0050.02510.92
4.3.30.0020.01910.92
4.3.20.0020.02110.92
4.3.10.0020.02010.92
4.3.00.0020.02010.92

preferences:
42.27 ms | 401 KiB | 5 Q