3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'word1&word2 !word3 word4 &word5'; var_export( preg_split('/ |(?=[&!])/', $string, 0, 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.120.0140.00524.33
8.4.110.0120.00518.50
8.4.100.0090.00920.63
8.4.90.0110.00820.49
8.4.80.0050.00417.95
8.4.70.0140.00618.50
8.4.60.0040.00418.72
8.4.50.0120.00720.49
8.4.40.0100.01019.75
8.4.30.0040.00718.56
8.4.20.0060.00317.97
8.4.10.0160.00320.20
8.3.250.0070.00618.82
8.3.240.0130.00617.04
8.3.230.0120.00616.64
8.3.220.0090.00818.81
8.3.210.0060.00918.46
8.3.200.0060.00316.88
8.3.190.0110.01217.18
8.3.180.0130.00616.72
8.3.170.0100.01017.16
8.3.160.0040.01518.65
8.3.150.0110.00416.85
8.3.140.0080.00017.29
8.3.130.0060.00318.73
8.3.120.0060.00318.74
8.3.110.0090.00020.94
8.3.100.0120.00324.06
8.3.90.0070.00026.77
8.3.80.0090.00016.63
8.3.70.0000.01516.63
8.3.60.0120.00418.56
8.3.50.0090.00620.25
8.3.40.0130.00719.07
8.3.30.0030.01019.21
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0030.00526.16
8.2.290.0090.00720.50
8.2.280.0040.00518.42
8.2.270.0060.00317.39
8.2.260.0130.00618.69
8.2.250.0120.00618.46
8.2.240.0040.00417.18
8.2.230.0130.00622.58
8.2.220.0060.00337.54
8.2.210.0130.00726.77
8.2.200.0100.00016.88
8.2.190.0070.01116.75
8.2.180.0120.00625.92
8.2.170.0110.00419.02
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0040.00420.89
8.2.110.0030.00621.30
8.2.100.0040.00819.89
8.2.90.0040.00419.23
8.2.80.0060.00317.97
8.2.70.0040.00417.75
8.2.60.0050.00317.80
8.2.50.0030.00618.07
8.2.40.0040.00418.04
8.2.30.0000.00718.13
8.2.20.0000.00820.45
8.2.10.0000.00718.00
8.2.00.0050.00519.32
8.1.330.0120.00722.00
8.1.320.0100.00915.89
8.1.310.0060.00318.52
8.1.300.0080.00017.78
8.1.290.0060.00318.88
8.1.280.0070.01025.92
8.1.270.0060.00323.92
8.1.260.0080.00026.35
8.1.250.0000.01028.09
8.1.240.0070.00319.34
8.1.230.0000.01122.13
8.1.220.0070.00317.74
8.1.210.0060.00318.77
8.1.200.0050.00517.47
8.1.190.0040.00417.35
8.1.180.0100.00018.10
8.1.170.0020.00718.71
8.1.160.0000.00818.96
8.1.150.0040.00418.72
8.1.140.0050.00317.64
8.1.130.0030.00318.86
8.1.120.0000.00717.44
8.1.110.0050.00217.52
8.1.100.0000.00717.54
8.1.90.0000.00717.45
8.1.80.0050.00217.52
8.1.70.0020.00517.43
8.1.60.0000.00917.59
8.1.50.0030.00617.61
8.1.40.0000.00817.64
8.1.30.0080.00517.70
8.1.20.0160.00317.44
8.1.10.0170.00317.32
8.1.00.0070.00717.41
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0030.00620.12
8.0.270.0040.00418.14
8.0.260.0030.00318.31
8.0.250.0040.00417.00
8.0.240.0030.00316.98
8.0.230.0070.00017.01
8.0.220.0000.00817.08
8.0.210.0040.00417.04
8.0.200.0020.00517.10
8.0.190.0060.00317.08
8.0.180.0000.00717.05
8.0.170.0000.00817.02
8.0.160.0030.00717.00
8.0.150.0030.00816.83
8.0.140.0080.00416.95
8.0.130.0100.00016.88
8.0.120.0040.00717.05
8.0.110.0080.00317.05
8.0.100.0040.00817.11
8.0.90.0120.00416.88
8.0.80.0170.00417.00
8.0.70.0160.00416.84
8.0.60.0060.01116.98
8.0.50.0110.00716.95
8.0.30.0170.00017.02
8.0.20.0160.00617.19
8.0.10.0170.00617.02
7.4.330.0050.00015.55
7.4.320.0030.00316.78
7.4.300.0030.00316.67
7.4.290.0070.00016.74
7.4.280.0110.00516.61
7.4.270.0140.00316.78
7.4.260.0040.01316.79
7.4.250.0090.00516.78
7.4.240.0090.00616.62
7.4.230.0090.00516.68
7.4.220.0160.00316.74
7.4.210.0070.00716.67
7.4.200.0220.00016.84
7.4.190.0150.00716.74
7.4.180.0170.00716.78
7.4.160.0120.00816.64
7.4.150.0140.00716.59
7.4.140.0200.00016.52
7.4.130.0150.00816.50
7.4.120.0140.00916.64
7.4.110.0150.00516.56
7.4.100.0170.00316.63
7.4.90.0130.00716.52
7.4.80.0180.00316.58
7.4.70.0170.00216.48
7.4.60.0110.00816.65
7.4.50.0060.01316.44
7.4.40.0170.00316.38
7.4.30.0180.00216.49
7.4.20.0140.00416.57
7.4.10.0130.00516.38
7.4.00.0110.00516.50

preferences:
32.05 ms | 403 KiB | 5 Q