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+\K /", preg_replace( '/(?<= )(\S+ )\K/', '$1', $string ) ) );

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.0060.00418.31
8.4.120.0100.00717.78
8.4.110.0030.00520.03
8.4.100.0130.00717.82
8.4.90.0110.01020.65
8.4.80.0100.01218.80
8.4.70.0120.00718.82
8.4.60.0120.00918.54
8.4.50.0130.00917.84
8.4.40.0030.00619.68
8.4.30.0110.00820.68
8.4.20.0160.00317.98
8.4.10.0120.00923.66
8.3.260.0120.00716.83
8.3.250.0120.00816.72
8.3.240.0110.00916.62
8.3.230.0040.00516.66
8.3.220.0030.00419.01
8.3.210.0090.01016.60
8.3.200.0060.00216.53
8.3.190.0110.00817.09
8.3.180.0100.00816.47
8.3.170.0040.01517.20
8.3.160.0060.01216.74
8.3.150.0040.00418.84
8.3.140.0060.00320.55
8.3.130.0090.00018.71
8.3.120.0130.00620.61
8.3.110.0030.00620.94
8.3.100.0140.00716.89
8.3.90.0040.00418.30
8.3.80.0040.00416.50
8.3.70.0090.00616.75
8.3.60.0120.00916.63
8.3.50.0110.00420.27
8.3.40.0150.00022.08
8.3.30.0100.01018.72
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.290.0160.00416.82
8.2.280.0110.00720.54
8.2.270.0070.01017.16
8.2.260.0120.00620.90
8.2.250.0040.00416.71
8.2.240.0040.00417.19
8.2.230.0030.00622.58
8.2.220.0030.00624.06
8.2.210.0030.00726.77
8.2.200.0080.00418.23
8.2.190.0150.00616.63
8.2.180.0160.00025.92
8.2.170.0130.00718.94
8.2.160.0130.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0090.00021.18
8.2.110.0030.00620.47
8.2.100.0080.00418.03
8.2.90.0040.00418.03
8.2.80.0000.00917.97
8.2.70.0090.00017.75
8.2.60.0060.00317.80
8.2.50.0040.00418.05
8.2.40.0090.00018.22
8.2.30.0060.00317.96
8.2.20.0030.00519.21
8.2.10.0000.00717.92
8.2.00.0020.00519.20
8.1.330.0090.01016.26
8.1.320.0120.00817.86
8.1.310.0090.00016.69
8.1.300.0050.00320.34
8.1.290.0040.00730.84
8.1.280.0140.00725.92
8.1.270.0000.00824.66
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0070.00323.73
8.1.230.0000.01123.86
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0080.00317.47
8.1.190.0030.00617.35
8.1.180.0060.00618.10
8.1.170.0040.00420.11
8.1.160.0000.00718.84
8.1.150.0040.00418.71
8.1.140.0000.00717.63
8.1.130.0030.00518.95
8.1.120.0000.00717.45
8.1.110.0100.00617.55
8.1.100.0120.00417.55
8.1.90.0110.00517.51
8.1.80.0070.01117.51
8.1.70.0130.00417.55
8.1.60.0160.00317.59
8.1.50.0120.00617.56
8.1.40.0140.00317.55
8.1.30.0180.00017.76
8.1.20.0180.00017.60
8.1.10.0100.00517.55
8.1.00.0120.00417.39
8.0.300.0040.00419.73
8.0.290.0000.00716.88
8.0.280.0070.00018.40
8.0.270.0000.00717.22
8.0.260.0040.00418.50
8.0.250.0030.00316.99
8.0.240.0090.00617.11
8.0.230.0160.00016.98
8.0.220.0100.00316.98
8.0.210.0120.00416.92
8.0.200.0150.00017.00
8.0.190.0150.00017.10
8.0.180.0070.00417.03
8.0.170.0090.00517.07
8.0.160.0090.00617.10
8.0.150.0110.00416.80
8.0.140.0110.00316.80
8.0.130.0100.00616.88
8.0.120.0120.00416.89
8.0.110.0000.01416.95
8.0.100.0090.00616.89
8.0.90.0070.00817.01
8.0.80.0050.01016.91
8.0.70.0150.00017.00
8.0.60.0050.00916.93
8.0.50.0130.00317.04
8.0.30.0160.00016.89
8.0.20.0120.00417.09
8.0.10.0150.00017.01
7.4.330.0000.00515.55
7.4.320.0130.00416.73
7.4.300.0150.00216.63
7.4.290.0040.00816.61
7.4.280.0110.00016.45
7.4.270.0070.01016.63
7.4.260.0070.00816.53
7.4.250.0150.00416.64
7.4.240.0130.00316.71
7.4.230.0100.00516.61
7.4.220.0080.00616.51
7.4.210.0070.00716.77
7.4.200.0150.00016.63
7.4.190.0090.00516.78
7.4.180.0090.00616.79
7.4.160.0090.00616.53
7.4.150.0140.00016.69
7.4.140.0080.00516.62
7.4.130.0140.00016.45
7.4.120.0050.00916.59
7.4.110.0130.00016.65
7.4.100.0060.00616.60
7.4.90.0140.00016.69
7.4.80.0110.00416.65
7.4.70.0120.00216.60
7.4.60.0100.00316.56
7.4.50.0140.00016.58
7.4.40.0150.00016.56
7.4.30.0090.00616.60
7.4.20.0100.00416.46
7.4.10.0060.00616.52
7.4.00.0080.00516.56

preferences:
28.61 ms | 403 KiB | 5 Q