3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'CORN FUTURE May14'; $data = preg_split('\s', $subject); array_pop($data); $name = trim(implode(' ', $data)); echo $name;

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.0180.00416.73
8.3.50.0070.01316.40
8.3.40.0120.00318.85
8.3.30.0150.00418.54
8.3.20.0050.00318.73
8.3.10.0090.00620.61
8.3.00.0060.00317.37
8.2.180.0120.00316.88
8.2.170.0090.01222.96
8.2.160.0100.00722.13
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0110.00719.64
8.2.110.0060.00320.87
8.2.100.0000.01117.72
8.2.90.0030.00619.08
8.2.80.0030.00617.93
8.2.70.0030.00617.63
8.2.60.0050.00217.80
8.2.50.0050.00518.07
8.2.40.0050.00218.09
8.2.30.0040.00417.86
8.2.20.0040.00417.59
8.2.10.0040.00417.65
8.2.00.0040.00417.81
8.1.280.0080.00625.92
8.1.270.0110.00324.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00020.64
8.1.230.0040.00821.04
8.1.220.0060.00317.74
8.1.210.0040.00418.83
8.1.200.0040.00417.35
8.1.190.0030.00617.53
8.1.180.0080.00018.10
8.1.170.0000.00818.82
8.1.160.0000.00718.73
8.1.150.0040.00418.58
8.1.140.0030.00717.38
8.1.130.0070.00017.82
8.1.120.0040.00417.29
8.1.110.0000.00817.35
8.1.100.0070.00017.31
8.1.90.0000.00717.46
8.1.80.0040.00417.36
8.1.70.0040.00417.38
8.1.60.0050.00217.56
8.1.50.0070.00017.34
8.1.40.0050.00317.48
8.1.30.0000.00717.61
8.1.20.0050.00317.69
8.1.10.0000.00717.63
8.1.00.0040.00417.40
8.0.300.0000.00719.98
8.0.290.0050.00316.63
8.0.280.0050.00318.26
8.0.270.0000.00717.25
8.0.260.0000.00716.82
8.0.250.0030.00516.95
8.0.240.0030.00517.00
8.0.230.0030.00316.83
8.0.220.0030.00316.96
8.0.210.0030.00316.82
8.0.200.0000.00616.99
8.0.190.0070.00016.94
8.0.180.0040.00416.95
8.0.170.0030.00616.85
8.0.160.0040.00416.88
8.0.150.0040.00416.89
8.0.140.0060.00416.87
8.0.130.0040.00413.28
8.0.120.0040.00416.84
8.0.110.0040.00416.89
8.0.100.0040.00416.68
8.0.90.0040.00416.93
8.0.80.0030.01416.94
8.0.70.0000.00716.89
8.0.60.0020.00516.68
8.0.50.0000.00816.75
8.0.30.0150.00516.99
8.0.20.0130.01017.14
8.0.10.0080.00017.03
8.0.00.0070.01116.59
7.4.330.0000.00513.04
7.4.320.0030.00316.42
7.4.300.0060.00016.46
7.4.290.0000.00716.43
7.4.280.0050.00316.57
7.4.270.0070.00016.46
7.4.260.0030.00313.22
7.4.250.0060.00316.33
7.4.240.0070.00016.43
7.4.230.0080.00016.36
7.4.220.0070.01116.49
7.4.210.0090.00816.46
7.4.200.0070.00016.36
7.4.190.0000.00816.43
7.4.160.0110.00516.45
7.4.150.0090.00916.57
7.4.140.0140.00316.40
7.4.130.0060.01116.31
7.4.120.0080.00816.43
7.4.110.0070.01016.54
7.4.100.0120.00616.39
7.4.90.0120.00616.56
7.4.80.0090.00616.52
7.4.70.0110.01116.21
7.4.60.0070.01116.28
7.4.50.0000.00716.33
7.4.40.0160.00016.54
7.4.30.0120.00616.29
7.4.00.0100.00715.15
7.3.330.0000.00613.27
7.3.320.0050.00313.11
7.3.310.0070.00016.26
7.3.300.0030.00316.30
7.3.290.0050.00916.25
7.3.280.0120.00416.25
7.3.270.0130.00316.46
7.3.260.0070.01616.42
7.3.250.0050.01516.36
7.3.240.0150.00616.27
7.3.230.0080.00816.44
7.3.210.0130.00316.35
7.3.200.0110.01119.39
7.3.190.0090.00916.30
7.3.180.0030.01516.24
7.3.170.0060.00916.30
7.3.160.0160.00316.29
7.3.120.0040.00814.80
7.2.330.0090.00916.35
7.2.320.0060.01016.51
7.2.310.0140.01716.54
7.2.300.0120.00416.29
7.2.290.0060.00916.74
7.2.60.0070.01016.66
7.2.00.0100.01019.33
7.1.200.0040.00815.85
7.1.100.0060.00918.38
7.1.70.0100.00616.87
7.1.60.0100.01319.40
7.1.50.0040.01816.50
7.1.00.0000.08322.57
7.0.200.0000.00816.76
7.0.140.0000.07721.95
7.0.120.0000.07722.09
7.0.60.0100.07720.01
7.0.50.0100.05717.80
7.0.40.0070.08017.74
7.0.30.0130.03317.66
7.0.20.0130.03317.71
7.0.10.0030.03717.73
7.0.00.0030.04317.75
5.6.210.0130.05720.50
5.6.200.0100.08018.11
5.6.190.0000.06718.09
5.6.180.0070.04018.22
5.6.170.0030.04318.22
5.6.160.0070.03718.15
5.6.150.0000.05718.18
5.6.140.0030.04018.11
5.6.130.0030.04018.07
5.6.120.0030.04018.10
5.6.110.0100.03718.14
5.6.100.0030.04018.08
5.6.90.0030.04018.20
5.6.80.0070.04017.57
5.6.70.0000.04017.59
5.6.60.0030.03717.53
5.6.50.0070.03717.51
5.6.40.0000.04317.56
5.6.30.0100.03017.54
5.6.20.0070.06717.56
5.6.10.0030.05717.53
5.6.00.0030.07717.55
5.5.350.0400.06020.36
5.5.340.0070.06717.88
5.5.330.0200.05317.98
5.5.320.0030.04017.88
5.5.310.0000.04317.91
5.5.300.0100.03317.98
5.5.290.0030.04317.93
5.5.280.0070.03717.98
5.5.270.0000.04317.89
5.5.260.0030.04017.91
5.5.250.0070.03717.79
5.5.240.0030.03717.30
5.5.230.0030.04317.34
5.5.220.0030.03717.32
5.5.210.0030.03717.36
5.5.200.0070.03317.30
5.5.190.0030.03717.30
5.5.180.0030.03717.22
5.5.160.0070.07017.37
5.5.150.0070.08017.31
5.5.140.0100.06717.31
5.5.130.0030.04317.25
5.5.120.0070.07317.30
5.5.110.0100.06717.27
5.5.100.0030.06017.27
5.5.90.0100.04317.27
5.5.80.0100.03317.21
5.5.70.0000.04717.24
5.5.60.0030.08017.22
5.5.50.0100.07017.25
5.5.40.0030.07317.21
5.5.30.0000.05017.17
5.5.20.0030.06317.17
5.5.10.0030.05317.11
5.5.00.0000.05317.18
5.4.450.0070.03719.45
5.4.440.0130.03019.36
5.4.430.0000.04019.30
5.4.420.0030.03719.11
5.4.410.0100.03019.23
5.4.400.0070.04718.98
5.4.390.0000.05019.03
5.4.380.0070.03318.99
5.4.370.0070.03318.99
5.4.360.0070.03319.03
5.4.350.0000.04018.82
5.4.340.0030.08018.99
5.4.320.0030.07318.99
5.4.310.0000.04718.99
5.4.300.0130.06719.11
5.4.290.0070.06019.04
5.4.280.0070.07318.95
5.4.270.0100.05718.95
5.4.260.0070.07018.89
5.4.250.0130.05318.88
5.4.240.0070.03319.06
5.4.230.0070.06719.08
5.4.220.0070.08019.00
5.4.210.0000.08319.00
5.4.200.0200.06019.20
5.4.190.0030.06318.88
5.4.180.0030.08018.97
5.4.170.0130.07319.02
5.4.160.0100.06718.89
5.4.150.0100.07718.99
5.4.140.0130.07016.18
5.4.130.0130.05316.32
5.4.120.0030.07016.32
5.4.110.0030.04016.39
5.4.100.0030.04316.25
5.4.90.0070.07016.43
5.4.80.0130.07016.41
5.4.70.0030.06716.37
5.4.60.0100.07016.23
5.4.50.0070.07016.26
5.4.40.0070.07716.46
5.4.30.0070.04716.34
5.4.20.0000.04716.32
5.4.10.0000.04316.38
5.4.00.0030.06015.80
5.3.290.0070.04714.49
5.3.280.0030.04714.54
5.3.270.0070.08014.52
5.3.260.0030.05314.46
5.3.250.0070.07714.56
5.3.240.0030.07014.57
5.3.230.0030.08314.57
5.3.220.0070.06314.64
5.3.210.0030.04714.50
5.3.200.0070.06014.54
5.3.190.0030.08014.49
5.3.180.0030.08314.54
5.3.170.0030.08014.39
5.3.160.0070.07314.50
5.3.150.0130.06714.34
5.3.140.0030.07714.49
5.3.130.0070.07314.62
5.3.120.0130.07014.38
5.3.110.0070.08014.62
5.3.100.0030.07713.81
5.3.90.0070.04013.98
5.3.80.0030.06313.97
5.3.70.0000.06713.98
5.3.60.0100.03713.95
5.3.50.0030.05014.02
5.3.40.0100.07013.87
5.3.30.0030.06013.84
5.3.20.0100.04313.63
5.3.10.0070.07713.42
5.3.00.0030.03713.62
5.2.170.0070.04711.11
5.2.160.0070.06010.97
5.2.150.0170.03011.12
5.2.140.0000.04711.14
5.2.130.0070.02711.06
5.2.120.0030.04010.92
5.2.110.0100.03011.02
5.2.100.0000.03711.06
5.2.90.0100.06011.23
5.2.80.0170.02711.09
5.2.70.0130.05311.23
5.2.60.0100.05310.88
5.2.50.0100.05310.94
5.2.40.0070.04310.96
5.2.30.0030.05710.74
5.2.20.0030.06310.93
5.2.10.0030.02710.81
5.2.00.0070.02710.72
5.1.60.0100.0479.95
5.1.50.0070.0339.96
5.1.40.0070.0309.95
5.1.30.0030.05710.38
5.1.20.0100.05710.38
5.1.10.0030.0279.89
5.1.00.0030.03010.03
5.0.50.0000.0238.52
5.0.40.0030.0378.41
5.0.30.0070.0638.18
5.0.20.0070.0408.25
5.0.10.0030.0438.09
5.0.00.0000.0508.22
4.4.90.0100.0277.99
4.4.80.0030.0237.99
4.4.70.0030.0207.99
4.4.60.0100.0237.99
4.4.50.0030.0237.99
4.4.40.0030.0537.99
4.4.30.0000.0307.99
4.4.20.0000.0207.99
4.4.10.0030.0137.99
4.4.00.0000.0537.99
4.3.110.0000.0277.99
4.3.100.0000.0337.99
4.3.90.0030.0307.99
4.3.80.0000.0307.99
4.3.70.0000.0177.99
4.3.60.0070.0207.99
4.3.50.0030.0177.99
4.3.40.0030.0507.99
4.3.30.0070.0237.99
4.3.20.0000.0407.99
4.3.10.0000.0307.99
4.3.00.0030.0337.99

preferences:
43.7 ms | 401 KiB | 5 Q