3v4l.org

run code in 300+ PHP versions simultaneously
<?php $categoryText = 'TOYA > Kleště > Kleště spojovaci'; $categoryUrl = NULL; if (!empty($categoryText)) { $category = explode('>', $categoryText); $category = array_map(function ($val) { return trim($val); }, $category); $last = end($category); $categoryUrl = Strings::webalize(prev($category) . ' ' . $last); } var_dump ($categoryUrl);

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.0110.01116.63
8.3.50.0140.00821.20
8.3.40.0040.01118.71
8.3.30.0070.00718.43
8.3.20.0080.00620.38
8.3.10.0040.00421.73
8.3.00.0040.00423.48
8.2.180.0150.00618.31
8.2.170.0030.01022.96
8.2.160.0080.00620.52
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0080.00020.93
8.2.120.0000.00726.35
8.2.110.0030.00622.29
8.2.100.0080.00317.78
8.2.90.0030.00619.13
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0040.00418.04
8.2.50.0000.00918.10
8.2.40.0000.00720.32
8.2.30.0080.00019.46
8.2.20.0050.00317.73
8.2.10.0040.00418.18
8.2.00.0070.00018.11
8.1.280.0100.01025.92
8.1.270.0040.00422.14
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0050.00519.06
8.1.230.0000.01217.51
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0060.00317.38
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0030.00518.71
8.1.160.0000.00820.75
8.1.150.0030.00520.59
8.1.140.0030.00519.66
8.1.130.0030.00317.69
8.1.120.0030.00417.45
8.1.110.0000.00717.34
8.1.100.0040.00417.49
8.1.90.0000.00717.49
8.1.80.0030.00617.45
8.1.70.0070.00017.42
8.1.60.0050.00317.47
8.1.50.0030.00617.55
8.1.40.0070.00317.57
8.1.30.0030.00517.68
8.1.20.0070.00017.59
8.1.10.0060.00317.53
8.1.00.0040.00417.52
8.0.300.0000.00818.77
8.0.290.0060.00316.88
8.0.280.0070.00018.57
8.0.270.0030.00317.19
8.0.260.0040.00417.27
8.0.250.0000.00816.95
8.0.240.0080.00016.97
8.0.230.0000.00616.92
8.0.220.0040.00416.93
8.0.210.0000.00717.01
8.0.200.0000.00717.04
8.0.190.0040.00717.04
8.0.180.0040.00416.94
8.0.170.0020.00516.92
8.0.160.0030.00317.01
8.0.150.0040.00416.93
8.0.140.0000.00716.95
8.0.130.0030.00313.39
8.0.120.0000.00916.95
8.0.110.0000.00716.87
8.0.100.0070.00016.81
8.0.90.0040.00416.96
8.0.80.0110.00416.96
8.0.70.0050.00316.81
8.0.60.0000.00816.84
8.0.50.0000.00716.82
8.0.30.0090.01017.06
8.0.20.0090.01017.40
8.0.10.0030.00516.96
8.0.00.0110.00616.72
7.4.330.0000.00516.70
7.4.320.0060.00016.50
7.4.300.0000.00916.46
7.4.290.0030.00316.43
7.4.280.0000.00816.56
7.4.270.0030.00316.51
7.4.260.0050.00316.60
7.4.250.0000.00816.47
7.4.240.0040.00416.45
7.4.230.0020.00516.62
7.4.220.0060.01216.64
7.4.210.0110.00916.54
7.4.200.0000.00716.69
7.4.160.0060.01316.49
7.4.150.0090.01117.40
7.4.140.0100.01017.86
7.4.130.0160.00416.74
7.4.120.0080.01016.67
7.4.110.0090.00916.66
7.4.100.0100.01416.62
7.4.90.0150.00316.50
7.4.80.0150.00819.39
7.4.70.0170.00016.64
7.4.60.0100.01016.62
7.4.50.0090.01016.41
7.4.40.0110.00816.65
7.4.30.0120.00616.63
7.4.00.0040.01214.97
7.3.330.0020.00213.30
7.3.320.0000.00513.27
7.3.310.0030.00316.30
7.3.300.0070.00016.17
7.3.290.0070.00016.17
7.3.280.0090.00916.29
7.3.270.0000.01717.40
7.3.260.0100.01316.25
7.3.250.0080.01116.41
7.3.240.0100.00716.36
7.3.230.0060.01216.39
7.3.210.0080.00816.54
7.3.200.0100.01319.39
7.3.190.0080.00816.36
7.3.180.0030.01316.35
7.3.170.0060.01316.42
7.3.160.0090.00616.36
7.2.330.0050.01316.59
7.2.320.0070.01016.50
7.2.310.0030.01316.41
7.2.300.0070.01016.67
7.2.290.0150.00016.71
7.2.60.0130.00316.93
7.2.00.0070.00719.11
7.1.200.0060.00915.70
7.1.100.0000.01117.98
7.1.70.0040.01117.23
7.1.60.0030.02019.40
7.1.50.0070.00316.92
7.1.00.0070.07322.44
7.0.200.0080.00814.94
7.0.60.0270.08020.01
7.0.50.0030.04017.83
7.0.40.0100.05320.09
7.0.30.0100.05020.35
7.0.20.0100.04720.15
7.0.10.0030.05320.17
7.0.00.0070.06720.19
5.6.280.0100.03320.99
5.6.210.0030.04320.75
5.6.200.0030.06718.19
5.6.190.0100.05320.42
5.6.180.0270.08020.39
5.6.170.0200.05320.48
5.6.160.0030.04320.39
5.6.150.0170.07318.28
5.6.140.0000.04318.12
5.6.130.0000.04318.15
5.6.120.0000.04321.02
5.6.110.0070.05721.11
5.6.100.0130.06321.00
5.6.90.0070.06321.11
5.6.80.0030.08320.38
5.5.350.0200.07320.47
5.5.340.0070.07718.08
5.5.330.0030.06720.32
5.5.320.0370.04320.20
5.5.310.0330.04320.29
5.5.300.0030.07717.94
5.5.290.0030.08717.95
5.5.280.0030.09020.95
5.5.270.0030.05720.76
5.5.260.0000.08320.87
5.5.250.0170.07720.61
5.5.240.0200.03720.27

preferences:
58.63 ms | 401 KiB | 5 Q