3v4l.org

run code in 300+ PHP versions simultaneously
<?php //First, use file() to get array of lines from your text file, then... $array_from_file = array('String1', 'String2', 'String3'); $array_from_file = array_map(function($x){return $x = '"'.$x.'"';}, $array_from_file); echo $array_from_file[0] . " " . $array_from_file[1] . " " . $array_from_file[2]; echo "\n\n"; foreach ($array_from_file as $line) { echo $line . "\n"; }

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.01118.56
8.3.50.0090.00922.11
8.3.40.0080.01118.85
8.3.30.0140.00019.05
8.3.20.0090.00920.21
8.3.10.0030.01623.63
8.3.00.0060.00319.68
8.2.180.0100.01018.17
8.2.170.0120.00422.96
8.2.160.0120.00920.22
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00626.16
8.2.120.0080.00019.36
8.2.110.0080.00019.27
8.2.100.0040.00817.76
8.2.90.0110.00017.75
8.2.80.0100.00318.56
8.2.70.0000.00817.50
8.2.60.0040.00417.50
8.2.50.0000.00817.63
8.2.40.0030.00618.41
8.2.30.0030.00518.20
8.2.20.0000.00817.84
8.2.10.0040.00418.01
8.2.00.0000.00819.52
8.1.280.0040.01125.92
8.1.270.0040.00422.04
8.1.260.0060.01226.35
8.1.250.0100.00728.09
8.1.240.0030.00620.99
8.1.230.0060.00617.52
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00317.35
8.1.190.0080.00017.35
8.1.180.0030.00518.10
8.1.170.0040.00418.55
8.1.160.0040.00418.84
8.1.150.0040.00418.58
8.1.140.0040.00417.46
8.1.130.0070.00017.84
8.1.120.0080.00017.48
8.1.110.0040.00317.39
8.1.100.0040.00417.48
8.1.90.0030.00317.38
8.1.80.0040.00417.54
8.1.70.0090.00017.36
8.1.60.0030.00517.58
8.1.50.0000.00817.56
8.1.40.0000.00717.43
8.1.30.0040.00417.66
8.1.20.0040.00417.66
8.1.10.0030.00517.64
8.1.00.0060.00317.52
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0000.00718.32
8.0.270.0030.00317.26
8.0.260.0030.00318.36
8.0.250.0050.00316.92
8.0.240.0030.00316.85
8.0.230.0000.00716.97
8.0.220.0070.00016.80
8.0.210.0000.00716.86
8.0.200.0000.00717.00
8.0.190.0000.00816.92
8.0.180.0040.00416.94
8.0.170.0000.00916.82
8.0.160.0000.00716.88
8.0.150.0050.00316.75
8.0.140.0000.00816.86
8.0.130.0060.00013.41
8.0.120.0040.00416.87
8.0.110.0000.00716.81
8.0.100.0030.00516.78
8.0.90.0050.00316.95
8.0.80.0150.00616.84
8.0.70.0000.00716.93
8.0.60.0000.00716.84
8.0.50.0040.00416.98
8.0.30.0180.00717.24
8.0.20.0110.00817.40
8.0.10.0070.00016.83
8.0.00.0050.01216.65
7.4.330.0060.00015.00
7.4.320.0030.00316.54
7.4.300.0000.00716.61
7.4.290.0030.00316.61
7.4.280.0000.00716.35
7.4.270.0000.00716.61
7.4.260.0000.00716.35
7.4.250.0040.00416.38
7.4.240.0000.00716.55
7.4.230.0000.00616.43
7.4.220.0100.01116.56
7.4.210.0000.01416.70
7.4.200.0030.00516.50
7.4.160.0120.00416.42
7.4.150.0030.01917.40
7.4.140.0100.00817.86
7.4.130.0100.00816.49
7.4.120.0140.00416.52
7.4.110.0060.01016.63
7.4.100.0120.00616.52
7.4.90.0070.01016.51
7.4.80.0130.00719.39
7.4.70.0110.01116.51
7.4.60.0140.00316.46
7.4.50.0040.00416.46
7.4.40.0110.01116.29
7.4.30.0030.01316.66
7.4.10.0090.00914.88
7.4.00.0050.01014.80
7.3.330.0000.00613.23
7.3.320.0030.00313.23
7.3.310.0000.00816.39
7.3.300.0030.00316.39
7.3.290.0100.00316.32
7.3.280.0080.00816.34
7.3.270.0040.01217.40
7.3.260.0120.00616.32
7.3.250.0060.01016.37
7.3.240.0100.00716.61
7.3.230.0100.00716.63
7.3.210.0130.00316.53
7.3.200.0130.00319.39
7.3.190.0030.01316.72
7.3.180.0060.00916.30
7.3.170.0230.01316.45
7.3.160.0060.01016.36
7.3.130.0000.01614.93
7.3.120.0080.00614.95
7.3.110.0090.01014.89
7.3.100.0000.01614.93
7.3.90.0040.01215.00
7.3.80.0040.00414.79
7.3.70.0000.00914.84
7.3.60.0040.00814.64
7.3.50.0070.00714.93
7.3.40.0030.01014.70
7.3.30.0030.00614.70
7.3.20.0080.00316.80
7.3.10.0000.00916.55
7.3.00.0070.00916.62
7.2.330.0060.01316.66
7.2.320.0090.01316.59
7.2.310.0100.01016.86
7.2.300.0060.01016.41
7.2.290.0100.01316.84
7.2.260.0040.01414.84
7.2.250.0000.01315.02
7.2.240.0040.01115.02
7.2.230.0040.00814.93
7.2.220.0000.01815.31
7.2.210.0130.00015.18
7.2.200.0030.01014.95
7.2.190.0070.01015.05
7.2.180.0100.00615.07
7.2.170.0030.01015.05
7.2.160.0030.00615.21
7.2.150.0060.00916.77
7.2.140.0040.01117.07
7.2.130.0030.00716.87
7.2.120.0060.00817.01
7.2.110.0080.00516.95
7.2.100.0050.01017.02
7.2.90.0030.01217.02
7.2.80.0050.00916.95
7.2.70.0050.00917.04
7.2.60.0080.00617.05
7.2.50.0050.01116.99
7.2.40.0080.00517.00
7.2.30.0060.00616.98
7.2.20.0080.00416.80
7.2.10.0050.01116.84
7.2.00.0060.00617.52
7.1.330.0060.00615.83
7.1.320.0030.00915.89
7.1.310.0110.00615.69
7.1.300.0030.01315.82
7.1.290.0110.00415.52
7.1.280.0030.00915.95
7.1.270.0060.00915.84
7.1.260.0050.00515.54
7.1.250.0070.00715.81
7.1.240.0020.01015.86
7.1.230.0030.01115.76
7.1.220.0040.01015.77
7.1.210.0050.00915.83
7.1.200.0050.00715.81
7.1.190.0080.00315.82
7.1.180.0030.01215.77
7.1.170.0020.01115.84
7.1.160.0030.00715.89
7.1.150.0050.01015.72
7.1.140.0020.00615.76
7.1.130.0050.00515.93
7.1.120.0030.00815.91
7.1.110.0020.00915.77
7.1.100.0050.00716.59
7.1.90.0060.00815.71
7.1.80.0030.01015.81
7.1.70.0070.00916.26
7.1.60.0050.01016.99
7.1.50.0030.01316.23
7.1.40.0030.01015.90
7.1.30.0100.00615.89
7.1.20.0040.00715.86
7.1.10.0030.00815.61
7.1.00.0030.03017.97
7.0.330.0030.00715.35
7.0.320.0060.00715.20
7.0.310.0060.00915.29
7.0.300.0030.00915.51
7.0.290.0040.00415.41
7.0.280.0050.00415.32
7.0.270.0040.00915.10
7.0.260.0100.00315.19
7.0.250.0050.00915.43
7.0.240.0060.00515.44
7.0.230.0070.00715.31
7.0.220.0070.00715.31
7.0.210.0050.00815.38
7.0.200.0050.00515.86
7.0.190.0040.00915.46
7.0.180.0050.00715.38
7.0.170.0100.00515.26
7.0.160.0090.00315.31
7.0.150.0070.00315.44
7.0.140.0020.03017.63
7.0.130.0020.01115.37
7.0.120.0050.00615.47
7.0.110.0070.00515.42
7.0.100.0070.00415.32
7.0.90.0060.00715.31
7.0.80.0030.00915.32
7.0.70.0060.00315.33
7.0.60.0080.03016.89
7.0.50.0080.03016.29
7.0.40.0120.02815.72
7.0.30.0150.02815.64
7.0.20.0090.03215.78
7.0.10.0120.01715.78
7.0.00.0050.01815.63
5.6.400.0000.01214.56
5.6.390.0030.00614.41
5.6.380.0030.01014.49
5.6.370.0070.00514.11
5.6.360.0090.00114.14
5.6.350.0030.01014.57
5.6.340.0030.00714.43
5.6.330.0020.01014.48
5.6.320.0030.01014.35
5.6.310.0070.00514.50
5.6.300.0080.00514.55
5.6.290.0060.00414.11
5.6.280.0040.02816.59
5.6.270.0070.00214.29
5.6.260.0050.00514.46
5.6.250.0060.00414.19
5.6.240.0020.00914.48
5.6.230.0060.00614.26
5.6.220.0030.00914.33
5.6.210.0050.03216.44
5.6.200.0030.02315.59
5.6.190.0040.03316.39
5.6.180.0060.02116.36
5.6.170.0150.02116.50
5.6.160.0150.02416.39
5.6.150.0050.02815.73
5.6.140.0060.03115.60
5.6.130.0040.01915.75
5.6.120.0050.01816.54
5.6.110.0110.02916.36
5.6.100.0040.02316.46
5.6.90.0090.02216.56
5.6.80.0080.02516.41
5.6.70.1470.02016.31
5.6.60.0060.00614.43
5.6.50.0020.00914.47
5.6.40.0040.00914.18
5.6.30.0050.00814.44
5.6.20.0050.00914.20
5.6.10.0040.00714.04
5.6.00.0050.00714.43
5.5.380.0080.00212.60
5.5.370.0020.00912.54
5.5.360.0040.00912.97
5.5.350.0050.03215.18
5.5.340.0090.02514.41
5.5.330.0070.03215.35
5.5.320.0160.02515.18
5.5.310.0150.02915.22
5.5.300.0030.02314.38
5.5.290.0020.02914.48
5.5.280.0060.01715.21
5.5.270.0050.02615.31
5.5.260.0080.02515.38
5.5.250.0080.02415.20
5.5.240.0070.03315.24
5.5.230.0100.00312.65
5.5.220.0050.00712.66
5.5.210.0050.00712.64
5.5.200.0110.00212.60
5.5.190.0060.00612.79
5.5.180.0050.00812.88
5.5.170.0000.00712.63
5.5.160.0070.00712.57
5.5.150.0030.00712.78
5.5.140.0030.00812.82
5.5.130.0070.00212.72
5.5.120.0060.00612.57
5.5.110.0060.00412.69
5.5.100.0030.00512.35
5.5.90.0040.00512.55
5.5.80.0050.00712.60
5.5.70.0030.00912.44
5.5.60.0080.00612.55
5.5.50.0050.00912.87
5.5.40.0090.00512.62
5.5.30.0040.01012.56
5.5.20.0030.00612.83
5.5.10.0040.00912.74
5.5.00.0020.00712.69
5.4.450.0200.01822.19
5.4.440.0120.02222.15
5.4.430.0080.02021.99
5.4.420.0120.02022.13
5.4.410.0090.01822.13
5.4.400.0080.01822.06
5.4.390.0130.01522.09
5.4.380.0070.02613.68
5.4.370.0080.02113.85
5.4.360.0030.02413.65
5.4.350.0080.02713.76
5.4.340.0060.02313.72
5.4.330.0020.00611.17
5.4.320.0040.01711.71
5.4.310.0030.01611.66
5.4.300.0060.01511.58
5.4.290.0040.01811.78
5.4.280.0050.01511.53
5.4.270.0060.01911.63
5.4.260.0030.01711.64
5.4.250.0060.01511.63
5.4.240.0010.02011.63
5.4.230.0020.01911.58
5.4.220.0090.01311.74
5.4.210.0030.01711.69
5.4.200.0070.01511.72
5.4.190.0030.01511.61
5.4.180.0030.01911.68
5.4.170.0060.01611.56
5.4.160.0040.01711.58
5.4.150.0030.01811.71
5.4.140.0070.01311.56
5.4.130.0040.01711.56
5.4.120.0030.01411.45
5.4.110.0080.02111.54
5.4.100.0030.01611.55
5.4.90.0020.02011.60
5.4.80.0030.01811.57
5.4.70.0030.02011.44
5.4.60.0040.01611.54
5.4.50.0070.01711.53
5.4.40.0030.01511.58
5.4.30.0050.01611.54
5.4.20.0030.01811.55
5.4.10.0080.01411.54
5.4.00.0050.01711.22
5.3.290.0070.01911.69
5.3.280.0030.01811.57
5.3.270.0080.01411.61
5.3.260.0040.01811.58
5.3.250.0050.01711.50
5.3.240.0040.02111.48
5.3.230.0070.01611.56
5.3.220.0070.01511.55
5.3.210.0060.01511.54
5.3.200.0050.01511.56
5.3.190.0030.01711.58
5.3.180.0040.01411.55
5.3.170.0070.01511.65
5.3.160.0040.01611.56
5.3.150.0080.01411.60
5.3.140.0070.01611.62
5.3.130.0030.01911.56
5.3.120.0050.01611.57
5.3.110.0070.01711.48
5.3.100.0040.01611.38
5.3.90.0050.01411.39
5.3.80.0040.01511.29
5.3.70.0050.01411.29
5.3.60.0090.01711.37
5.3.50.0070.01611.32
5.3.40.0070.01511.37
5.3.30.0040.01511.34
5.3.20.0070.01411.26
5.3.10.0050.01711.15
5.3.00.0050.01511.17
5.2.170.0030.0189.56
5.2.160.0020.0209.56
5.2.150.0020.0199.56
5.2.140.0010.0219.56
5.2.130.0050.0189.54
5.2.120.0050.0169.54
5.2.110.0020.0219.54
5.2.100.0090.0269.54
5.2.90.0020.0199.54
5.2.80.0060.0159.54
5.2.70.0040.0189.54
5.2.60.0040.0169.52
5.2.50.0050.0179.50
5.2.40.0020.0219.49
5.2.30.0050.0179.48
5.2.20.0050.0179.47
5.2.10.0050.0149.43
5.2.00.0050.0159.37
5.1.60.0040.0169.00
5.1.50.0030.0149.00
5.1.40.0030.0169.00
5.1.30.0030.0249.17
5.1.20.0040.0159.18
5.1.10.0050.0159.04
5.1.00.0040.0169.04
5.0.50.0030.0158.28
5.0.40.0020.0138.21
5.0.30.0030.0188.12
5.0.20.0030.0128.10
5.0.10.0060.0148.09
5.0.00.0020.0218.09
4.4.90.0010.0107.36
4.4.80.0030.0107.35
4.4.70.0050.0097.35
4.4.60.0030.0097.35
4.4.50.0040.0107.36
4.4.40.0030.0167.33
4.4.30.0040.0097.35
4.4.20.0020.0117.39
4.4.10.0030.0117.40
4.4.00.0010.0157.35
4.3.110.0030.0097.31
4.3.100.0030.0127.30
4.3.90.0020.0127.29
4.3.80.0030.0197.26
4.3.70.0040.0117.29
4.3.60.0030.0077.29
4.3.50.0050.0067.29
4.3.40.0020.0147.24
4.3.30.0010.0106.62
4.3.20.0030.0086.61
4.3.10.0020.0136.58
4.3.00.0020.01026.86

preferences:
46.33 ms | 401 KiB | 5 Q