3v4l.org

run code in 300+ PHP versions simultaneously
<?php $delim = ","; $items =2; $text = "oh my god, thank you the lot of downvotes, geniuses *.*"; $whatiwant = implode($delim, array_slice(explode($delim, $text),0,$items)); Echo $whatiwant;

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.5.00.0110.01021.60
8.4.150.0030.00014.05
8.4.140.0130.00919.43
8.4.130.0150.00418.60
8.4.120.0100.00824.10
8.4.110.0090.01124.08
8.4.100.0090.01117.56
8.4.90.0120.00720.38
8.4.80.0090.00419.63
8.4.70.0110.00717.57
8.4.60.0080.01218.66
8.4.50.0040.00519.41
8.4.40.0040.00717.59
8.4.30.0000.00919.33
8.4.20.0160.00319.30
8.4.10.0090.00620.26
8.3.280.0080.01218.37
8.3.270.0100.00916.51
8.3.260.0090.01116.50
8.3.250.0100.00718.79
8.3.240.0120.00817.28
8.3.230.0110.00816.54
8.3.220.0090.00917.25
8.3.210.0110.01018.89
8.3.200.0050.00416.38
8.3.190.0140.00516.97
8.3.180.0070.00416.69
8.3.170.0060.00317.20
8.3.160.0120.00616.42
8.3.150.0110.00720.59
8.3.140.0030.01516.32
8.3.130.0060.00318.36
8.3.120.0090.00020.90
8.3.110.0060.00320.94
8.3.100.0000.00724.06
8.3.90.0140.00426.77
8.3.80.0000.01218.43
8.3.70.0130.00718.31
8.3.60.0140.00718.18
8.3.50.0080.00918.14
8.3.40.0100.00718.77
8.3.30.0150.00618.54
8.3.20.0050.00319.05
8.3.10.0080.00020.86
8.3.00.0090.00617.92
8.2.290.0120.00720.22
8.2.280.0080.01118.44
8.2.270.0120.00616.98
8.2.260.0080.00019.92
8.2.250.0080.00016.63
8.2.240.0060.00318.97
8.2.230.0050.00322.58
8.2.220.0000.00937.54
8.2.210.0120.00326.77
8.2.200.0070.00416.50
8.2.190.0110.00416.63
8.2.180.0070.00718.29
8.2.170.0090.00622.96
8.2.160.0120.00319.04
8.2.150.0150.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00419.77
8.2.120.0080.00026.35
8.2.110.0000.00820.47
8.2.100.0050.00517.72
8.2.90.0030.00617.63
8.2.80.0050.00318.61
8.2.70.0090.00017.50
8.2.60.0030.00717.63
8.2.50.0040.00417.63
8.2.40.0040.00419.48
8.2.30.0070.00019.55
8.2.20.0040.00417.93
8.2.10.0000.00718.12
8.2.00.0040.00421.34
8.1.330.0110.00922.06
8.1.320.0150.00516.30
8.1.310.0050.00318.36
8.1.300.0090.00620.02
8.1.290.0000.00930.84
8.1.280.0040.01125.92
8.1.270.0060.00323.90
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00723.86
8.1.230.0070.00420.84
8.1.220.0040.00418.78
8.1.210.0080.00018.77
8.1.200.0040.00417.22
8.1.190.0000.00817.10
8.1.180.0070.00021.98
8.1.170.0000.00818.58
8.1.160.0000.00818.74
8.1.150.0050.00318.73
8.1.140.0000.00717.64
8.1.130.0070.00018.88
8.1.120.0070.00417.34
8.1.110.0040.00417.45
8.1.100.0030.00317.43
8.1.90.0030.00717.41
8.1.80.0060.00317.36
8.1.70.0030.00317.42
8.1.60.0000.00917.44
8.1.50.0080.00417.36
8.1.40.0050.00717.48
8.1.30.0040.00417.48
8.1.20.0040.00417.56
8.1.10.0080.00017.45
8.1.00.0030.00517.49
8.0.300.0040.00418.77
8.0.290.0090.00016.75
8.0.280.0070.00018.38
8.0.270.0070.00016.82
8.0.260.0040.00417.25
8.0.250.0000.00616.93
8.0.240.0030.00316.92
8.0.230.0030.00316.79
8.0.220.0000.00616.83
8.0.210.0030.00316.71
8.0.200.0060.00016.77
8.0.190.0000.00716.88
8.0.180.0050.00316.84
8.0.170.0090.00016.73
8.0.160.0030.00516.74
8.0.150.0000.00716.79
8.0.140.0030.00316.81
8.0.130.0030.00513.24
8.0.120.0000.00716.69
8.0.110.0080.00016.70
8.0.100.0000.00716.73
8.0.90.0000.00716.76
8.0.80.0050.01116.83
8.0.70.0040.00416.71
8.0.60.0000.00816.94
8.0.50.0030.00516.62
8.0.30.0110.00617.01
8.0.20.0120.00617.40
8.0.10.0080.00016.78
8.0.00.0050.01316.68
7.4.330.0000.00515.55
7.4.320.0000.00716.52
7.4.300.0000.00616.46
7.4.290.0000.00716.45
7.4.280.0040.00416.41
7.4.270.0030.00516.42
7.4.260.0070.00016.42
7.4.250.0080.00016.45
7.4.240.0070.00016.53
7.4.230.0000.00716.34
7.4.220.0000.00716.48
7.4.210.0110.00616.56
7.4.200.0050.00216.62
7.4.160.0080.00916.36
7.4.140.0100.01117.86
7.4.130.0110.00616.45
7.4.120.0080.01016.46
7.4.110.0070.01016.50
7.4.100.0070.01016.33
7.4.90.0070.01016.51
7.4.80.0080.01119.39
7.4.70.0070.01016.50
7.4.60.0060.00916.25
7.4.50.0090.00916.47
7.4.40.0110.00516.39
7.4.00.0090.00814.70
7.3.330.0050.00013.14
7.3.320.0030.00313.04
7.3.310.0000.00716.27
7.3.300.0030.00316.22
7.3.290.0040.00416.19
7.3.280.0080.00816.16
7.3.260.0130.00616.29
7.3.240.0090.00916.20
7.3.230.0100.00716.18
7.3.210.0070.01116.17
7.3.200.0030.01416.37
7.3.190.0120.00616.33
7.3.180.0090.00616.32
7.3.170.0060.01316.60
7.3.160.0160.00816.19
7.3.120.0000.01814.60
7.3.110.0060.01214.45
7.3.100.0090.00614.72
7.3.90.0030.01214.92
7.3.80.0030.01014.85
7.3.70.0030.01314.87
7.3.60.0110.00314.80
7.3.50.0000.01314.72
7.3.40.0060.00914.84
7.3.30.0100.00314.63
7.3.20.0090.00016.61
7.3.10.0020.01116.29
7.3.00.0090.00416.29
7.2.330.0040.01616.49
7.2.320.0140.00316.27
7.2.310.0030.01316.70
7.2.300.0100.00716.48
7.2.290.0080.01116.71
7.2.250.0030.01414.86
7.2.240.0030.01714.77
7.2.230.0030.01015.06
7.2.220.0120.00614.99
7.2.210.0000.01615.07
7.2.200.0110.00714.83
7.2.190.0120.00314.87
7.2.180.0100.00714.82
7.2.170.0000.00914.83
7.2.130.0090.00916.75
7.2.120.0040.00915.96
7.2.110.0090.00316.14
7.2.100.0070.01016.46
7.2.90.0130.00316.15
7.2.80.0070.00716.59
7.2.70.0060.01216.50
7.2.60.0710.00815.71
7.2.50.0800.00815.73
7.2.40.0680.01315.73
7.2.30.0780.00815.81
7.2.20.0800.00915.70
7.2.10.1000.01315.90
7.2.00.1080.00416.01
7.1.330.0110.00315.98
7.1.320.0090.00615.93
7.1.310.0070.00716.07
7.1.300.0040.01115.82
7.1.290.0070.00715.96
7.1.280.0000.01015.89
7.1.270.0000.01415.71
7.1.260.0030.00715.82
7.1.250.0040.00715.38
7.1.200.0070.00715.58
7.1.170.1530.00913.87
7.1.160.1640.01416.77
7.1.150.1800.01516.74
7.1.140.1340.01317.03
7.1.130.1570.01116.61
7.1.120.1450.01116.80
7.1.110.1580.01216.30
7.1.100.1690.01316.29
7.1.90.1690.01015.77
7.1.80.1380.01215.77
7.1.70.1710.01015.26
7.1.60.1910.01532.86
7.1.50.1200.01432.79
7.1.40.1980.01532.56
7.1.30.1640.01532.59
7.1.20.1630.01232.86
7.1.10.1120.00714.82
7.1.00.1690.01714.88

preferences:
166.11 ms | 403 KiB | 5 Q