3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "hello this is a space"; var_export( preg_split('/.*\S\K +/', $str) );

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.5.00.0100.01019.97
8.4.150.0020.00014.05
8.4.140.0150.00617.72
8.4.130.0110.00818.96
8.4.120.0120.00624.00
8.4.110.0100.01122.30
8.4.100.0060.00217.75
8.4.90.0060.00418.47
8.4.80.0070.01018.02
8.4.70.0080.01117.88
8.4.60.0120.01018.56
8.4.50.0070.00920.28
8.4.40.0120.00819.54
8.4.30.0090.01020.35
8.4.20.0070.01117.89
8.4.10.0030.00620.47
8.3.280.0100.01118.56
8.3.270.0170.00316.42
8.3.260.0100.00916.66
8.3.250.0140.00519.01
8.3.240.0090.01116.60
8.3.230.0120.00716.81
8.3.220.0030.00417.07
8.3.210.0070.01116.73
8.3.200.0050.00316.57
8.3.190.0090.00917.15
8.3.180.0070.00118.61
8.3.170.0110.00717.23
8.3.160.0100.01018.84
8.3.150.0110.00816.66
8.3.140.0060.00316.70
8.3.130.0000.00818.50
8.3.120.0040.00418.88
8.3.110.0030.00616.65
8.3.100.0040.00416.55
8.3.90.0070.00026.77
8.3.80.0060.00316.75
8.3.70.0150.00316.63
8.3.60.0070.01118.55
8.3.50.0120.00920.01
8.3.40.0110.00319.06
8.3.30.0100.00619.00
8.3.20.0080.00024.18
8.3.10.0050.00324.66
8.3.00.0110.00426.16
8.2.290.0110.00820.60
8.2.280.0110.00920.60
8.2.270.0130.00616.67
8.2.260.0080.00317.36
8.2.250.0140.00418.76
8.2.240.0130.00716.46
8.2.230.0080.00020.94
8.2.220.0130.00624.06
8.2.210.0060.00326.77
8.2.200.0040.00416.50
8.2.190.0110.01116.88
8.2.180.0150.00425.92
8.2.170.0120.00318.93
8.2.160.0140.00022.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00820.07
8.2.110.0070.00320.57
8.2.100.0090.00317.78
8.2.90.0030.00517.88
8.2.80.0030.00618.90
8.2.70.0040.00417.75
8.2.60.0030.00617.63
8.2.50.0060.00317.63
8.2.40.0080.00019.73
8.2.30.0000.00718.13
8.2.20.0050.00320.34
8.2.10.0040.00417.93
8.2.00.0040.00419.26
8.1.330.0120.00722.08
8.1.320.0060.01316.40
8.1.310.0000.00718.62
8.1.300.0080.00018.47
8.1.290.0030.00630.84
8.1.280.0080.00825.92
8.1.270.0070.00023.99
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0040.00420.94
8.1.230.0040.00819.10
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.47
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0040.00417.62
8.1.160.0000.00818.72
8.1.150.0040.00418.71
8.1.140.0070.00317.43
8.1.130.0070.00018.83
8.1.120.0000.00717.53
8.1.110.0000.00717.44
8.1.100.0040.00417.52
8.1.90.0050.00617.52
8.1.80.0030.00617.54
8.1.70.0080.00017.54
8.1.60.0040.00517.55
8.1.50.0070.00717.54
8.1.40.0030.00717.63
8.1.30.0110.00517.70
8.1.20.0160.00617.58
8.1.10.0200.00517.58
8.1.00.0170.00617.43
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0070.00018.36
8.0.270.0000.00716.91
8.0.260.0000.00618.40
8.0.250.0030.00317.08
8.0.240.0040.00416.93
8.0.230.0070.00017.03
8.0.220.0060.00216.95
8.0.210.0110.00016.89
8.0.200.0080.00316.89
8.0.190.0060.00516.98
8.0.180.0100.00216.99
8.0.170.0040.00316.96
8.0.160.0190.00316.91
8.0.150.0180.00216.76
8.0.140.0150.00316.83
8.0.130.0120.00516.82
8.0.120.0180.00016.95
8.0.110.0120.00416.89
8.0.100.0090.00816.80
8.0.90.0140.00316.88
8.0.80.0090.00816.95
8.0.70.0120.00616.85
8.0.60.0150.00316.79
8.0.50.0150.00216.78
8.0.30.0140.00416.87
8.0.20.0120.00516.88
8.0.10.0110.00516.99
7.4.330.0000.00515.55
7.4.320.0000.00616.73
7.4.300.0030.00516.69
7.4.290.0050.00716.60
7.4.280.0160.00116.59
7.4.270.0130.00716.67
7.4.260.0130.00716.53
7.4.250.0130.00616.55
7.4.240.0150.00316.58
7.4.230.0140.00616.66
7.4.220.0110.00516.62
7.4.210.0070.00916.73
7.4.200.0100.00716.58
7.4.190.0130.00516.71
7.4.180.0130.00416.73
7.4.160.0140.00316.61
7.4.150.0090.00816.67
7.4.140.0130.00516.62
7.4.130.0160.00016.53
7.4.120.0090.00416.55
7.4.110.0050.00716.51
7.4.100.0050.00816.67
7.4.90.0040.00816.56
7.4.80.0100.00016.54
7.4.70.0080.00516.50
7.4.60.0080.00216.53
7.4.50.0050.00616.48
7.4.40.0080.00016.43
7.4.30.0060.00216.56
7.4.20.0010.00716.46
7.4.10.0060.00316.53
7.4.00.0070.00216.41

preferences:
29.94 ms | 403 KiB | 5 Q