3v4l.org

run code in 300+ PHP versions simultaneously
<?php $master = array(); $arrColors = array('R', 'B', 'G' ,'Y'); $arrNumbers = array('1', '2', '3', '4'); foreach($arrColors as $color) { foreach($arrNumbers as $num) { //$master[$color] = $num; $master = $color.' => '.$num; //echo "\n"; } } print_r($master);

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.0090.00618.18
8.3.50.0110.00921.28
8.3.40.0120.00318.71
8.3.30.0070.01119.04
8.3.20.0040.00420.13
8.3.10.0040.00420.27
8.3.00.0040.00419.18
8.2.180.0100.01016.35
8.2.170.0100.00322.96
8.2.160.0070.00720.32
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.17
8.2.110.0090.00020.54
8.2.100.0000.01117.97
8.2.90.0060.00319.05
8.2.80.0050.00317.97
8.2.70.0060.00317.49
8.2.60.0100.00018.03
8.2.50.0050.00518.07
8.2.40.0060.00318.34
8.2.30.0060.00318.05
8.2.20.0000.00817.67
8.2.10.0070.00018.10
8.2.00.0050.00517.62
8.1.280.0070.00725.92
8.1.270.0080.00022.07
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00623.61
8.1.230.0080.00319.00
8.1.220.0050.00317.76
8.1.210.0080.00018.77
8.1.200.0000.00817.35
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0040.00418.49
8.1.160.0000.00821.96
8.1.150.0000.00818.76
8.1.140.0070.00017.47
8.1.130.0070.00017.79
8.1.120.0040.00417.43
8.1.110.0000.00717.36
8.1.100.0000.00717.41
8.1.90.0040.00417.47
8.1.80.0070.00017.45
8.1.70.0000.00717.36
8.1.60.0030.00517.61
8.1.50.0030.00617.54
8.1.40.0040.00417.50
8.1.30.0030.00617.61
8.1.20.0040.00417.71
8.1.10.0030.00617.55
8.1.00.0000.00817.30
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0040.00418.49
8.0.270.0000.00717.26
8.0.260.0060.00017.18
8.0.250.0070.00016.92
8.0.240.0030.00316.82
8.0.230.0000.00616.94
8.0.220.0000.00716.83
8.0.210.0030.00316.91
8.0.200.0060.00016.81
8.0.190.0000.00716.97
8.0.180.0040.00416.80
8.0.170.0040.00416.93
8.0.160.0070.00017.00
8.0.150.0000.00716.86
8.0.140.0030.00416.91
8.0.130.0050.00013.28
8.0.120.0080.00016.73
8.0.110.0070.00016.91
8.0.100.0050.00316.77
8.0.90.0000.00716.74
8.0.80.0060.00916.93
8.0.70.0070.00016.70
8.0.60.0050.00316.96
8.0.50.0080.00016.92
8.0.30.0140.00816.98
8.0.20.0070.01417.40
8.0.10.0000.00716.91
8.0.00.0090.01116.89
7.4.330.0020.00215.01
7.4.320.0030.00316.61
7.4.300.0030.00316.58
7.4.290.0070.00016.45
7.4.280.0040.00416.55
7.4.270.0000.00816.43
7.4.260.0000.00816.50
7.4.250.0000.00716.58
7.4.240.0020.00616.46
7.4.230.0050.00216.39
7.4.220.0100.01016.70
7.4.210.0080.00816.59
7.4.200.0070.00016.57
7.4.160.0030.01316.41
7.4.150.0110.00717.40
7.4.140.0090.01117.86
7.4.130.0070.01216.43
7.4.120.0070.01016.49
7.4.110.0060.00916.55
7.4.100.0080.00816.38
7.4.90.0100.00616.41
7.4.80.0100.01319.39
7.4.70.0140.00716.54
7.4.60.0130.00616.41
7.4.50.0040.00016.59
7.4.40.0080.01216.48
7.4.30.0090.01216.46
7.4.00.0140.00015.10
7.3.330.0020.00213.19
7.3.320.0060.00013.16
7.3.310.0000.00816.27
7.3.300.0030.00316.13
7.3.290.0000.01416.32
7.3.280.0080.01016.27
7.3.270.0090.00917.40
7.3.260.0090.00816.64
7.3.250.0070.01016.49
7.3.240.0160.00016.33
7.3.230.0060.01116.39
7.3.210.0100.00716.29
7.3.200.0060.01619.39
7.3.190.0140.00316.62
7.3.180.0080.00816.48
7.3.170.0100.00716.31
7.3.160.0180.00416.39
7.3.10.0040.01116.58
7.3.00.0070.00716.70
7.2.330.0070.01016.34
7.2.320.0130.00316.53
7.2.310.0070.01016.64
7.2.300.0110.00516.32
7.2.290.0090.00916.65
7.2.130.0070.01116.88
7.2.120.0140.00716.81
7.2.110.0110.00716.94
7.2.100.0070.00716.89
7.2.90.0110.00316.71
7.2.80.0100.00316.67
7.2.70.0100.00316.87
7.2.60.0110.00316.75
7.2.50.0080.00416.94
7.2.40.0070.00716.85
7.2.30.0000.01016.67
7.2.20.0060.00616.77
7.2.10.0070.01116.71
7.2.00.0100.00518.11
7.1.250.0100.00315.68
7.1.240.0090.00615.79
7.1.230.0120.00315.80
7.1.220.0000.01015.52
7.1.210.0110.00415.44
7.1.200.0090.00215.78
7.1.190.0090.00315.83
7.1.180.0040.00815.75
7.1.170.0110.00415.69
7.1.160.0060.00615.77
7.1.150.0030.01015.46
7.1.140.0090.00915.43
7.1.130.0070.00715.73
7.1.120.0070.00715.43
7.1.110.0060.00615.59
7.1.100.0070.00816.89
7.1.90.0090.00915.68
7.1.80.0070.01015.74
7.1.70.0030.00816.26
7.1.60.0070.01017.51
7.1.50.0070.01416.34
7.1.40.0070.00715.42
7.1.30.0130.00315.82
7.1.20.0110.00315.81
7.1.10.0070.01115.64
7.1.00.0060.03919.09
7.0.330.0110.00414.96
7.0.320.0030.00715.48
7.0.310.0080.00815.31
7.0.300.0120.00315.55
7.0.290.0070.00715.45
7.0.280.0110.00715.31
7.0.270.0070.00715.47
7.0.260.0090.00415.32
7.0.250.0070.00415.36
7.0.240.0040.00815.38
7.0.230.0040.01115.41
7.0.220.0130.00015.57
7.0.210.0030.01015.37
7.0.200.0060.00516.11
7.0.190.0000.01515.45
7.0.180.0090.00615.14
7.0.170.0070.00715.49
7.0.160.0040.00415.54
7.0.150.0100.00715.49
7.0.140.0050.04218.51
7.0.130.0030.01215.55
7.0.120.0070.01015.58
7.0.110.0120.00415.27
7.0.100.0060.00915.23
7.0.90.0080.00415.45
7.0.80.0060.00615.46
7.0.70.0070.00415.50
7.0.60.0130.02317.74
7.0.50.0100.04016.57
7.0.40.0060.03716.72
7.0.30.0100.02716.83
7.0.20.0150.02816.49
7.0.10.0120.03816.88
7.0.00.0020.03116.85
5.6.380.0000.01513.97
5.6.370.0040.01114.43
5.6.360.0000.01513.94
5.6.350.0100.00314.34
5.6.340.0060.00614.48
5.6.330.0040.00814.36
5.6.320.0130.00313.98
5.6.310.0090.00314.27
5.6.300.0060.00614.23
5.6.290.0090.00613.86
5.6.280.0080.03517.72
5.6.270.0050.00514.23
5.6.260.0080.00413.97
5.6.250.0000.01214.45
5.6.240.0030.00614.27
5.6.230.0060.00314.06
5.6.220.0040.00714.40
5.6.210.0030.04717.54
5.6.200.0050.04116.23
5.6.190.0080.02317.33
5.6.180.0180.03117.58
5.6.170.0150.04517.50
5.6.160.0030.04917.27
5.6.150.0100.04516.16
5.6.140.0060.02016.29
5.6.130.0090.04116.24
5.6.120.0070.03517.72
5.6.110.0120.04017.59
5.6.100.0070.04017.51
5.6.90.0080.02217.51
5.6.80.0020.05017.37
5.6.70.0120.00013.86
5.6.60.0070.01013.98
5.6.50.0070.00714.12
5.6.40.0090.00313.90
5.6.30.0060.00613.82
5.6.20.0090.00914.26
5.6.10.0060.00614.19
5.6.00.0050.00814.07
5.5.380.0030.00310.98
5.5.370.0030.00611.21
5.5.360.0040.00810.89
5.5.350.0110.03815.83
5.5.340.0020.02414.56
5.5.330.0020.02515.66
5.5.320.0210.04015.58
5.5.310.0160.03715.65
5.5.300.0090.03214.44
5.5.290.0070.04314.60
5.5.280.0050.02515.71
5.5.270.0070.04115.90
5.5.260.0080.03316.04
5.5.250.0030.03215.84
5.5.240.0180.03015.54
5.5.230.0040.00810.90
5.5.220.0070.00410.89
5.5.210.0070.00710.59
5.5.200.0000.01310.71
5.5.190.0000.00910.61
5.5.180.0100.00011.04
5.5.170.0130.00010.76
5.5.160.0070.00310.95
5.5.150.0030.00610.54
5.5.140.0120.00010.97
5.5.130.0030.00710.63
5.5.120.0030.00611.14
5.5.110.0000.00810.61
5.5.100.0030.00610.57
5.5.90.0040.00410.70
5.5.80.0050.00310.71
5.5.70.0030.00710.89
5.5.60.0070.00210.99
5.5.50.0030.00610.91
5.5.40.0070.00410.75
5.5.30.0050.00910.82
5.5.20.0120.00610.91
5.5.10.0120.00311.04
5.5.00.0040.00810.90
5.4.450.0480.02315.31
5.4.440.0260.02215.17
5.4.430.0270.02215.05
5.4.420.0360.00015.09
5.4.410.0320.00615.12
5.4.400.0330.00014.87
5.4.390.0370.00614.95
5.4.380.0330.00614.77
5.4.370.0320.00414.89
5.4.360.0300.00414.89
5.4.350.0320.00414.78
5.4.340.0350.00214.91
5.4.330.0060.00610.49
5.4.320.0070.01811.66
5.4.310.0020.02411.61
5.4.300.0060.02011.57
5.4.290.0060.02111.53
5.4.280.0060.01911.57
5.4.270.0070.02411.54
5.4.260.0040.02411.43
5.4.250.0080.01911.55
5.4.240.0080.01611.40
5.4.230.0030.02511.39
5.4.220.0050.02311.52
5.4.210.0070.02211.58
5.4.200.0060.02111.46
5.4.190.0010.02411.41
5.4.180.0070.01911.57
5.4.170.0040.02211.69
5.4.160.0060.02011.63
5.4.150.0040.02511.60
5.4.140.0060.02511.40
5.4.130.0090.01711.36
5.4.120.0090.01911.54
5.4.110.0050.01911.41
5.4.100.0020.02311.44
5.4.90.0030.02111.41
5.4.80.0050.02311.42
5.4.70.0070.01911.41
5.4.60.0050.02611.28
5.4.50.0090.02211.30
5.4.40.0080.01811.48
5.4.30.0040.02211.18
5.4.20.0070.02111.35
5.4.10.0030.02111.31
5.4.00.0070.02111.06
5.3.290.0070.02011.64
5.3.280.0070.02411.58
5.3.270.0090.01911.57
5.3.260.0050.02511.50
5.3.250.0040.02311.58
5.3.240.0040.02211.51
5.3.230.0020.02311.57
5.3.220.0050.02111.46
5.3.210.0050.02011.43
5.3.200.0030.02111.46
5.3.190.0040.02111.50
5.3.180.0050.02411.57
5.3.170.0070.02111.60
5.3.160.0070.01911.58
5.3.150.0060.02111.58
5.3.140.0050.02211.46
5.3.130.0050.02311.42
5.3.120.0050.02311.51
5.3.110.0030.02411.53
5.3.100.0080.02111.28
5.3.90.0040.02211.24
5.3.80.0050.02111.15
5.3.70.0060.01911.18
5.3.60.0050.02111.23
5.3.50.0030.02211.14
5.3.40.0070.02011.12
5.3.30.0040.02111.19
5.3.20.0070.01911.01
5.3.10.0070.01810.93
5.3.00.0030.02210.95
5.2.170.0040.0189.21
5.2.160.0040.0209.24
5.2.150.0040.0189.32
5.2.140.0050.0209.36
5.2.130.0040.0179.24
5.2.120.0050.0209.17
5.2.110.0050.0179.31
5.2.100.0030.0179.23
5.2.90.0030.0199.27
5.2.80.0040.0179.24
5.2.70.0050.0159.20
5.2.60.0060.0199.19
5.2.50.0020.0179.19
5.2.40.0030.0169.16
5.2.30.0040.0189.02
5.2.20.0040.0169.10
5.2.10.0050.0168.98
5.2.00.0050.0208.95
5.1.60.0060.0128.29
5.1.50.0030.0158.20
5.1.40.0030.0178.23
5.1.30.0040.0168.56
5.1.20.0010.0178.50
5.1.10.0030.0178.39
5.1.00.0060.0168.29
5.0.50.0040.0137.15
5.0.40.0070.0137.08
5.0.30.0040.0166.98
5.0.20.0040.0116.97
5.0.10.0030.0116.96
5.0.00.0040.0176.96
4.4.90.0030.0096.23
4.4.80.0010.0106.22
4.4.70.0020.0116.22
4.4.60.0010.0116.22
4.4.50.0050.0096.23
4.4.40.0060.0116.20
4.4.30.0050.0076.22
4.4.20.0040.0076.26
4.4.10.0020.0126.27
4.4.00.0040.0146.22
4.3.110.0010.0116.18
4.3.100.0020.0096.17
4.3.90.0020.0106.16
4.3.80.0040.0146.13
4.3.70.0060.0076.16
4.3.60.0020.0096.15
4.3.50.0040.0096.15
4.3.40.0040.0136.11
4.3.30.0020.0115.48
4.3.20.0060.0085.47
4.3.10.0050.0095.45
4.3.00.0040.00910.64

preferences:
52.08 ms | 401 KiB | 5 Q