3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ' ;Head admins "Username" "Password" "abcdefghijk" "ab" "Username2" "Password2" "abcdehl" "ab" ;Admins "Admin" "Password" "abcd" "ab" '; $arr = explode("\n;", $str); foreach($arr as $section){ $lines = explode("\n", $section); array_shift($lines); foreach($lines as $line) $l = explode("\n", $line); echo $l[0]; } ?>

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.70.0150.00616.88
8.3.60.0100.01016.75
8.3.50.0080.00921.93
8.3.40.0070.00718.79
8.3.30.0090.00618.83
8.3.20.0080.00020.16
8.3.10.0040.00423.54
8.3.00.0040.00420.77
8.2.180.0140.00716.50
8.2.170.0060.01222.96
8.2.160.0110.00420.46
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00926.16
8.2.120.0040.00420.79
8.2.110.0040.00422.21
8.2.100.0080.00417.91
8.2.90.0000.00819.25
8.2.80.0030.00517.97
8.2.70.0050.00517.63
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0030.00618.16
8.2.30.0040.00418.36
8.2.20.0040.00417.80
8.2.10.0040.00417.96
8.2.00.0080.00017.68
8.1.280.0130.00325.92
8.1.270.0090.00023.97
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0070.00324.01
8.1.230.0000.01119.11
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00817.23
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0070.00022.07
8.1.150.0070.00018.64
8.1.140.0060.00317.49
8.1.130.0000.00717.46
8.1.120.0000.00717.45
8.1.110.0080.00017.47
8.1.100.0050.00317.48
8.1.90.0040.00417.34
8.1.80.0000.00817.36
8.1.70.0000.00717.45
8.1.60.0030.00517.59
8.1.50.0000.00817.41
8.1.40.0030.00617.49
8.1.30.0030.00517.70
8.1.20.0040.00417.57
8.1.10.0040.00417.57
8.1.00.0030.00517.37
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0040.00418.31
8.0.270.0050.00317.26
8.0.260.0030.00316.82
8.0.250.0040.00317.03
8.0.240.0000.00717.02
8.0.230.0060.00017.02
8.0.220.0000.00616.95
8.0.210.0060.00016.91
8.0.200.0000.00816.91
8.0.190.0030.00316.98
8.0.180.0040.00417.01
8.0.170.0030.00516.87
8.0.160.0000.00716.90
8.0.150.0000.00716.85
8.0.140.0000.00716.93
8.0.130.0050.00013.39
8.0.120.0040.00416.89
8.0.110.0000.00716.86
8.0.100.0050.00316.74
8.0.90.0040.00416.94
8.0.80.0070.01117.01
8.0.70.0040.00416.94
8.0.60.0000.00716.77
8.0.50.0050.00316.82
8.0.30.0090.01016.91
8.0.20.0130.00617.40
8.0.10.0040.00417.04
8.0.00.0080.01016.76
7.4.330.0000.00515.00
7.4.320.0030.00316.60
7.4.300.0040.00416.50
7.4.290.0000.00616.53
7.4.280.0070.00016.60
7.4.270.0000.00716.55
7.4.260.0040.00416.48
7.4.250.0050.00316.52
7.4.240.0020.00516.53
7.4.230.0000.00816.46
7.4.220.0140.00416.58
7.4.210.0100.00316.57
7.4.200.0030.00316.35
7.4.190.0030.00316.69
7.4.160.0120.00416.36
7.4.150.0120.00617.40
7.4.140.0080.01217.86
7.4.130.0110.00816.56
7.4.120.0150.00616.63
7.4.110.0060.01016.59
7.4.100.0070.01016.62
7.4.90.0130.00316.51
7.4.80.0090.01319.39
7.4.70.0120.00916.55
7.4.60.0130.00316.50
7.4.50.0040.00416.64
7.4.40.0080.00816.30
7.4.30.0060.00916.66
7.4.00.0120.00615.16
7.3.330.0000.00613.14
7.3.320.0000.00513.29
7.3.310.0000.00716.53
7.3.300.0000.00616.36
7.3.290.0110.00816.31
7.3.280.0090.01016.34
7.3.270.0060.01917.40
7.3.260.0070.01016.43
7.3.250.0140.00516.45
7.3.240.0100.00616.42
7.3.230.0140.00316.39
7.3.210.0110.00716.50
7.3.200.0030.01919.39
7.3.190.0030.00516.45
7.3.180.0100.00616.33
7.3.170.0090.00616.37
7.3.160.0070.01016.45
7.3.120.0090.00714.87
7.3.110.0090.00914.86
7.3.100.0130.00015.07
7.3.90.0090.00314.72
7.3.80.0000.01614.67
7.3.70.0000.01214.61
7.3.60.0080.00314.94
7.3.50.0110.00414.73
7.3.40.0030.01414.89
7.3.30.0000.01114.91
7.3.20.0040.00816.89
7.3.10.0000.01116.87
7.3.00.0100.00016.80
7.2.330.0180.00016.76
7.2.320.0100.00716.62
7.2.310.0100.01016.33
7.2.300.0090.00616.51
7.2.290.0100.00716.59
7.2.250.0120.00715.18
7.2.240.0100.01015.17
7.2.230.0030.01015.27
7.2.220.0090.00614.85
7.2.210.0140.00415.02
7.2.200.0070.00715.25
7.2.190.0030.00915.12
7.2.180.0070.00715.05
7.2.170.0030.01314.88
7.2.160.0060.00914.96
7.2.150.0030.01016.89
7.2.140.0000.00916.95
7.2.130.0030.01216.88
7.2.120.0110.00316.83
7.2.110.0100.00317.09
7.2.100.0070.01016.78
7.2.90.0090.00017.01
7.2.80.0070.00716.88
7.2.70.0030.01016.86
7.2.60.0060.00816.90
7.2.50.0030.00816.96
7.2.40.0040.01116.92
7.2.30.0100.00316.95
7.2.20.0070.00317.13
7.2.10.0100.00016.98
7.2.00.0040.01218.14
7.1.330.0130.00615.60
7.1.320.0060.00915.83
7.1.310.0030.01315.93
7.1.300.0100.00615.68
7.1.290.0030.01015.64
7.1.280.0070.01015.78
7.1.270.0070.00715.76
7.1.260.0100.00315.56
7.1.250.0120.00315.98
7.1.240.0070.00715.83
7.1.230.0000.01515.86
7.1.220.0000.01015.83
7.1.210.0000.01415.86
7.1.200.0030.00815.73
7.1.190.0030.01015.80
7.1.180.0070.00315.85
7.1.170.0060.00315.91
7.1.160.0060.00615.86
7.1.150.0030.01215.61
7.1.140.0000.01315.51
7.1.130.0080.00015.81
7.1.120.0060.00615.73
7.1.110.0060.00615.64
7.1.100.0020.01116.77
7.1.90.0030.00615.88
7.1.80.0030.01015.97
7.1.70.0060.00516.55
7.1.60.0050.01217.75
7.1.50.0080.01016.39
7.1.40.0070.00715.88
7.1.30.0040.01215.77
7.1.20.0070.01015.82
7.1.10.0090.00315.89
7.1.00.0030.04319.00
7.0.330.0000.01215.43
7.0.320.0060.00915.51
7.0.310.0000.01115.59
7.0.300.0090.00315.60
7.0.290.0030.01015.40
7.0.280.0060.00615.61
7.0.270.0070.00715.60
7.0.260.0030.00615.49
7.0.250.0040.00815.34
7.0.240.0020.00515.45
7.0.230.0070.01015.57
7.0.220.0000.01415.54
7.0.210.0000.00815.18
7.0.200.0000.01316.12
7.0.190.0030.00715.68
7.0.180.0120.00615.54
7.0.170.0060.01215.53
7.0.160.0090.00315.11
7.0.150.0100.00315.54
7.0.140.0050.03918.63
7.0.130.0030.00915.21
7.0.120.0060.00615.09
7.0.110.0100.00315.53
7.0.100.0130.00315.47
7.0.90.0060.00315.61
7.0.80.0060.00615.37
7.0.70.0030.01315.21
7.0.60.0050.04418.54
7.0.50.0020.04418.81
7.0.40.0030.04516.67
7.0.30.0120.03316.85
7.0.20.0070.03716.71
7.0.10.0070.04016.78
7.0.00.0040.02416.75
5.6.400.0040.01114.09
5.6.390.0030.00914.07
5.6.380.0060.00614.23
5.6.370.0050.00514.26
5.6.360.0070.00714.51
5.6.350.0030.01014.23
5.6.340.0040.01414.20
5.6.330.0080.00014.19
5.6.320.0030.01014.22
5.6.310.0050.00514.58
5.6.300.0000.01514.18
5.6.290.0060.00614.27
5.6.280.0020.04317.76
5.6.270.0030.01014.33
5.6.260.0030.01114.39
5.6.250.0090.00614.26
5.6.240.0040.00714.34
5.6.230.0060.00814.41
5.6.220.0090.00914.02
5.6.210.0080.04217.35
5.6.200.0030.05017.76
5.6.190.0050.04517.53
5.6.180.0030.03517.58
5.6.170.0060.04817.67
5.6.160.0040.04717.80
5.6.150.0020.04917.61
5.6.140.0050.04217.72
5.6.130.0030.04417.69
5.6.120.0070.03217.71
5.6.110.0050.04517.84
5.6.100.0050.04317.58
5.6.90.0030.04617.67
5.6.80.0080.04117.43
5.6.70.0050.04317.25
5.6.60.0020.04417.44
5.6.50.0100.04017.17
5.6.40.0090.03017.31
5.6.30.0050.04517.26
5.6.20.0070.04417.25
5.6.10.0070.04217.32
5.6.00.0030.04517.24
5.5.380.0040.00714.13
5.5.370.0030.01014.20
5.5.360.0000.01613.90
5.5.350.0030.04517.38
5.5.340.0080.04317.53
5.5.330.0020.04717.68
5.5.320.0080.03817.41
5.5.310.0050.04317.60
5.5.300.0070.04117.65
5.5.290.0050.03717.67
5.5.280.0050.04717.63
5.5.270.0050.03917.36
5.5.260.0030.04417.52
5.5.250.0110.03717.39
5.5.240.0030.03817.19
5.5.230.0020.05017.15
5.5.220.0080.03517.15
5.5.210.0050.03317.19
5.5.200.0060.03617.24
5.5.190.0080.03817.27
5.5.180.0040.04417.23
5.5.170.0100.00714.23
5.5.160.0020.04417.15
5.5.150.0030.04117.25
5.5.140.0020.04917.11
5.5.130.0020.04217.21
5.5.120.0050.04017.11
5.5.110.0050.04116.95
5.5.100.0050.04317.21
5.5.90.0060.03317.17
5.5.80.0050.04617.09
5.5.70.0020.04217.26
5.5.60.0110.03317.17
5.5.50.0070.03617.01
5.5.40.0080.03817.09
5.5.30.0050.04117.11
5.5.20.0030.02517.05
5.5.10.0150.03716.91
5.5.00.0000.04717.21
5.4.450.0030.04415.27
5.4.440.0050.03215.30
5.4.430.0050.02315.27
5.4.420.0030.04415.27
5.4.410.0030.03815.13
5.4.400.0060.03815.14
5.4.390.0060.03815.03
5.4.380.0070.03815.14
5.4.370.0040.02515.07
5.4.360.0040.04015.07
5.4.350.0020.03815.04
5.4.340.0030.03115.11
5.4.330.0000.00611.21
5.4.320.0090.03515.05
5.4.310.0050.04015.10
5.4.300.0030.04215.03
5.4.290.0030.04215.10
5.4.280.0080.03815.15
5.4.270.0030.04315.12
5.4.260.0090.03815.11
5.4.250.0060.03015.13
5.4.240.0020.03615.03
5.4.230.0000.04215.08
5.4.220.0060.03815.02
5.4.210.0050.02715.13
5.4.200.0060.03715.03
5.4.190.0050.03815.21
5.4.180.0020.02915.06
5.4.170.0080.03915.07
5.4.160.0030.04215.07
5.4.150.0030.03815.09
5.4.140.0020.03813.77
5.4.130.0070.03813.73
5.4.120.0060.03813.77
5.4.110.0030.03913.81
5.4.100.0030.02213.81
5.4.90.0070.03513.83
5.4.80.0040.04113.72
5.4.70.0070.03313.72
5.4.60.0040.03013.70
5.4.50.0030.02113.78
5.4.40.0030.02013.77
5.4.30.0030.02013.79
5.4.20.0050.02013.74
5.4.10.0020.01713.73
5.4.00.0020.02113.46
5.3.290.0080.03512.89
5.3.280.0040.03812.88
5.3.270.0070.04012.86
5.3.260.0020.04312.87
5.3.250.0020.02712.89
5.3.240.0070.03512.86
5.3.230.0020.04212.89
5.3.220.0020.03512.88
5.3.210.0050.04112.84
5.3.200.0020.02512.85
5.3.190.0040.03712.85
5.3.180.0020.03312.88
5.3.170.0030.03312.88
5.3.160.0020.02712.78
5.3.150.0030.02312.86
5.3.140.0030.02512.87
5.3.130.0040.02012.84
5.3.120.0000.02412.84
5.3.110.0020.02412.85
5.3.100.0000.02312.60
5.3.90.0040.01612.58
5.3.80.0000.02312.60
5.3.70.0020.02112.60
5.3.60.0050.02012.53
5.3.50.0030.02012.56
5.3.40.0020.01812.54
5.3.30.0040.02012.54
5.3.20.0010.01812.37
5.3.10.0020.02212.40
5.3.00.0000.02412.38
5.2.170.0000.03011.05
5.2.160.0000.02710.92
5.2.150.0000.03010.89
5.2.140.0030.03311.13
5.2.130.0000.02311.09
5.2.120.0000.02310.88
5.2.110.0030.02311.01
5.2.100.0000.03011.05
5.2.90.0070.01711.11
5.2.80.0000.02311.09
5.2.70.0000.02311.07
5.2.60.0000.02311.09
5.2.50.0070.02711.03
5.2.40.0000.02310.98
5.2.30.0000.02310.94
5.2.20.0030.02010.93
5.2.10.0000.02310.72
5.2.00.0000.02310.73
5.1.60.0000.0209.98
5.1.50.0030.0209.87
5.1.40.0000.0209.82
5.1.30.0030.01710.33
5.1.20.0000.02010.36
5.1.10.0000.0209.94
5.1.00.0000.02710.08
5.0.50.0030.0139.82
5.0.40.0030.0139.82
5.0.30.0030.0479.82
5.0.20.0070.0509.82
5.0.10.0000.0409.82
5.0.00.0030.0539.82
4.4.90.0000.0139.82
4.4.80.0030.0109.82
4.4.70.0030.0109.82
4.4.60.0000.0139.82
4.4.50.0030.0109.82
4.4.40.0000.0209.82
4.4.30.0030.0109.82
4.4.20.0030.0109.82
4.4.10.0030.0109.82
4.4.00.0000.0209.82
4.3.110.0000.0179.82
4.3.100.0030.0139.82
4.3.90.0000.0139.82
4.3.80.0000.0339.82
4.3.70.0030.0239.82
4.3.60.0030.0339.82
4.3.50.0000.0379.82
4.3.40.0000.0339.82
4.3.30.0000.0379.82
4.3.20.0000.0379.82
4.3.10.0000.0379.82
4.3.00.0000.0379.82

preferences:
45.88 ms | 401 KiB | 5 Q