3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "Some text [many][more][other][tags][here] and maybe some text here?"; $split = explode(' ', strstr($input, '['), 2); var_export($split); echo "\n----------------\n"; $split[0] = preg_split('~]\K~', $split[0], -1, PREG_SPLIT_NO_EMPTY); var_export($split);

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.0050.00424.26
8.4.110.0090.01122.64
8.4.100.0130.00918.80
8.4.90.0110.00919.09
8.4.80.0050.00319.97
8.4.70.0120.00818.19
8.4.60.0090.01218.64
8.4.50.0130.00819.52
8.4.40.0100.01017.85
8.4.30.0130.00717.66
8.4.20.0100.01017.98
8.4.10.0100.00717.76
8.3.250.0100.00818.80
8.3.240.0040.00616.95
8.3.230.0100.00916.83
8.3.220.0050.00319.00
8.3.210.0100.01016.57
8.3.200.0060.00216.54
8.3.190.0140.00516.85
8.3.180.0100.00818.77
8.3.170.0150.00316.59
8.3.160.0120.00616.93
8.3.150.0140.00416.98
8.3.140.0070.00316.91
8.3.130.0060.00318.68
8.3.120.0080.00820.61
8.3.110.0030.00620.94
8.3.100.0160.00324.06
8.3.90.0100.00026.77
8.3.80.0110.00718.56
8.3.70.0000.01516.86
8.3.60.0090.01218.43
8.3.50.0120.00418.43
8.3.40.0110.00318.79
8.3.30.0000.01418.96
8.3.20.0070.00021.90
8.3.10.0080.00023.67
8.3.00.0050.00323.67
8.2.290.0110.00820.65
8.2.280.0130.00618.62
8.2.270.0150.00017.25
8.2.260.0040.01516.45
8.2.250.0080.00016.95
8.2.240.0030.00518.96
8.2.230.0070.00322.58
8.2.220.0080.00837.54
8.2.210.0090.00326.77
8.2.200.0040.00816.50
8.2.190.0090.00916.75
8.2.180.0100.00716.88
8.2.170.0120.00419.25
8.2.160.0090.00622.96
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0110.00720.08
8.2.110.0140.00321.17
8.2.100.0040.00818.03
8.2.90.0000.00819.34
8.2.80.0080.00417.97
8.2.70.0000.00817.88
8.2.60.0000.00918.05
8.2.50.0050.00518.07
8.2.40.0000.00818.16
8.2.30.0040.00417.96
8.2.20.0020.00518.02
8.2.10.0040.00418.15
8.2.00.0040.00417.95
8.1.330.0100.00921.60
8.1.320.0090.01016.29
8.1.310.0120.00618.34
8.1.300.0100.00016.17
8.1.290.0090.00030.84
8.1.280.0090.00625.92
8.1.270.0080.00023.84
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0070.00320.67
8.1.230.0110.00021.03
8.1.220.0070.00317.76
8.1.210.0070.00418.87
8.1.200.0050.00517.34
8.1.190.0000.00917.35
8.1.180.0090.00018.10
8.1.170.0040.00918.48
8.1.160.0040.00418.76
8.1.150.0070.00019.02
8.1.140.0040.00417.65
8.1.130.0000.00719.04
8.1.120.0080.00017.57
8.1.110.0050.00317.42
8.1.100.0070.00017.50
8.1.90.0030.00617.54
8.1.80.0040.00417.43
8.1.70.0000.00717.55
8.1.60.0060.00317.65
8.1.50.0050.00317.61
8.1.40.0030.00617.56
8.1.30.0030.00517.68
8.1.20.0070.00017.76
8.1.10.0000.00817.63
8.1.00.0000.01017.61
8.0.300.0000.00820.02
8.0.290.0140.00016.63
8.0.280.0000.00718.38
8.0.270.0040.00417.20
8.0.260.0030.00317.15
8.0.250.0070.00017.10
8.0.240.0040.00416.98
8.0.230.0000.00717.14
8.0.220.0040.00416.92
8.0.210.0030.00317.00
8.0.200.0030.00317.14
8.0.190.0080.00017.11
8.0.180.0000.00817.07
8.0.170.0040.00417.04
8.0.160.0040.00417.16
8.0.150.0030.00617.05
8.0.140.0040.00416.88
8.0.130.0050.00213.44
8.0.120.0040.00417.02
8.0.110.0050.00216.93
8.0.100.0070.00017.07
8.0.90.0040.00417.03
8.0.80.0100.00717.03
8.0.70.0030.00516.92
8.0.60.0040.00417.01
8.0.50.0040.00416.92
8.0.30.0100.00817.28
8.0.20.0160.00617.47
8.0.10.0070.00016.90
8.0.00.0120.00517.05
7.4.330.0000.00615.55
7.4.320.0030.00316.66
7.4.300.0060.00016.75
7.4.290.0070.00016.55
7.4.280.0000.00716.53
7.4.270.0000.00716.73
7.4.260.0000.00816.72
7.4.250.0030.00616.69
7.4.240.0030.00316.77
7.4.230.0030.00316.75
7.4.220.0060.00316.45
7.4.210.0110.00716.74
7.4.200.0070.00016.85
7.4.160.0100.00516.55
7.4.140.0110.00917.86
7.4.130.0100.00716.91
7.4.120.0080.00916.72
7.4.110.0100.00716.79
7.4.100.0040.01216.64
7.4.90.0110.00616.64
7.4.80.0160.00619.39
7.4.70.0180.00416.80
7.4.60.0120.00616.72
7.4.50.0110.00716.41
7.4.40.0080.00816.43
7.4.10.0050.01215.15
7.4.00.0110.00515.08
7.3.330.0000.00613.23
7.3.320.0000.00613.24
7.3.310.0030.00316.35
7.3.300.0040.00416.32
7.3.290.0030.00316.54
7.3.280.0070.01016.42
7.3.260.0090.00916.41
7.3.240.0090.01016.67
7.3.230.0140.00316.52
7.3.210.0140.00316.75
7.3.200.0030.01616.77
7.3.190.0100.00716.58
7.3.180.0060.00916.76
7.3.170.0130.00416.82
7.3.160.0090.01016.55
7.3.130.0070.00914.92
7.3.120.0060.00914.82
7.3.110.0050.01414.86
7.3.100.0030.01115.04
7.3.90.0060.01014.89
7.3.80.0080.00814.98
7.3.70.0090.00515.03
7.3.60.0030.01014.79
7.3.50.0050.00714.87
7.3.40.0020.00915.01
7.3.30.0080.00514.91
7.3.20.0030.01216.79
7.3.10.0070.00716.62
7.3.00.0100.00316.63
7.2.330.0100.00716.95
7.2.320.0070.01016.88
7.2.310.0110.00617.02
7.2.300.0070.01016.93
7.2.290.0110.00716.91
7.2.260.0050.01215.33
7.2.250.0050.01215.39
7.2.240.0080.00815.35
7.2.230.0100.00515.13
7.2.220.0110.01015.40
7.2.210.0080.00815.04
7.2.200.0100.00615.11
7.2.190.0070.00915.10
7.2.180.0050.00615.05
7.2.170.0050.00715.19
7.2.160.0040.01315.39
7.2.150.0050.00717.03
7.2.140.0040.01017.16
7.2.130.0060.01116.88
7.2.120.0070.00517.14
7.2.110.0050.00817.00
7.2.100.0060.00716.93
7.2.90.0060.00917.01
7.2.80.0080.00817.11
7.2.70.0090.00617.03
7.2.60.0110.00417.03
7.2.50.0080.00717.00
7.2.40.0340.00817.29
7.2.30.0110.00817.41
7.2.20.0070.01117.37
7.2.10.0100.01117.25
7.2.00.0070.01117.28
7.1.330.0100.00315.93
7.1.320.0060.00916.08
7.1.310.0030.01115.85
7.1.300.0080.00616.04
7.1.290.0040.00815.91
7.1.280.0060.00715.97
7.1.270.0040.00815.96
7.1.260.0050.00915.93
7.1.250.0060.00715.85
7.1.240.0030.00815.90
7.1.230.0050.00516.07
7.1.220.0030.00915.74
7.1.210.0040.00915.88
7.1.200.0070.00315.96
7.1.190.0060.00816.03
7.1.180.0000.01015.89
7.1.170.0040.00916.03
7.1.160.0060.01216.33
7.1.150.0090.00916.16
7.1.140.0120.01116.27
7.1.130.0100.00716.27
7.1.120.0080.01116.24
7.1.110.2500.01015.99
7.1.100.2420.00716.10
7.1.90.1790.01116.00
7.1.80.1620.00816.05
7.1.70.1910.00915.77
7.1.60.0740.01021.76
7.1.50.0170.01321.78
7.1.40.0210.01121.58
7.1.30.0120.01521.58
7.1.20.0210.00521.59
7.1.10.0100.01215.41
7.1.00.0090.01015.67
7.0.330.0050.00815.73
7.0.320.0060.00815.76
7.0.310.0040.00415.27
7.0.300.0020.00915.64
7.0.290.0060.00815.66
7.0.280.0050.01215.61
7.0.270.0080.00715.48
7.0.260.0080.00615.48
7.0.250.0080.00915.62
7.0.240.0050.00715.46
7.0.230.0020.00815.72
7.0.220.0050.00615.80
7.0.210.0080.00715.60
7.0.200.0070.00715.57
7.0.190.0050.00915.51
7.0.180.0050.00715.52
7.0.170.0030.00915.68
7.0.160.0040.00915.50
7.0.150.0080.00715.55
7.0.140.0030.01015.46
7.0.130.0070.00615.44
7.0.120.0030.01115.63
7.0.110.0060.00615.54
7.0.100.0110.00615.49
7.0.90.0020.01315.71
7.0.80.0070.00315.78
7.0.70.0070.00315.57
7.0.60.0070.00515.36
7.0.50.0060.00515.84
7.0.40.0040.00713.48
7.0.30.0070.00813.54
7.0.20.0040.00813.63
7.0.10.0050.00613.56
7.0.00.0030.00613.64
5.6.400.0020.01414.53
5.6.390.0090.00614.72
5.6.380.0000.01214.49
5.6.370.0040.00514.53
5.6.360.0080.00514.67
5.6.350.0020.01114.69
5.6.340.0090.00714.37
5.6.330.0090.00414.34
5.6.320.0030.01014.19
5.6.310.0080.00514.59
5.6.300.0030.00914.42
5.6.290.0070.00514.50
5.6.280.0080.00614.39
5.6.270.0040.00714.29
5.6.260.0060.00914.15
5.6.250.0050.01214.67
5.6.240.0020.01314.42
5.6.230.0080.00514.45
5.6.220.0050.00814.32
5.6.210.0030.01314.33
5.6.200.0020.01014.44
5.6.190.0030.01014.35
5.6.180.0060.01114.45
5.6.170.0050.00914.58
5.6.160.0080.00314.43
5.6.150.0030.00914.42
5.6.140.0060.00914.49
5.6.130.0110.00314.32
5.6.120.0100.00314.66
5.6.110.0030.00814.39
5.6.100.0040.00814.46
5.6.90.0050.00714.41
5.6.80.0070.00714.29
5.6.70.0080.00514.55
5.6.60.0070.00914.37
5.6.50.0050.00814.33
5.6.40.0030.00814.52
5.6.30.0050.00814.24
5.6.20.0050.01014.50
5.6.10.0030.01214.40
5.6.00.0070.00614.46

preferences:
29.43 ms | 403 KiB | 5 Q