3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = ''; $array3 = []; $str = 'width: 500px; height: 500px; border-width: 5px; border-radius: 30px;'; $array2 = preg_split('/([\s;:]+)/', $str ); array_walk( $array2, function($el) use (&$array, &$key) { if($key) { $array3[$key] = $el; $key = null; } else { $key = $el; print($el); } } ); print_r($array3);

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.01218.56
8.3.50.0100.01018.17
8.3.40.0120.00319.00
8.3.30.0070.00718.96
8.3.20.0080.00020.33
8.3.10.0090.00020.10
8.3.00.0040.00421.89
8.2.180.0180.00418.55
8.2.170.0090.00922.96
8.2.160.0050.00820.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00020.37
8.2.120.0080.00026.35
8.2.110.0040.00721.07
8.2.100.0040.00818.28
8.2.90.0080.00019.36
8.2.80.0040.00417.97
8.2.70.0040.00417.88
8.2.60.0000.00817.80
8.2.50.0060.00318.10
8.2.40.0060.00320.58
8.2.30.0090.00019.44
8.2.20.0030.00518.10
8.2.10.0030.00518.19
8.2.00.0050.00218.27
8.1.280.0150.00425.92
8.1.270.0080.00022.20
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00322.01
8.1.230.0080.00319.00
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0060.00317.25
8.1.190.0000.00817.48
8.1.180.0030.00518.10
8.1.170.0040.00418.79
8.1.160.0040.00418.91
8.1.150.0040.00420.36
8.1.140.0050.00219.68
8.1.130.0070.00018.94
8.1.120.0040.00417.69
8.1.110.0000.00817.63
8.1.100.0000.00717.55
8.1.90.0050.00317.53
8.1.80.0050.00317.54
8.1.70.0000.00717.62
8.1.60.0040.00417.66
8.1.50.0040.00417.68
8.1.40.0000.00717.65
8.1.30.0070.00017.76
8.1.20.0060.00617.75
8.1.10.0000.00817.84
8.1.00.0000.00717.65
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0040.00418.49
8.0.270.0030.00517.28
8.0.260.0090.00017.24
8.0.250.0000.00717.15
8.0.240.0030.00617.13
8.0.230.0030.00317.02
8.0.220.0000.00716.94
8.0.210.0030.00517.13
8.0.200.0030.00317.17
8.0.190.0070.00417.00
8.0.180.0040.00417.14
8.0.170.0000.00717.07
8.0.160.0000.00817.19
8.0.150.0060.00317.01
8.0.140.0060.00316.93
8.0.130.0060.00013.45
8.0.120.0000.00817.02
8.0.110.0050.00317.09
8.0.100.0070.00016.93
8.0.90.0000.00717.10
8.0.80.0110.00417.10
8.0.70.0000.00716.86
8.0.60.0070.00017.10
8.0.50.0080.00017.12
8.0.30.0120.00617.22
8.0.20.0110.00817.44
8.0.10.0070.00016.99
8.0.00.0080.01116.99
7.4.330.0050.00015.55
7.4.320.0000.00616.84
7.4.300.0030.00316.78
7.4.290.0040.00416.84
7.4.280.0030.00516.59
7.4.270.0000.00716.73
7.4.260.0000.00916.79
7.4.250.0080.00016.62
7.4.240.0040.00416.68
7.4.230.0040.00416.81
7.4.220.0100.00516.76
7.4.210.0120.00316.84
7.4.200.0000.00816.87
7.4.160.0120.00816.75
7.4.150.0040.01417.40
7.4.140.0130.00717.86
7.4.130.0140.00916.81
7.4.120.0130.00916.76
7.4.110.0120.01216.52
7.4.100.0130.00416.60
7.4.90.0100.00716.69
7.4.80.0090.01219.39
7.4.70.0090.00916.59
7.4.60.0120.00316.64
7.4.50.0000.01616.63
7.4.40.0080.00816.84
7.4.30.0130.00316.75
7.4.00.0050.01315.26
7.3.330.0000.00913.50
7.3.320.0050.00013.42
7.3.310.0040.00416.38
7.3.300.0030.00316.54
7.3.290.0060.00716.58
7.3.280.0100.00916.50
7.3.270.0070.01017.40
7.3.260.0080.01016.81
7.3.250.0100.00916.76
7.3.240.0130.00516.56
7.3.230.0090.01216.51
7.3.210.0090.00916.77
7.3.200.0000.01716.61
7.3.190.0170.00016.72
7.3.180.0150.00316.89
7.3.170.0070.01016.50
7.3.160.0130.01016.73
7.3.120.0040.01414.93
7.3.110.0090.00915.04
7.3.100.0080.00315.06
7.3.90.0130.00315.16
7.3.80.0080.00415.00
7.3.70.0040.00815.13
7.3.60.0030.01014.75
7.3.50.0100.00615.11
7.3.40.0030.00714.87
7.3.30.0060.00315.09
7.3.20.0000.01016.98
7.3.10.0110.00516.84
7.3.00.0070.00716.77
7.2.330.0090.00916.96
7.2.320.0090.00916.82
7.2.310.0090.01116.69
7.2.300.0060.01316.88
7.2.290.0100.00616.81
7.2.250.0100.01015.31
7.2.240.0060.01015.27
7.2.230.0030.00915.27
7.2.220.0140.00315.39
7.2.210.0030.01315.34
7.2.200.0060.00615.46
7.2.190.0000.01515.07
7.2.180.0110.00715.20
7.2.170.0000.01415.23
7.2.130.0100.00317.01
7.2.120.0070.00417.24
7.2.110.0120.00017.10
7.2.100.0110.00417.17
7.2.90.0030.00717.18
7.2.80.0060.00917.15
7.2.70.0000.01416.95
7.2.60.0090.00817.01
7.2.50.0100.00717.07
7.2.40.0060.01017.20
7.2.30.0040.01117.11
7.2.20.0060.00917.15
7.2.10.0100.00717.20
7.2.00.0140.00317.21
7.1.330.0060.00915.62
7.1.320.0030.01015.96
7.1.310.0070.00715.75
7.1.300.0110.00415.75
7.1.290.0030.01015.89
7.1.280.0030.00715.87
7.1.270.0040.00415.76
7.1.260.0000.01216.00
7.1.250.0080.00315.79
7.1.200.0070.00716.14
7.1.70.0040.00417.46
7.1.60.0030.01717.58
7.1.30.0170.07038.30
7.1.20.0400.05738.25
7.1.10.0830.06320.38
7.1.00.1100.06720.54
7.0.200.0060.01216.95
7.0.170.0100.08021.88
7.0.160.1130.07719.93
7.0.150.0900.05720.02
7.0.140.1430.05020.14
7.0.130.1230.05019.95
7.0.120.1070.06319.97
7.0.110.1300.05020.11
7.0.100.0900.06020.00
7.0.90.0870.04719.97
7.0.80.0700.05020.02
7.0.70.0970.05720.16
7.0.60.0930.05720.05
7.0.50.0830.04720.05
7.0.40.0930.06020.05
7.0.30.1070.06019.98
7.0.20.1600.06020.04
7.0.10.0700.05720.01
7.0.00.0830.05719.89

preferences:
65.77 ms | 401 KiB | 5 Q