3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Apple Green Yellow Four Seven Gray'; var_export( preg_split('/(?:\S*\K ){2}/', $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.5.00.0150.00720.24
8.4.150.0030.00014.05
8.4.140.0120.00917.57
8.4.130.0120.00917.79
8.4.120.0150.00520.49
8.4.110.0100.01018.98
8.4.100.0040.00520.49
8.4.90.0130.00818.79
8.4.80.0150.00518.79
8.4.70.0040.00518.30
8.4.60.0140.00618.95
8.4.50.0090.01020.36
8.4.40.0060.01317.97
8.4.30.0160.00320.59
8.4.20.0080.01217.95
8.4.10.0140.00319.33
8.3.280.0190.00618.37
8.3.270.0100.01016.54
8.3.260.0130.00616.43
8.3.250.0120.00818.85
8.3.240.0050.00416.61
8.3.230.0140.00216.66
8.3.220.0130.00518.82
8.3.210.0080.00816.69
8.3.200.0080.00116.63
8.3.190.0070.00817.17
8.3.180.0090.01116.73
8.3.170.0070.01120.59
8.3.160.0030.01317.05
8.3.150.0060.00319.11
8.3.140.0040.00419.03
8.3.130.0050.00318.29
8.3.120.0030.00618.75
8.3.110.0060.01320.94
8.3.100.0040.00424.06
8.3.90.0170.00326.77
8.3.80.0000.00917.97
8.3.70.0140.00416.75
8.3.60.0090.00618.44
8.3.50.0090.00616.63
8.3.40.0060.00921.90
8.3.30.0120.00722.40
8.3.20.0090.00925.66
8.3.10.0160.00325.66
8.3.00.0190.00025.66
8.2.290.0030.00620.59
8.2.280.0060.00518.44
8.2.270.0060.01317.23
8.2.260.0110.00716.57
8.2.250.0080.00018.77
8.2.240.0060.01018.88
8.2.230.0040.00422.58
8.2.220.0060.00637.54
8.2.210.0150.00326.77
8.2.200.0060.00616.88
8.2.190.0110.00316.58
8.2.180.0100.01018.54
8.2.170.0110.01118.89
8.2.160.0100.00322.96
8.2.150.0040.01525.66
8.2.140.0060.01225.66
8.2.130.0090.00925.66
8.2.120.0110.00825.66
8.2.110.0070.01125.66
8.2.100.0120.00625.66
8.2.90.0110.00725.66
8.2.80.0100.01025.66
8.2.70.0110.01125.66
8.2.60.0150.00025.66
8.2.50.0080.00825.66
8.2.40.0150.00025.66
8.2.30.0120.00325.66
8.2.20.0080.00825.66
8.2.10.0120.00325.66
8.2.00.0100.00725.66
8.1.330.0050.00321.93
8.1.320.0120.00716.46
8.1.310.0030.00618.20
8.1.300.0060.00318.61
8.1.290.0100.00030.84
8.1.280.0150.00725.92
8.1.270.0090.00625.66
8.1.260.0100.00725.66
8.1.250.0140.00025.66
8.1.240.0090.00925.66
8.1.230.0080.00825.66
8.1.220.0120.00625.66
8.1.210.0070.01025.66
8.1.200.0070.00725.66
8.1.190.0090.00625.66
8.1.180.0130.00725.66
8.1.170.0130.00725.66
8.1.160.0190.00425.66
8.1.150.0090.00625.66
8.1.140.0100.00625.66
8.1.130.0070.01125.66
8.1.120.0070.00725.66
8.1.110.0070.00725.66
8.1.100.0150.00025.66
8.1.90.0070.00725.66
8.1.80.0150.00025.66
8.1.70.0060.01025.66
8.1.60.0080.00825.66
8.1.50.0060.00925.66
8.1.40.0090.00625.66
8.1.30.0130.00325.66
8.1.20.0070.00725.66
8.1.10.0190.00025.66
8.1.00.0060.01025.66

preferences:
35.76 ms | 403 KiB | 5 Q