3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ' ;Head admins ;haha ;haha ;hahaha //testasd "Username" "Password" "abcdefghijk" "ab" "Username2" "Password2" "abcdehl" "ab" //test ;Admins "Admin" "Password" "abcd" "ab" '; $arr = explode("\n;", $str); foreach($arr as $section){ $lines = explode("\n", $section); array_shift($lines); foreach($lines as $line) print $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.0120.00316.63
8.3.50.0160.00317.41
8.3.40.0180.00018.60
8.3.30.0060.01018.73
8.3.20.0080.00018.52
8.3.10.0030.00618.64
8.3.00.0000.00819.13
8.2.180.0090.00625.92
8.2.170.0070.01418.79
8.2.160.0030.01022.96
8.2.150.0060.00325.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00420.66
8.2.110.0090.00022.20
8.2.100.0090.00318.86
8.2.90.0000.00817.75
8.2.80.0030.00618.04
8.2.70.0080.00018.05
8.2.60.0030.00618.14
8.2.50.0040.00419.34
8.2.40.0040.00419.88
8.2.30.0040.00417.68
8.2.20.0090.00317.49
8.2.10.0050.00317.62
8.2.00.0040.00417.80
8.1.280.0060.01525.92
8.1.270.0000.00723.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.45
8.1.230.0080.00419.01
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00817.36
8.1.190.0000.00817.25
8.1.180.0050.00318.10
8.1.170.0050.00318.65
8.1.160.0000.00719.03
8.1.150.0020.00518.64
8.1.140.0000.00717.33
8.1.130.0030.00317.88
8.1.120.0040.00417.46
8.1.110.0020.00517.50
8.1.100.0070.00017.30
8.1.90.0000.00817.46
8.1.80.0080.00017.38
8.1.70.0000.00717.36
8.1.60.0080.00417.47
8.1.50.0000.00717.51
8.1.40.0040.00417.41
8.1.30.0060.00317.63
8.1.20.0000.00917.67
8.1.10.0050.00317.58
8.1.00.0050.00317.34
8.0.300.0000.00819.66
8.0.290.0070.00016.75
8.0.280.0080.00018.52
8.0.270.0030.00317.19
8.0.260.0000.00716.86
8.0.250.0050.00316.97
8.0.240.0000.00716.85
8.0.230.0030.00316.82
8.0.220.0000.00716.83
8.0.210.0000.00716.92
8.0.200.0000.00616.82
8.0.190.0000.00817.00
8.0.180.0070.00016.88
8.0.170.0060.00316.80
8.0.160.0040.00416.95
8.0.150.0030.00616.89
8.0.140.0040.00416.74
8.0.130.0000.00613.29
8.0.120.0050.00616.82
8.0.110.0040.00416.78
8.0.100.0030.00516.74
8.0.90.0040.00416.73
8.0.80.0110.00716.87
8.0.70.0040.00416.84
8.0.60.0040.00416.94
8.0.50.0000.00717.00
8.0.30.0110.00417.21
8.0.20.0100.01317.33
8.0.10.0070.00016.82
8.0.00.0100.00816.66
7.4.330.0040.00013.02
7.4.320.0000.00616.43
7.4.300.0000.00616.51
7.4.290.0040.00416.60
7.4.280.0020.00516.62
7.4.270.0000.00716.47
7.4.260.0060.00013.26
7.4.250.0020.00516.50
7.4.240.0000.00716.50
7.4.230.0000.00716.68
7.4.220.0000.01516.47
7.4.210.0060.00916.59
7.4.200.0000.00716.38
7.4.190.0030.00316.55
7.4.160.0130.00616.37
7.4.150.0080.00916.58
7.4.140.0100.00716.47
7.4.130.0100.00616.50
7.4.120.0030.01316.41
7.4.110.0140.00316.27
7.4.100.0090.01216.60
7.4.90.0160.00316.49
7.4.80.0070.01019.39
7.4.70.0090.00616.43
7.4.60.0040.01416.54
7.4.50.0070.00016.29
7.4.40.0040.01116.62
7.4.30.0130.00316.54
7.4.00.0060.00914.70
7.3.330.0060.00013.10
7.3.320.0000.00613.00
7.3.310.0000.00716.46
7.3.300.0030.00316.10
7.3.290.0080.00816.27
7.3.280.0060.01216.30
7.3.270.0140.00316.44
7.3.260.0100.01316.50
7.3.250.0070.01416.28
7.3.240.0080.00816.32
7.3.230.0110.00816.28
7.3.210.0060.01216.52
7.3.200.0100.00716.54
7.3.190.0110.01116.49
7.3.180.0080.00816.12
7.3.170.0120.00416.29
7.3.160.0030.01316.35
7.3.120.0000.01315.04
7.2.330.0110.00716.39
7.2.320.0110.00616.79
7.2.310.0100.01016.68
7.2.300.0100.01016.71
7.2.290.0090.00816.75
7.2.00.0080.00319.34
7.1.100.0000.00818.17
7.1.70.0030.00317.03
7.1.60.0100.01319.30
7.1.50.0040.00716.83
7.1.00.0070.06722.54
7.0.200.0140.00316.76
7.0.140.0000.07722.15
7.0.120.0070.07322.19
7.0.60.0100.08019.82
7.0.50.0030.05017.80
7.0.40.4230.04020.09
7.0.30.3170.04020.09
7.0.20.0030.06320.16
7.0.10.1070.04720.09
7.0.00.3570.03319.99
5.6.280.0000.07320.88
5.6.210.0100.05720.46
5.6.200.0030.04718.23
5.6.190.3800.03720.46
5.6.180.3370.04020.44
5.6.170.0800.05320.55
5.6.160.3170.04320.49
5.6.150.3600.04020.27
5.6.140.3770.04320.29
5.6.130.4100.03720.29
5.6.120.1230.06020.25
5.6.110.0130.06320.24
5.6.100.3800.03720.36
5.6.90.4300.04320.33
5.6.80.3900.03719.53
5.6.70.3600.04019.58
5.6.60.3970.04019.64
5.6.50.2970.03719.71
5.6.40.3630.04319.71
5.6.30.3230.04019.59
5.6.20.3170.04319.73
5.6.10.3200.03719.71
5.6.00.2970.03719.70
5.5.350.0170.03720.38
5.5.340.0100.07718.02
5.5.330.1500.07020.21
5.5.320.3300.04320.26
5.5.310.0100.06320.40
5.5.300.3270.04320.07
5.5.290.3470.03720.01
5.5.280.0100.09019.94
5.5.270.0070.04320.13
5.5.260.3900.03319.93
5.5.250.4300.03319.86
5.5.240.4230.04719.43
5.5.230.4000.04019.32
5.5.220.4170.04719.38
5.5.210.3400.04019.39
5.5.200.3230.03319.45
5.5.190.2970.04019.44
5.5.180.3270.03719.46
5.5.160.2700.04019.50
5.5.150.3700.04719.36
5.5.140.4170.04019.44
5.5.130.3330.04319.42
5.5.120.3530.04019.61
5.5.110.3370.03719.41
5.5.100.3570.03719.32
5.5.90.3770.04319.29
5.5.80.4000.04319.28
5.5.70.3900.04319.50
5.5.60.3430.04019.30
5.5.50.4430.04019.54
5.5.40.3830.04019.43
5.5.30.3900.04019.44
5.5.20.4270.03719.30
5.5.10.3230.04019.23
5.5.00.4030.04019.45
5.4.450.3700.04319.35
5.4.440.0070.08019.53
5.4.430.1370.05319.26
5.4.420.3430.03319.45
5.4.410.4070.03719.02
5.4.400.4170.04019.04
5.4.390.3430.04018.96
5.4.380.4170.03719.14
5.4.370.3470.04319.09
5.4.360.2700.03719.21
5.4.350.3070.03019.00
5.4.340.3230.03718.82
5.4.320.3230.03719.02
5.4.310.3470.02319.04
5.4.300.3630.04318.84
5.4.290.3730.04018.99
5.4.280.3600.04018.82
5.4.270.3370.04318.98
5.4.260.3330.04019.09
5.4.250.3370.03718.98
5.4.240.4270.04319.20
5.4.230.3370.03719.07
5.4.220.3500.04019.02
5.4.210.5000.04719.07
5.4.200.4030.03719.01
5.4.190.4370.03019.20
5.4.180.3530.03018.96
5.4.170.3500.03319.03
5.4.160.4200.04019.00
5.4.150.4130.03018.87
5.4.140.4230.03316.34
5.4.130.4130.03716.34
5.4.120.3430.03716.44
5.4.110.3200.03716.29
5.4.100.3430.03316.39
5.4.90.3200.03716.28
5.4.80.3400.03016.51
5.4.70.4430.03716.31
5.4.60.3770.03316.27
5.4.50.4170.03016.15
5.4.40.3500.03316.43
5.4.30.3100.03716.34
5.4.20.3500.03316.28
5.4.10.3530.03716.32
5.4.00.3300.03015.95
5.3.290.3330.04314.50
5.3.280.3470.04014.45
5.3.270.3230.04014.52
5.3.260.3800.03314.57
5.3.250.4100.03314.55
5.3.240.4200.03714.57
5.3.230.3230.04314.42
5.3.220.3400.02714.51
5.3.210.3430.04014.54
5.3.200.3500.04014.53
5.3.190.3730.03714.52
5.3.180.3600.04014.52
5.3.170.4070.04014.48
5.3.160.4030.03714.52
5.3.150.3830.03314.52
5.3.140.3600.03014.52
5.3.130.3530.03314.48
5.3.120.3670.03314.52
5.3.110.3530.04714.52
5.3.100.3670.04013.82
5.3.90.0800.05013.99
5.3.80.0030.06714.10
5.3.70.0100.04313.80
5.3.60.1170.05313.78
5.3.50.3830.03713.87
5.3.40.3470.03313.88
5.3.30.3430.03013.89
5.3.20.3570.03313.66
5.3.10.3870.03313.57
5.3.00.4230.04013.41
5.2.170.3630.03010.97
5.2.160.2970.02310.97
5.2.150.2930.03011.09
5.2.140.3630.04011.29
5.2.130.3430.03311.07
5.2.120.3500.02310.88
5.2.110.3570.02311.10
5.2.100.3600.03011.09
5.2.90.3770.03010.91
5.2.80.3130.04311.05
5.2.70.2900.03011.13
5.2.60.3170.02311.04
5.2.50.3230.03311.02
5.2.40.2470.02310.96
5.2.30.1370.03010.94
5.2.20.0070.05710.95
5.2.10.0070.04710.84
5.2.00.0000.05010.75
5.1.60.2100.02710.01
5.1.50.2570.0209.95
5.1.40.2630.0279.93
5.1.30.2870.03010.18
5.1.20.2830.02310.37
5.1.10.2630.02710.07
5.1.00.2500.02710.00
5.0.50.1370.0238.59
5.0.40.0730.0208.39
5.0.30.1330.0308.14
5.0.20.1670.0208.18
5.0.10.1670.0238.21
5.0.00.1400.0278.21
4.4.90.1370.0205.89
4.4.80.1470.0175.73
4.4.70.0000.0275.75
4.4.60.0030.0235.81
4.4.50.0000.0375.81
4.4.40.1430.0235.75
4.4.30.1300.0175.86
4.4.20.1730.0175.87
4.4.10.1770.0175.85
4.4.00.1730.0235.85
4.3.110.1370.0135.70
4.3.100.1670.0175.75
4.3.90.1330.0175.69
4.3.80.1400.0275.69
4.3.70.1670.0175.79
4.3.60.1930.0205.70
4.3.50.1670.0135.73
4.3.40.1300.0275.73
4.3.30.0700.0174.56
4.3.20.0670.0174.54
4.3.10.0970.0234.54
4.3.00.1000.0204.54

preferences:
44.02 ms | 401 KiB | 5 Q