3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string="lorem-ipsum-dolor-sit-amet-consectetur-adipiscing-elit-sed-do-eiusmod-tempor-incididunt-ut-labore-et-dolore-magna-aliqua"; $words = explode('-', $string); $words = array_slice($words, 0, 6); $string = implode('-', $words); print_r($string);

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.4.130.0090.00517.70
8.4.120.0050.00320.29
8.4.110.0130.00722.36
8.4.100.0150.00617.65
8.4.90.0120.00718.66
8.4.80.0110.01019.63
8.4.70.0050.00417.50
8.4.60.0140.00623.82
8.4.50.0140.00718.67
8.4.40.0130.00617.68
8.4.30.0110.00717.66
8.4.20.0090.00620.42
8.4.10.0000.00917.57
8.3.260.0120.00916.54
8.3.250.0120.00718.98
8.3.240.0160.00516.56
8.3.230.0140.00416.17
8.3.220.0120.00717.25
8.3.210.0110.00818.49
8.3.200.0030.00516.66
8.3.190.0110.00716.99
8.3.180.0100.01016.48
8.3.170.0140.00416.66
8.3.160.0040.01118.16
8.3.150.0070.01318.13
8.3.140.0120.00617.13
8.3.130.0040.00418.21
8.3.120.0150.00318.39
8.3.110.0040.00416.38
8.3.100.0040.00416.48
8.3.90.0060.00326.77
8.3.80.0040.00717.97
8.3.70.0120.00916.38
8.3.60.0070.00718.43
8.3.50.0130.00818.08
8.3.40.0070.01418.70
8.3.30.0070.00718.49
8.3.20.0030.00618.90
8.3.10.0040.00423.52
8.3.00.0030.00523.61
8.2.290.0070.00420.44
8.2.280.0080.00818.17
8.2.270.0080.00017.07
8.2.260.0160.00016.37
8.2.250.0090.00616.85
8.2.240.0110.00717.16
8.2.230.0040.00420.94
8.2.220.0080.00016.32
8.2.210.0060.00326.77
8.2.200.0090.00316.25
8.2.190.0100.01016.63
8.2.180.0060.00918.13
8.2.170.0060.00918.88
8.2.160.0060.00922.96
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0070.00022.11
8.2.120.0070.00026.35
8.2.110.0040.00819.30
8.2.100.0040.00817.47
8.2.90.0000.00817.72
8.2.80.0000.00817.97
8.2.70.0080.00017.50
8.2.60.0040.00417.50
8.2.50.0060.00317.55
8.2.40.0040.00419.09
8.2.30.0000.00820.60
8.2.20.0040.00417.98
8.2.10.0040.00418.13
8.2.00.0000.00719.42
8.1.330.0110.00722.01
8.1.320.0170.00415.88
8.1.310.0030.00518.04
8.1.300.0060.00917.66
8.1.290.0000.01118.88
8.1.280.0110.00425.92
8.1.270.0040.00421.96
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00320.78
8.1.230.0070.00422.06
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0030.00817.00
8.1.180.0060.00318.10
8.1.170.0000.01018.83
8.1.160.0020.00518.74
8.1.150.0000.00818.74
8.1.140.0070.00018.92
8.1.130.0030.00519.02
8.1.120.0000.00717.31
8.1.110.0000.00717.29
8.1.100.0000.00717.39
8.1.90.0040.00417.26
8.1.80.0040.00317.45
8.1.70.0040.00417.30
8.1.60.0050.00317.40
8.1.50.0040.00417.50
8.1.40.0080.00017.46
8.1.30.0040.00417.50
8.1.20.0030.00617.47
8.1.10.0040.00417.39
8.1.00.0000.00817.38
8.0.300.0000.00720.04
8.0.290.0000.00916.63
8.0.280.0030.00318.34
8.0.270.0030.00317.11
8.0.260.0000.00717.19
8.0.250.0050.00216.88
8.0.240.0060.00316.89
8.0.230.0000.00716.86
8.0.220.0000.00816.71
8.0.210.0000.00716.69
8.0.200.0040.00416.89
8.0.190.0000.00716.86
8.0.180.0080.00016.71
8.0.170.0000.00916.86
8.0.160.0000.00816.88
8.0.150.0000.00716.68
8.0.140.0030.00316.71
8.0.130.0060.00013.26
8.0.120.0040.00416.78
8.0.110.0040.00416.79
8.0.100.0000.00716.69
8.0.90.0000.00716.70
8.0.80.0090.00816.87
8.0.70.0040.00416.83
8.0.60.0000.00716.67
8.0.50.0080.00016.78
8.0.30.0100.00917.03
8.0.20.0120.01017.40
8.0.10.0040.00416.91
8.0.00.0140.00716.61
7.4.330.0000.00415.55
7.4.320.0030.00316.41
7.4.300.0040.00416.29
7.4.290.0000.00816.52
7.4.280.0060.00316.54
7.4.270.0090.00016.34
7.4.260.0000.00716.56
7.4.250.0070.00016.49
7.4.240.0070.00016.55
7.4.230.0020.00516.63
7.4.220.0040.00416.37
7.4.210.0050.01016.40
7.4.200.0070.00016.51
7.4.160.0120.00516.55
7.4.140.0090.00917.86
7.4.130.0030.01516.25
7.4.120.0110.00816.43
7.4.110.0040.01416.55
7.4.100.0060.01116.27
7.4.90.0110.00616.29
7.4.80.0120.00419.39
7.4.70.0130.00416.32
7.4.60.0130.00316.45
7.4.50.0000.01416.41
7.4.40.0070.01016.35
7.4.00.0030.01014.65
7.3.330.0000.00612.96
7.3.320.0000.00513.04
7.3.310.0070.00015.97
7.3.300.0030.00316.16
7.3.290.0030.00316.16
7.3.280.0140.00416.18
7.3.260.0060.01116.35
7.3.240.0120.00916.27
7.3.230.0100.00716.36
7.3.210.0160.00016.15
7.3.200.0100.00616.30
7.3.190.0090.00616.30
7.3.180.0060.01016.10
7.3.170.0160.00316.14
7.3.160.0000.01516.59
7.3.10.0090.00316.71
7.3.00.0040.01116.12
7.2.330.0140.01116.39
7.2.320.0030.01316.51
7.2.310.0160.00616.42
7.2.300.0060.01116.59
7.2.290.0090.00916.53
7.2.130.0100.00316.70
7.2.120.0030.01216.69
7.2.110.0000.01016.79
7.2.100.0030.01016.56
7.2.90.0120.00316.64
7.2.80.0280.00815.64
7.2.70.0320.00515.78
7.2.60.0310.00515.68
7.2.50.0260.00915.94
7.2.40.0260.00815.83
7.2.30.0310.00515.69
7.2.20.0330.00515.78
7.2.10.0340.00515.89
7.2.00.0060.00515.80
7.1.250.0070.00715.72
7.1.200.0030.00715.77
7.1.190.0580.00313.77
7.1.180.0620.00313.74
7.1.170.0050.00513.67
7.1.160.0400.01013.52
7.1.150.0390.00413.65
7.1.140.0110.00013.99
7.1.130.0030.00913.67
7.1.120.0590.00713.68
7.1.110.0600.00313.80
7.1.100.0190.00013.53
7.1.90.0000.01113.50
7.1.80.0060.00613.89
7.1.70.0580.00913.61
7.1.60.0300.01031.84
7.1.50.0390.00731.73
7.1.40.0720.00931.73
7.1.30.0930.01031.80
7.1.20.0790.00331.73
7.1.10.0690.00314.02
7.1.00.0640.00313.70

preferences:
28.67 ms | 403 KiB | 5 Q