3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "<p>&nbsp;Lorem ipsum dolor [State] sit amet, consectetur [City] adipisicing [TopJob7] elit, sed do eiusmod [JobType]</p>"; $tagsReplace = preg_split('/(\[[^]]+\])/', $value, -1, PREG_SPLIT_DELIM_CAPTURE); print_r($tagsReplace);

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.20.0040.01120.80
8.4.10.0130.00620.47
8.3.150.0100.01016.66
8.3.140.0140.00717.22
8.3.130.0000.00816.72
8.3.120.0040.00718.59
8.3.110.0050.00320.94
8.3.100.0200.00820.09
8.3.90.0150.00821.43
8.3.80.0090.00817.34
8.3.70.0200.00016.63
8.3.60.0130.00517.45
8.3.50.0120.00416.90
8.3.40.0140.00618.20
8.3.30.0150.00118.13
8.3.20.0130.00018.99
8.3.10.0060.00619.72
8.3.00.0110.00219.11
8.2.270.0090.00918.58
8.2.260.0040.01116.87
8.2.250.0090.00616.95
8.2.240.0000.00917.08
8.2.230.0070.00422.58
8.2.220.0080.00927.04
8.2.210.0100.00521.56
8.2.200.0100.00417.64
8.2.190.0170.00017.46
8.2.180.0090.00917.27
8.2.170.0110.00620.36
8.2.160.0120.00519.82
8.2.150.0110.00320.90
8.2.140.0220.00420.89
8.2.130.0190.00621.77
8.2.120.0200.00619.27
8.2.110.0250.00719.25
8.2.100.0170.00617.73
8.2.90.0090.00617.77
8.2.80.0090.00717.67
8.2.70.0110.00317.53
8.2.60.0100.00417.81
8.2.50.0100.00417.74
8.2.40.0090.00618.30
8.2.30.0100.00318.42
8.2.20.0050.00717.58
8.2.10.0080.00618.40
8.2.00.0110.00217.84
8.1.310.0000.00816.70
8.1.300.0080.00020.20
8.1.290.0100.00517.56
8.1.280.0160.00321.02
8.1.270.0090.00520.48
8.1.260.0090.00621.86
8.1.250.0100.00522.73
8.1.240.0150.00020.60
8.1.230.0140.00119.99
8.1.220.0080.00517.55
8.1.210.0120.00017.97
8.1.200.0110.00317.22
8.1.190.0080.00517.12
8.1.180.0130.00417.67
8.1.170.0070.00618.06
8.1.160.0090.00518.03
8.1.150.0120.00618.04
8.1.140.0110.00717.97
8.1.130.0170.00818.58
8.1.120.0190.00617.40
8.1.110.0110.00317.40
8.1.100.0150.00817.39
8.1.90.0170.00617.40
8.1.80.0140.00717.43
8.1.70.0160.00417.42
8.1.60.0160.00617.43
8.1.50.0160.00617.42
8.1.40.0150.00717.27
8.1.30.0170.00617.50
8.1.20.0180.00617.49
8.1.10.0180.00517.35
8.1.00.0110.01117.27
8.0.300.0180.00818.02
8.0.290.0160.00816.67
8.0.280.0140.01117.34
8.0.270.0220.00216.66
8.0.260.0170.00917.44
8.0.250.0180.00516.71
8.0.240.0180.00416.76
8.0.230.0150.00916.78
8.0.220.0160.00316.56
8.0.210.0060.00716.73
8.0.200.0110.00316.65
8.0.190.0110.00316.84
8.0.180.0110.00216.89
8.0.170.0080.00516.73
8.0.160.0080.00516.59
8.0.150.0050.00816.81
8.0.140.0170.00316.73
8.0.130.0130.00515.50
8.0.120.0150.00516.74
8.0.110.0130.00616.60
8.0.100.0120.00516.61
8.0.90.0090.00516.77
8.0.80.0120.00816.72
8.0.70.0110.00216.56
8.0.60.0170.00116.59
8.0.50.0150.00616.65
8.0.30.0160.00616.92
8.0.20.0200.01016.77
8.0.10.0170.00616.78
8.0.00.0110.01116.83
7.4.330.0210.00016.50
7.4.320.0120.00916.43
7.4.300.0150.00316.47
7.4.290.0120.00616.47
7.4.280.0110.00916.40
7.4.270.0160.00316.52
7.4.260.0110.00716.42
7.4.250.0140.00516.41
7.4.240.0110.00716.45
7.4.230.0140.00716.35
7.4.220.0070.01216.61
7.4.210.0090.00916.57
7.4.200.0130.00516.46
7.4.190.0180.00416.43
7.4.180.0130.00316.47
7.4.160.0100.00816.48
7.4.150.0190.00616.51
7.4.140.0140.00816.21
7.4.130.0200.00416.38
7.4.120.0150.00716.19
7.4.110.0130.00916.55
7.4.100.0130.00816.44
7.4.90.0120.00816.27
7.4.80.0210.01017.05
7.4.70.0170.01016.40
7.4.60.0180.00616.36
7.4.50.0150.00616.41
7.4.40.0160.00716.36
7.4.30.0160.00716.21
7.4.20.0130.01016.28
7.4.10.0160.00616.25
7.4.00.0100.00815.88
7.3.330.0110.00614.92
7.3.320.0130.00515.21
7.3.310.0140.00516.18
7.3.300.0140.00415.99
7.3.290.0160.00516.04
7.3.280.0110.00616.17
7.3.270.0180.00516.05
7.3.260.0130.00616.28
7.3.250.0190.00416.00
7.3.240.0110.00816.17
7.3.230.0160.00616.13
7.3.220.0160.00915.91
7.3.210.0140.00716.04
7.3.200.0190.01016.11
7.3.190.0130.01016.09
7.3.180.0160.00816.13
7.3.170.0140.00916.02
7.3.160.0150.00916.16
7.3.150.0160.01116.02
7.3.140.0180.00516.24
7.3.130.0220.00515.95
7.3.120.0170.00516.11
7.3.110.0170.00616.22
7.3.100.0150.00816.07
7.3.90.0150.00716.20
7.3.80.0170.00416.24
7.3.70.0140.00916.08
7.3.60.0160.00616.09
7.3.50.0150.00716.16
7.3.40.0140.00716.33
7.3.30.0120.00815.87
7.3.20.0140.00717.05
7.3.10.0130.00717.11
7.3.00.0100.00817.04
7.2.340.0150.00716.40
7.2.330.0150.00716.40
7.2.320.0210.01116.37
7.2.310.0160.00816.32
7.2.300.0110.01216.39
7.2.290.0130.01116.41
7.2.280.0200.00316.46
7.2.270.0100.01316.31
7.2.260.0150.00716.37
7.2.250.0110.00916.28
7.2.240.0130.00916.34
7.2.230.0120.00616.39
7.2.220.0130.00616.29
7.2.210.0100.00816.30
7.2.200.0130.00616.35
7.2.190.0100.00916.31
7.2.180.0100.00716.32
7.2.170.0150.00416.44
7.2.160.0160.00716.06
7.2.150.0150.00817.31
7.2.140.0170.00617.27
7.2.130.0180.00617.21
7.2.120.0180.00717.12
7.2.110.0260.01217.29
7.2.100.0180.00617.29
7.2.90.0210.00717.37
7.2.80.0170.00617.27
7.2.70.0100.01117.32
7.2.60.0150.00717.37
7.2.50.0150.00917.26
7.2.40.0180.00517.42
7.2.30.0180.00817.29
7.2.20.0200.00417.32
7.2.10.0150.01517.35
7.2.00.0200.01117.32
7.1.330.0220.00816.24
7.1.320.0190.00816.38
7.1.310.0230.00416.36
7.1.300.0160.00916.28
7.1.290.0170.00416.41
7.1.280.0150.00716.35
7.1.270.0140.00516.30
7.1.260.0130.00616.17
7.1.250.0160.00716.15
7.1.240.0170.00916.32
7.1.230.0180.00716.35
7.1.220.0180.00616.33
7.1.210.0160.00616.36
7.1.200.0150.00916.36
7.1.190.0120.01216.43
7.1.180.0230.00516.21
7.1.170.0140.01016.27
7.1.160.0230.00616.24
7.1.150.0230.00516.38
7.1.140.0200.00916.34
7.1.130.0350.01316.32
7.1.120.0160.00516.27
7.1.110.0180.01016.39
7.1.100.0190.01216.38
7.1.90.0200.00916.29
7.1.80.0180.00716.40
7.1.70.0190.00516.31
7.1.60.0220.00916.41
7.1.50.0190.00616.38
7.1.40.0180.00716.44
7.1.30.0190.00616.48
7.1.20.0170.00916.46
7.1.10.0210.00516.38
7.1.00.0180.00916.31

preferences:
30.65 ms | 403 KiB | 5 Q