3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is my test case for an example."; var_export( preg_split( "/(?=(\S+ \S+))\S+ (?:\S+$)?/", $string, 0, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY ) );

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.0120.00917.72
8.4.120.0100.01020.67
8.4.110.0120.00718.96
8.4.100.0140.00617.90
8.4.90.0040.00520.90
8.4.80.0100.01120.73
8.4.70.0110.00818.83
8.4.60.0120.00920.70
8.4.50.0110.01019.87
8.4.40.0090.01220.48
8.4.30.0110.00422.36
8.4.20.0180.00419.72
8.4.10.0060.00921.85
8.3.260.0140.00716.61
8.3.250.0080.00819.11
8.3.240.0100.00516.52
8.3.230.0140.00516.64
8.3.220.0100.00818.83
8.3.210.0120.00316.69
8.3.200.0070.00216.63
8.3.190.0090.00916.91
8.3.180.0110.00916.67
8.3.170.0090.00017.11
8.3.160.0110.00716.82
8.3.150.0070.00720.46
8.3.140.0070.00716.47
8.3.130.0040.00418.50
8.3.120.0030.00620.75
8.3.110.0040.00416.42
8.3.100.0040.01116.50
8.3.90.0080.00016.38
8.3.80.0000.01017.97
8.3.70.0100.01316.47
8.3.60.0110.00716.88
8.3.50.0150.00618.53
8.3.40.0130.00723.64
8.3.30.0030.01218.71
8.3.20.0040.00424.18
8.3.10.0030.00624.66
8.3.00.0090.00026.16
8.2.290.0110.00817.28
8.2.280.0100.01018.22
8.2.270.0150.00417.31
8.2.260.0120.00619.99
8.2.250.0080.00018.41
8.2.240.0090.00919.01
8.2.230.0050.00320.94
8.2.220.0120.00924.06
8.2.210.0000.00826.77
8.2.200.0060.00318.54
8.2.190.0100.01416.88
8.2.180.0150.00018.66
8.2.170.0140.00018.79
8.2.160.0030.01022.96
8.2.150.0110.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.00819.66
8.2.110.0030.00622.42
8.2.100.0090.00317.72
8.2.90.0040.00417.75
8.2.80.0050.00318.81
8.2.70.0060.00317.75
8.2.60.0140.00417.50
8.2.50.0180.00017.38
8.2.40.0000.01617.73
8.2.30.0080.00817.75
8.2.20.0100.00617.63
8.2.10.0080.00817.38
8.2.00.0120.00417.24
8.1.330.0110.00816.44
8.1.320.0070.01222.08
8.1.310.0050.00316.73
8.1.300.0080.00818.04
8.1.290.0060.00318.88
8.1.280.0180.00025.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00024.02
8.1.230.0000.01119.09
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0100.00017.48
8.1.190.0110.00517.00
8.1.180.0080.00817.11
8.1.170.0090.00617.36
8.1.160.0120.00417.25
8.1.150.0130.00317.25
8.1.140.0090.00617.13
8.1.130.0090.00917.25
8.1.120.0090.00917.50
8.1.110.0120.00717.50
8.1.100.0080.00817.25
8.1.90.0000.01517.22
8.1.80.0160.00217.36
8.1.70.0120.00317.13
8.1.60.0130.00517.63
8.1.50.0090.00917.38
8.1.40.0120.00617.38
8.1.30.0090.00917.35
8.1.20.0170.00017.63
8.1.10.0180.00017.38
8.1.00.0100.00717.38
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0110.00516.52
8.0.270.0140.00316.59
8.0.260.0120.00416.63
8.0.250.0140.00316.52
8.0.240.0160.00016.63
8.0.230.0140.00316.63
8.0.220.0180.00016.59
8.0.210.0110.00516.63
8.0.200.0160.00016.63
8.0.190.0100.00716.52
8.0.180.0150.00316.52
8.0.170.0140.00316.75
8.0.160.0120.00416.52
8.0.150.0180.00016.63
8.0.140.0110.00516.63
8.0.130.0110.00516.63
8.0.120.0120.00416.52
8.0.110.0170.00016.75
8.0.100.0100.00716.63
8.0.90.0170.00016.75
8.0.80.0160.00016.63
8.0.70.0110.00616.75
8.0.60.0110.00516.60
8.0.50.0070.01016.52
8.0.30.0130.00316.52
8.0.20.0170.00316.75
8.0.10.0130.00316.63

preferences:
55.78 ms | 403 KiB | 5 Q