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', 'Stri"ng3'); $array_from_file = array_map(function($x){return $x = 'z"'.$x.'"';}, $array_from_file); print_r($array_from_file);

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.40.0110.00718.85
8.3.30.0110.00419.18
8.3.20.0080.00020.29
8.3.10.0050.00323.48
8.3.00.0090.00019.38
8.2.170.0070.00722.96
8.2.160.0120.00320.22
8.2.150.0110.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00420.96
8.2.110.0090.00019.30
8.2.100.0120.00017.91
8.2.90.0060.00319.07
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0080.00017.79
8.2.50.0110.00018.07
8.2.40.0040.00418.20
8.2.30.0030.00518.06
8.2.20.0000.00717.57
8.2.10.0050.00218.18
8.2.00.0000.00717.62
8.1.270.0080.00023.78
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00320.92
8.1.230.0120.00017.42
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0060.00317.11
8.1.190.0000.00817.35
8.1.180.0000.00818.88
8.1.170.0040.00418.30
8.1.160.0000.00721.89
8.1.150.0030.00318.84
8.1.140.0040.00417.44
8.1.130.0000.00717.86
8.1.120.0040.00417.46
8.1.110.0000.00817.51
8.1.100.0040.00417.47
8.1.90.0030.00317.46
8.1.80.0030.00517.46
8.1.70.0000.00717.29
8.1.60.0050.00317.46
8.1.50.0000.00717.53
8.1.40.0070.00017.41
8.1.30.0030.00617.55
8.1.20.0000.00817.66
8.1.10.0000.00717.57
8.1.00.0040.00417.33
8.0.300.0050.00518.77
8.0.290.0040.00416.75
8.0.280.0040.00418.55
8.0.270.0030.00317.29
8.0.260.0030.00517.24
8.0.250.0000.00616.86
8.0.240.0000.00816.84
8.0.230.0070.00016.94
8.0.220.0070.00016.91
8.0.210.0020.00516.79
8.0.200.0030.00316.93
8.0.190.0040.00416.93
8.0.180.0070.00016.81
8.0.170.0040.00416.86
8.0.160.0040.00416.84
8.0.150.0030.00516.76
8.0.140.0000.00716.83
8.0.130.0060.00013.24
8.0.120.0000.00716.76
8.0.110.0050.00216.81
8.0.100.0000.00716.90
8.0.90.0000.00716.78
8.0.80.0070.01416.94
8.0.70.0000.00716.90
8.0.60.0040.00416.83
8.0.50.0040.00416.92
8.0.30.0100.00916.87
8.0.20.0110.00917.40
8.0.10.0020.00517.04
8.0.00.0070.01016.70
7.4.330.0020.00215.08
7.4.320.0000.00616.45
7.4.300.0000.00616.59
7.4.290.0040.00416.44
7.4.280.0080.00016.59
7.4.270.0030.00616.58
7.4.260.0000.00716.43
7.4.250.0040.00416.47
7.4.240.0010.00716.59
7.4.230.0030.00316.49
7.4.220.0130.00616.52
7.4.210.0130.00016.70
7.4.200.0000.00716.35
7.4.160.0110.00816.35
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0050.01216.54
7.4.120.0150.00616.55
7.4.110.0070.01016.53
7.4.100.0100.00716.32
7.4.90.0070.01016.55
7.4.80.0080.00819.39
7.4.70.0100.00616.51
7.4.60.0110.01116.44
7.4.50.0040.00016.42
7.4.40.0060.01016.57
7.4.30.0090.00616.63
7.4.10.0040.01516.43
7.4.00.0090.00515.74
7.3.330.0070.00013.16
7.3.320.0030.00313.13
7.3.310.0000.00716.19
7.3.300.0000.00716.25
7.3.290.0100.01016.23
7.3.280.0070.00716.24
7.3.270.0060.01417.40
7.3.260.0100.01216.43
7.3.250.0090.01116.46
7.3.240.0060.01216.34
7.3.230.0100.01016.48
7.3.210.0100.00716.25
7.3.200.0150.00419.39
7.3.190.0060.01016.56
7.3.180.0000.01616.27
7.3.170.0130.00316.32
7.3.160.0130.00316.49
7.3.130.0070.01116.19
7.3.120.0030.01516.52
7.3.110.0090.00616.20
7.3.100.0120.00616.41
7.3.90.0120.00616.39
7.3.80.0030.00716.22
7.3.70.0030.01316.36
7.3.60.0080.00416.35
7.3.50.0040.01116.27
7.3.40.0030.01016.23
7.3.30.0070.01016.45
7.3.20.0120.00618.10
7.3.10.0120.00018.13
7.3.00.0030.00718.12
7.2.330.0150.00316.25
7.2.320.0080.01216.63
7.2.310.0120.00416.74
7.2.300.0150.00816.65
7.2.290.0060.01016.57
7.2.260.0140.00716.59
7.2.250.0030.01716.63
7.2.240.0130.00716.44
7.2.230.0090.00816.66
7.2.220.0030.01016.55
7.2.210.0040.01116.36
7.2.200.0000.01116.55
7.2.190.0000.01316.51
7.2.180.0060.00916.63
7.2.170.0070.00716.55
7.2.160.0030.01416.64
7.2.150.0030.01518.28
7.2.140.0070.00318.25
7.2.130.0110.00418.43
7.2.120.0000.01118.38
7.2.110.0090.00618.26
7.2.100.0000.01018.39
7.2.90.0070.00718.22
7.2.80.0150.00318.50
7.2.70.0000.01018.30
7.2.60.0080.00617.60
7.2.50.0030.01218.18
7.2.40.0000.01318.33
7.2.30.0070.01118.30
7.2.20.0030.00718.34
7.2.10.0070.00718.44
7.2.00.0020.01118.77
7.1.330.0110.00417.39
7.1.320.0040.01117.35
7.1.310.0030.01217.37
7.1.300.0040.01117.45
7.1.290.0100.00017.41
7.1.280.0040.00817.18
7.1.270.0030.00917.33
7.1.260.0100.00317.22
7.1.250.0070.01017.34
7.1.240.0040.01217.21
7.1.230.0100.00317.06
7.1.220.0060.00617.31
7.1.210.0030.01417.18
7.1.200.0070.00616.46
7.1.190.0000.01117.19
7.1.180.0040.01117.45
7.1.170.0100.00317.30
7.1.160.0000.01617.14
7.1.150.0040.01117.45
7.1.140.0070.00417.39
7.1.130.0030.01417.38
7.1.120.0100.00317.32
7.1.110.0100.00617.35
7.1.100.0060.00817.68
7.1.90.0090.00917.18
7.1.80.0050.00517.35
7.1.70.0080.00617.15
7.1.60.0080.00918.35
7.1.50.0050.01417.07
7.1.40.0080.01117.23
7.1.30.0090.00617.12
7.1.20.0040.00817.20
7.1.10.0100.00717.40
7.1.00.0080.04019.85
7.0.330.0070.00717.14
7.0.320.0030.00616.98
7.0.310.0130.00317.18
7.0.300.0090.00617.09
7.0.290.0000.00916.98
7.0.280.0000.01117.05
7.0.270.0040.00817.11
7.0.260.0060.00617.07
7.0.250.0070.00716.92
7.0.240.0070.00717.14
7.0.230.0060.00317.19
7.0.220.0040.01116.82
7.0.210.0030.01017.09
7.0.200.0050.00516.97
7.0.190.0070.00717.17
7.0.180.0040.00817.03
7.0.170.0070.00717.14
7.0.160.0030.01317.02
7.0.150.0100.00017.25
7.0.140.0020.04519.49
7.0.130.0040.00816.93
7.0.120.0070.01017.13
7.0.110.0030.01016.87
7.0.100.0050.00516.93
7.0.90.0070.00717.00
7.0.80.0090.00617.10
7.0.70.0040.01117.10
7.0.60.0110.03818.45
7.0.50.0050.04817.46
7.0.40.0000.02917.51
7.0.30.0350.03117.66
7.0.20.0180.03317.46
7.0.10.0100.04317.52
7.0.00.0040.02417.54
5.6.400.0060.00915.52
5.6.390.0080.00815.64
5.6.380.0000.01415.54
5.6.370.0070.00416.04
5.6.360.0030.01015.72
5.6.350.0030.01015.74
5.6.340.0060.01015.76
5.6.330.0080.00815.95
5.6.320.0030.01016.18
5.6.310.0030.01015.93
5.6.300.0060.00615.63
5.6.290.0070.01015.82
5.6.280.0120.03618.48
5.6.270.0080.00816.21
5.6.260.0040.01215.81
5.6.250.0110.00415.81
5.6.240.0070.00415.63
5.6.230.0040.01115.71
5.6.220.0070.00715.72
5.6.210.0060.02218.28
5.6.200.0080.04216.94
5.6.190.0090.03918.20
5.6.180.0230.03818.06
5.6.170.0160.04818.05
5.6.160.0150.03318.19
5.6.150.0040.02416.94
5.6.140.0100.02517.00
5.6.130.0150.02716.99
5.6.120.0020.02918.38
5.6.110.0070.04818.48
5.6.100.0050.03018.34
5.6.90.0080.02818.45
5.6.80.0070.03318.09
5.6.70.0150.04818.03
5.6.60.0070.00315.71
5.6.50.0030.00615.78
5.6.40.0040.01215.80
5.6.30.0070.00315.76
5.6.20.0040.01115.83
5.6.10.0030.01015.65
5.6.00.0060.00915.95
5.5.380.0030.00915.73
5.5.370.0040.01115.75
5.5.360.0060.00615.94
5.5.350.0100.04318.14
5.5.340.0020.03016.99
5.5.330.0120.04417.89
5.5.320.0130.02617.97
5.5.310.0130.02518.10
5.5.300.0100.04116.77
5.5.290.0070.04516.84
5.5.280.0080.03118.41
5.5.270.0030.02718.30
5.5.260.0050.02418.39
5.5.250.0060.03018.18
5.5.240.0050.02917.93
5.5.230.0040.00715.77
5.5.220.0070.00415.71
5.5.210.0120.00315.74
5.5.200.0080.00415.82
5.5.190.0040.01115.64
5.5.180.0070.00715.79
5.5.170.0030.01315.53
5.5.160.0110.00315.76
5.5.150.0070.00715.74
5.5.140.0060.00315.54
5.5.130.0000.01015.77
5.5.120.0060.00915.72
5.5.110.0090.00615.59
5.5.100.0040.00815.74
5.5.90.0080.00415.49
5.5.80.0000.01415.86
5.5.70.0040.01115.75
5.5.60.0030.00715.68
5.5.50.0040.00715.77
5.5.40.0030.01015.62
5.5.30.0060.00915.50
5.5.20.0030.01015.75
5.5.10.0100.00315.79
5.5.00.0030.01015.58
5.4.450.0180.01816.15
5.4.440.0110.02015.93
5.4.430.0140.02716.06
5.4.420.0170.02316.08
5.4.410.0170.02316.03
5.4.400.0230.01715.87
5.4.390.0320.02816.02
5.4.380.0150.03515.64
5.4.370.0160.03615.58
5.4.360.0140.03115.72
5.4.350.0220.02715.81
5.4.340.0230.03515.63
5.4.330.0090.00312.57
5.4.320.0080.02012.61
5.4.310.0040.02212.49
5.4.300.0030.02712.66
5.4.290.0060.02212.58
5.4.280.0050.02112.51
5.4.270.0060.02312.59
5.4.260.0050.02112.54
5.4.250.0080.01812.40
5.4.240.0040.02112.50
5.4.230.0020.02312.54
5.4.220.0020.02312.49
5.4.210.0050.01912.64
5.4.200.0090.01812.43
5.4.190.0100.01812.54
5.4.180.0040.02112.52
5.4.170.0060.02112.52
5.4.160.0070.01812.46
5.4.150.0040.02212.56
5.4.140.0040.02512.39
5.4.130.0060.02012.21
5.4.120.0070.01712.36
5.4.110.0040.02212.35
5.4.100.0020.02712.45
5.4.90.0100.02112.24
5.4.80.0060.01812.34
5.4.70.0040.02112.27
5.4.60.0060.01912.28
5.4.50.0070.02312.36
5.4.40.0040.02612.39
5.4.30.0060.02012.27
5.4.20.0050.02212.27
5.4.10.0060.02112.31
5.4.00.0080.01712.03
5.3.290.0070.03812.80
5.3.280.0040.04712.71
5.3.270.0070.03812.73
5.3.260.0030.04212.72
5.3.250.0060.03712.71
5.3.240.0070.03612.72
5.3.230.0050.03712.71
5.3.220.0060.03712.68
5.3.210.0060.03812.68
5.3.200.0060.03512.68
5.3.190.0020.04012.68
5.3.180.0060.03512.67
5.3.170.0050.03612.67
5.3.160.0070.03812.67
5.3.150.0070.03612.68
5.3.140.0050.04412.66
5.3.130.0020.04112.66
5.3.120.0040.04112.66
5.3.110.0080.03712.66
5.3.100.0050.03812.11
5.3.90.0070.03512.09
5.3.80.0080.03712.09
5.3.70.0070.03912.09
5.3.60.0070.04212.08
5.3.50.0080.03412.03
5.3.40.0080.03412.02
5.3.30.0070.03311.98
5.3.20.0070.03511.76
5.3.10.0070.03311.73
5.3.00.0070.03511.71
5.2.170.0000.0379.18
5.2.160.0090.0259.18
5.2.150.0060.0289.18
5.2.140.0050.0309.17
5.2.130.0030.0319.14
5.2.120.0040.0329.14
5.2.110.0050.0309.15
5.2.100.0040.0299.14
5.2.90.0050.0289.14
5.2.80.0040.0309.14
5.2.70.0040.0309.14
5.2.60.0050.0309.09
5.2.50.0080.0279.06
5.2.40.0030.0369.04
5.2.30.0080.0259.01
5.2.20.0040.0299.00
5.2.10.0060.0268.93
5.2.00.0060.0268.79
5.1.60.0050.0228.07
5.1.50.0040.0248.06
5.1.40.0010.0278.05
5.1.30.0050.0258.40
5.1.20.0020.0288.42
5.1.10.0040.0268.14
5.1.00.0010.0288.14
5.0.50.0020.0226.63
5.0.40.0020.0216.48
5.0.30.0040.0326.29
5.0.20.0040.0276.27
5.0.10.0040.0276.24
5.0.00.0030.0356.23
4.4.90.0010.0174.78
4.4.80.0020.0154.76
4.4.70.0040.0144.75
4.4.60.0010.0234.75
4.4.50.0010.0254.77
4.4.40.0010.0274.71
4.4.30.0020.0164.76
4.4.20.0030.0154.85
4.4.10.0030.0154.84
4.4.00.0020.0254.76
4.3.110.0040.0144.67
4.3.100.0030.0144.66
4.3.90.0010.0164.63
4.3.80.0060.0204.58
4.3.70.0010.0164.63
4.3.60.0030.0144.63
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0020.0213.29
4.3.20.0020.0163.27
4.3.10.0010.0173.22
4.3.00.0000.02015.71

preferences:
52.88 ms | 400 KiB | 5 Q