3v4l.org

run code in 300+ PHP versions simultaneously
<?php $item_colors = "Vario Base Unit with steel, large, black/orange"; $result = eval('return '.str_replace(['Vario Base Unit with ', '/', ', '], ['["',', ', '", "'], $item_colors).'"];'); echo implode(' ', $result); //steel large black orange var_dump($result); // array(4) { // [0]=> // string(5) "steel" // [1]=> // string(5) "large" // [2]=> // string(5) "black" // [3]=> // string(6) "orange" // }

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.0090.00618.56
8.3.50.0090.00616.39
8.3.40.0110.00718.62
8.3.30.0140.00018.54
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.180.0140.00725.92
8.2.170.0070.00722.96
8.2.160.0080.00822.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00920.55
8.2.110.0110.00022.20
8.2.100.0040.00817.84
8.2.90.0040.00420.47
8.2.80.0000.00820.57
8.2.70.0000.00817.93
8.2.60.0000.00918.16
8.2.50.0000.00818.10
8.2.40.0070.00019.18
8.2.30.0040.00419.26
8.2.20.0000.00718.04
8.2.10.0000.00819.32
8.2.00.0060.00319.42
8.1.280.0130.00725.92
8.1.270.0000.00824.02
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0150.00423.78
8.1.230.0070.00420.91
8.1.220.0040.00417.74
8.1.210.0040.00418.98
8.1.200.0040.00417.35
8.1.190.0040.00417.25
8.1.180.0040.00418.10
8.1.170.0040.00418.37
8.1.160.0070.00018.87
8.1.150.0040.00418.60
8.1.140.0030.00618.89
8.1.130.0000.00717.50
8.1.120.0000.00717.43
8.1.110.0060.00317.34
8.1.100.0040.00417.46
8.1.90.0080.00017.39
8.1.80.0040.00417.35
8.1.70.0000.00717.43
8.1.60.0030.00517.58
8.1.50.0000.00917.58
8.1.40.0030.00517.40
8.1.30.0000.00717.62
8.1.20.0050.00317.70
8.1.10.0080.00017.54
8.1.00.0090.00017.48
8.0.300.0000.00720.14
8.0.290.0030.00616.63
8.0.280.0070.00018.33
8.0.270.0040.00418.01
8.0.260.0030.00316.70
8.0.250.0040.00416.94
8.0.240.0000.00616.88
8.0.230.0000.00716.85
8.0.220.0070.00016.79
8.0.210.0030.00316.93
8.0.200.0030.00316.97
8.0.190.0000.00816.98
8.0.180.0000.00717.01
8.0.170.0050.00316.90
8.0.160.0070.00016.90
8.0.150.0000.00716.75
8.0.140.0080.00016.79
8.0.130.0050.00013.34
8.0.120.0000.00716.73
8.0.110.0050.00316.76
8.0.100.0040.00416.79
8.0.90.0040.00416.86
8.0.80.0070.01116.85
8.0.70.0070.00016.80
8.0.60.0080.00017.02
8.0.50.0000.00716.81
8.0.30.0140.00317.27
8.0.20.0110.00817.29
8.0.10.0100.01017.04
8.0.00.0170.00916.79
7.4.330.0030.00316.79
7.4.320.0040.00416.60
7.4.300.0060.00316.63
7.4.290.0030.00316.52
7.4.280.0060.00616.34
7.4.270.0050.00316.54
7.4.260.0030.00313.29
7.4.250.0070.00016.43
7.4.240.0020.00516.43
7.4.230.0000.00816.58
7.4.220.0000.00716.33
7.4.210.0060.00916.54
7.4.200.0000.00716.41
7.4.150.0130.00416.09
7.4.140.0130.00616.17
7.4.130.0150.00916.23
7.4.120.0140.01116.25
7.4.110.0090.00916.25
7.4.100.0110.00616.44
7.4.90.0040.01616.07
7.4.80.0030.01416.27
7.4.70.0060.01216.45
7.4.60.0100.00716.59
7.4.50.0090.00916.27
7.4.40.0130.00616.52
7.4.30.0160.00516.55
7.4.20.0070.01816.55
7.4.10.0160.01016.54
7.4.00.0090.01616.43
7.3.330.0000.00716.09
7.3.320.0000.00513.02
7.3.310.0000.00716.23
7.3.300.0000.00716.26
7.3.290.0050.01016.27
7.3.270.0060.01216.07
7.3.260.0120.00616.31
7.3.250.0170.00616.15
7.3.240.0120.01216.16
7.3.230.0030.01916.08
7.3.220.0060.01216.36
7.3.210.0090.00916.38
7.3.200.0060.01116.09
7.3.190.0030.01516.09
7.3.180.0100.00716.15
7.3.170.0120.00616.22
7.3.160.0040.01416.49
7.3.150.0080.01116.20
7.3.140.0120.00616.13
7.3.130.0120.00616.36
7.3.120.0100.01416.34
7.3.110.0120.01216.13
7.3.100.0170.00316.30
7.3.90.0130.00416.43
7.3.80.0140.00316.37
7.3.70.0090.00916.01
7.3.60.0090.00916.30
7.3.50.0030.01316.27
7.3.40.0060.01016.43
7.3.30.0070.01016.23
7.3.20.0060.01217.96
7.3.10.0150.00318.04
7.3.00.0110.00718.07

preferences:
54.17 ms | 400 KiB | 5 Q