3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "this.is.a.test.to.see.how.preg_split.can.be.used.for.this"; var_export( preg_split( '/\.[^.]*\K\./', $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.3.80.0050.00517.97
8.3.70.0090.00918.43
8.3.60.0130.00416.75
8.3.50.0100.01016.70
8.3.40.0130.00721.67
8.3.30.0110.00418.79
8.3.20.0120.00624.18
8.3.10.0100.00324.66
8.3.00.0040.00426.16
8.2.200.0060.00318.42
8.2.190.0130.00316.80
8.2.180.0090.01216.63
8.2.170.0120.00919.09
8.2.160.0060.01422.96
8.2.150.0070.00025.66
8.2.140.0060.00324.66
8.2.130.0070.00726.16
8.2.120.0040.00421.23
8.2.110.0190.00322.26
8.2.100.0170.00720.51
8.2.90.0160.00620.80
8.2.80.0120.00920.63
8.2.70.0100.01020.60
8.2.60.0030.01320.74
8.2.50.0130.01020.74
8.2.40.0070.00318.97
8.2.30.0030.00618.91
8.2.20.0220.00018.89
8.2.10.0210.00320.68
8.2.00.0100.01320.55
8.1.290.0090.00030.84
8.1.280.0120.00325.92
8.1.270.0140.00324.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0080.00320.39
8.1.230.0030.00720.43
8.1.220.0040.00720.54
8.1.210.0000.01121.46
8.1.200.0030.00720.33
8.1.190.0070.00318.38
8.1.180.0070.00318.57
8.1.170.0030.00718.61
8.1.160.0000.01018.47
8.1.150.0100.00018.76
8.1.140.0070.00318.57
8.1.130.0070.00320.42
8.1.120.0100.00020.43
8.1.110.0040.00720.41
8.1.100.0030.00720.25
8.1.90.0100.00020.19
8.1.80.0030.00720.40
8.1.70.0070.00318.50
8.1.60.0100.00018.76
8.1.50.0070.00318.70
8.1.40.0030.00718.73
8.1.30.0030.00618.59
8.1.20.0000.01018.74
8.1.10.0060.00320.26
8.1.00.0060.00320.50
8.0.300.0030.00719.63
8.0.290.0060.00319.66
8.0.280.0060.00319.56
8.0.270.0050.00519.53
8.0.260.0030.00719.75
8.0.250.0060.00319.83
8.0.240.0030.00719.66
8.0.230.0060.00319.59
8.0.220.0100.00019.71
8.0.210.0060.00319.68
8.0.200.0070.00319.64
8.0.190.0060.00319.89
8.0.180.0070.00319.61
8.0.170.0070.00319.82
8.0.160.0060.00319.70
8.0.150.0030.00719.68
8.0.140.0060.00319.59
8.0.130.0030.00619.59
8.0.120.0060.00319.63
8.0.110.0090.00019.78
8.0.100.0090.00319.89
8.0.90.0060.00617.96
8.0.80.0080.00417.86
8.0.70.0050.00517.86
8.0.60.0030.00617.93
8.0.50.0030.00617.83
8.0.30.0060.00318.02
8.0.20.0050.00518.01
8.0.10.0030.00618.07

preferences:
42.38 ms | 401 KiB | 5 Q