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); echo $arr[3]; 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.40.0000.01418.75
8.3.30.0070.01118.66
8.3.20.0000.00818.60
8.3.10.0050.00320.45
8.3.00.0060.00319.26
8.2.170.0170.00322.96
8.2.160.0100.00721.04
8.2.150.0080.00024.18
8.2.140.0130.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00417.75
8.2.110.0030.00722.16
8.2.100.0040.00817.91
8.2.90.0030.00619.30
8.2.80.0020.00519.21
8.2.70.0060.00317.75
8.2.60.0060.00318.03
8.2.50.0030.00618.07
8.2.40.0030.00618.09
8.2.30.0000.00718.13
8.2.20.0070.00017.73
8.2.10.0040.00417.74
8.2.00.0000.00717.77
8.1.270.0050.00224.66
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0030.00623.97
8.1.230.0070.00420.92
8.1.220.0080.00017.78
8.1.210.0080.00018.95
8.1.200.0040.00417.35
8.1.190.0030.00517.53
8.1.180.0030.00518.10
8.1.170.0060.00318.97
8.1.160.0030.00518.89
8.1.150.0050.00318.60
8.1.140.0040.00417.51
8.1.130.0030.00317.75
8.1.120.0030.00317.49
8.1.110.0060.00317.37
8.1.100.0040.00417.49
8.1.90.0050.00317.50
8.1.80.0030.00317.37
8.1.70.0030.00317.48
8.1.60.0100.00017.54
8.1.50.0000.00817.48
8.1.40.0030.00617.54
8.1.30.0040.00417.55
8.1.20.0040.00417.67
8.1.10.0040.00417.56
8.1.00.0040.00417.58
8.0.300.0000.00719.90
8.0.290.0040.00416.75
8.0.280.0030.00318.36
8.0.270.0000.00717.17
8.0.260.0030.00316.79
8.0.250.0000.00716.98
8.0.240.0070.00016.93
8.0.230.0030.00516.94
8.0.220.0040.00416.80
8.0.210.0070.00016.81
8.0.200.0040.00417.02
8.0.190.0040.00416.89
8.0.180.0040.00416.92
8.0.170.0080.00016.90
8.0.160.0070.00016.86
8.0.150.0040.00416.88
8.0.140.0030.00616.87
8.0.130.0050.00013.30
8.0.120.0040.00416.89
8.0.110.0000.00716.85
8.0.100.0030.00516.93
8.0.90.0000.00716.79
8.0.80.0030.01216.87
8.0.70.0040.00416.75
8.0.60.0080.00016.92
8.0.50.0040.00416.96
8.0.30.0080.01117.13
8.0.20.0140.00717.04
8.0.10.0080.00016.90
8.0.00.0120.00517.01
7.4.330.0040.00412.92
7.4.320.0030.00316.40
7.4.300.0040.00416.50
7.4.290.0030.00316.58
7.4.280.0000.00816.50
7.4.270.0030.00316.52
7.4.260.0030.00313.30
7.4.250.0000.00816.45
7.4.240.0040.00416.65
7.4.230.0000.00716.60
7.4.220.0070.01016.62
7.4.210.0070.00816.53
7.4.200.0040.00416.48
7.4.190.0000.00716.68
7.4.160.0060.01216.50
7.4.150.0100.01316.63
7.4.140.0080.01316.37
7.4.130.0160.00616.62
7.4.120.0100.00816.50
7.4.110.0030.01416.52
7.4.100.0190.00316.54
7.4.90.0100.01316.44
7.4.80.0110.00619.39
7.4.70.0110.00616.59
7.4.60.0090.00616.50
7.4.50.0000.01016.48
7.4.40.0030.01316.58
7.4.30.0060.01116.43
7.4.00.0090.00614.94
7.3.330.0000.00613.20
7.3.320.0000.00513.08
7.3.310.0000.00716.18
7.3.300.0000.00716.35
7.3.290.0150.00416.24
7.3.280.0100.00616.20
7.3.270.0100.00716.71
7.3.260.0100.00716.68
7.3.250.0120.00616.33
7.3.240.0080.00816.60
7.3.230.0080.00816.42
7.3.210.0100.00616.62
7.3.200.0030.01316.41
7.3.190.0110.01116.61
7.3.180.0130.00316.32
7.3.170.0120.00416.52
7.3.160.0080.00816.52
7.3.120.0060.00914.57
7.2.330.0060.01216.50
7.2.320.0100.00716.60
7.2.310.0110.01316.75
7.2.300.0090.00616.80
7.2.290.0120.00616.63
7.1.100.0060.00617.93
7.1.70.0040.00416.99
7.1.60.0030.02019.40
7.1.50.0200.00734.54
7.1.00.0100.07022.40
7.0.200.0030.00316.81
7.0.140.0000.07722.11
7.0.120.0030.07322.00
7.0.60.0100.07320.00
7.0.50.0170.07017.80
7.0.40.0100.07717.72
7.0.30.0230.05317.74
7.0.20.0070.08717.78
7.0.10.0070.07017.77
7.0.00.0070.07717.82
5.6.280.0100.06721.07
5.6.210.0100.04320.70
5.6.200.0100.07318.18
5.6.190.0070.08018.11
5.6.180.0070.04718.21
5.6.170.0170.07718.16
5.6.160.0130.06718.22
5.6.150.0100.07718.13
5.6.140.0030.08318.11
5.6.130.0070.07718.15
5.6.120.0100.03718.11
5.6.110.0100.05318.11
5.6.100.0070.07718.08
5.6.90.0100.04718.14
5.6.80.0000.08317.51
5.6.70.0070.05317.59
5.6.60.0130.03017.50
5.6.50.0000.08017.60
5.6.40.0170.06717.52
5.6.30.0030.05717.45
5.6.20.0100.06717.54
5.6.10.0130.05717.50
5.6.00.0130.04017.55
5.5.350.0370.07320.49
5.5.340.0100.07717.92
5.5.330.0100.07717.91
5.5.320.0100.04017.89
5.5.310.0130.05718.02
5.5.300.0170.07317.91
5.5.290.0030.05317.98
5.5.280.0070.04018.00
5.5.270.0070.07317.90
5.5.260.0070.04717.98
5.5.250.0000.05717.70
5.5.240.0170.06317.37
5.5.230.0100.04317.38
5.5.220.0030.07717.28
5.5.210.0130.06317.38
5.5.200.0070.08017.26
5.5.190.0100.05317.35
5.5.180.0000.04317.22
5.5.160.0000.04317.30
5.5.150.0030.04717.31
5.5.140.0100.06017.36
5.5.130.0130.05317.36
5.5.120.0170.06717.33
5.5.110.0130.07017.36
5.5.100.0100.07717.28
5.5.90.0070.07717.17
5.5.80.0030.04717.27
5.5.70.0070.05717.20
5.5.60.0070.04717.22
5.5.50.0100.06717.13
5.5.40.0000.04317.15
5.5.30.0000.08717.18
5.5.20.0030.08317.15
5.5.10.0130.07017.24
5.5.00.0100.07717.21
5.4.450.0100.07019.32
5.4.440.0070.03719.39
5.4.430.0100.07319.36
5.4.420.0030.04319.29
5.4.410.0030.07019.19
5.4.400.0000.07018.99
5.4.390.0100.06719.21
5.4.380.0030.03718.99
5.4.370.0030.06718.95
5.4.360.0070.03719.01
5.4.350.0030.08018.89
5.4.340.0100.04319.09
5.4.320.0070.03719.20
5.4.310.0030.05718.99
5.4.300.0030.04319.00
5.4.290.0130.04718.95
5.4.280.0200.06019.11
5.4.270.0100.07719.09
5.4.260.0070.05018.82
5.4.250.0070.07019.11
5.4.240.0000.04018.96
5.4.230.0100.07318.97
5.4.220.0030.08318.88
5.4.210.0070.07018.98
5.4.200.0100.07318.88
5.4.190.0070.07019.10
5.4.180.0100.06019.06
5.4.170.0070.08018.97
5.4.160.0070.05019.01
5.4.150.0100.07719.03
5.4.140.0100.05316.17
5.4.130.0030.04316.48
5.4.120.0070.06316.16
5.4.110.0000.04716.39
5.4.100.0070.06316.25
5.4.90.0070.07716.27
5.4.80.0130.06716.39
5.4.70.0230.02716.26
5.4.60.0000.07716.34
5.4.50.0200.03316.20
5.4.40.0130.06716.43
5.4.30.0000.05016.20
5.4.20.0100.07016.20
5.4.10.0100.07016.14
5.4.00.0030.03715.77
5.3.290.0130.06714.59
5.3.280.0100.05014.43
5.3.270.0030.08014.59
5.3.260.0030.08014.57
5.3.250.0000.05314.55
5.3.240.0000.04314.57
5.3.230.0070.07314.37
5.3.220.0070.07314.52
5.3.210.0130.04014.38
5.3.200.0030.07014.52
5.3.190.0130.06714.56
5.3.180.0070.04314.64
5.3.170.0000.05014.47
5.3.160.0100.04714.34
5.3.150.0100.07714.39
5.3.140.0030.08314.52
5.3.130.0070.05314.63
5.3.120.0030.04714.49
5.3.110.0000.07014.52
5.3.100.0070.03313.99
5.3.90.0070.03313.79
5.3.80.0070.06313.97
5.3.70.0170.06713.98
5.3.60.0100.04313.76
5.3.50.0130.03013.72
5.3.40.0130.04013.74
5.3.30.0070.08013.90
5.3.20.0030.07313.66
5.3.10.0130.06713.50
5.3.00.0030.04713.60
5.2.170.0100.02311.07
5.2.160.0000.06310.94
5.2.150.0170.05011.12
5.2.140.0100.06311.10
5.2.130.0130.05311.11
5.2.120.0070.06011.07
5.2.110.0170.05011.09
5.2.100.0030.06011.08
5.2.90.0070.02711.08
5.2.80.0000.04011.04
5.2.70.0130.03310.91
5.2.60.0030.03311.02
5.2.50.0070.03711.16
5.2.40.0030.05310.98
5.2.30.0170.05010.92
5.2.20.0070.06010.93
5.2.10.0030.04310.89
5.2.00.0100.05310.75
5.1.60.0100.0439.95
5.1.50.0000.02710.02
5.1.40.0000.0609.80
5.1.30.0170.04310.28
5.1.20.0030.05710.35
5.1.10.0030.05310.14
5.1.00.0100.05010.00
5.0.50.0070.0378.62
5.0.40.0030.0478.44
5.0.30.0030.0638.16
5.0.20.0030.0478.28
5.0.10.0030.0438.12
5.0.00.0030.0638.07
4.4.90.0000.0177.88
4.4.80.0000.0237.88
4.4.70.0000.0277.88
4.4.60.0000.0337.88
4.4.50.0030.0377.88
4.4.40.0030.0307.88
4.4.30.0000.0377.88
4.4.20.0030.0307.88
4.4.10.0070.0237.88
4.4.00.0030.0537.88
4.3.110.0000.0377.88
4.3.100.0030.0337.88
4.3.90.0070.0307.88
4.3.80.0000.0307.88
4.3.70.0000.0177.88
4.3.60.0030.0207.88
4.3.50.0030.0207.88
4.3.40.0030.0537.88
4.3.30.0030.0307.88
4.3.20.0000.0237.88
4.3.10.0100.0207.88
4.3.00.0000.0377.88

preferences:
45.4 ms | 400 KiB | 5 Q