3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/\\[switch[^\\]]*\\]/'; $subject = 'こんにちは。[feedback]おはよう。[switch]ありがとうございました。[switchcase]さようなら。'; var_dump(preg_split($pattern, $subject));

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.60.0070.00718.43
8.3.50.0110.00418.07
8.3.40.0110.00719.02
8.3.30.0130.00318.67
8.3.20.0080.00020.77
8.3.10.0040.00419.23
8.3.00.0000.00823.48
8.2.180.0130.00618.66
8.2.170.0140.00322.96
8.2.160.0100.00322.25
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0080.00017.91
8.2.120.0050.00226.35
8.2.110.0080.00320.47
8.2.100.0040.00718.22
8.2.90.0030.00518.22
8.2.80.0040.00418.02
8.2.70.0050.00317.90
8.2.60.0060.00318.16
8.2.50.0050.00518.10
8.2.40.0000.00820.98
8.2.30.0070.00019.31
8.2.20.0040.00417.88
8.2.10.0000.00717.98
8.2.00.0070.00019.44
8.1.280.0070.00725.92
8.1.270.0000.00822.14
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.11
8.1.230.0090.00322.63
8.1.220.0080.00017.74
8.1.210.0060.00618.77
8.1.200.0000.01017.35
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0000.00818.77
8.1.160.0050.00318.72
8.1.150.0000.00718.72
8.1.140.0040.00417.59
8.1.130.0080.00018.90
8.1.120.0040.00417.56
8.1.110.0040.00417.53
8.1.100.0000.00817.54
8.1.90.0070.00017.50
8.1.80.0040.00417.39
8.1.70.0030.00317.55
8.1.60.0030.00617.55
8.1.50.0040.00417.49
8.1.40.0040.00417.60
8.1.30.0060.00317.79
8.1.20.0030.00517.64
8.1.10.0040.00417.55
8.1.00.0080.00017.45
8.0.300.0060.00319.82
8.0.290.0040.00416.75
8.0.280.0040.00418.39
8.0.270.0060.00316.94
8.0.260.0040.00417.20
8.0.250.0000.00717.03
8.0.240.0030.00317.04
8.0.230.0040.00416.92
8.0.220.0050.00216.96
8.0.210.0070.00016.87
8.0.200.0030.00616.95
8.0.190.0000.00716.90
8.0.180.0030.00617.00
8.0.170.0090.00016.95
8.0.160.0000.00917.04
8.0.150.0050.00216.90
8.0.140.0040.00416.96
8.0.130.0030.00313.43
8.0.120.0000.00916.84
8.0.110.0040.00416.85
8.0.100.0070.00017.03
8.0.90.0000.00717.09
8.0.80.0050.01417.01
8.0.70.0070.00016.98
8.0.60.0000.00716.94
8.0.50.0030.00516.98
8.0.30.0070.01117.27
8.0.20.0140.00817.40
8.0.10.0040.00416.93
8.0.00.0110.01116.98
7.4.330.0000.00515.55
7.4.320.0000.00616.56
7.4.300.0030.00316.63
7.4.290.0040.00416.54
7.4.280.0000.00716.61
7.4.270.0060.00316.75
7.4.260.0000.00716.74
7.4.250.0050.00316.66
7.4.240.0000.00716.77
7.4.230.0030.00316.69
7.4.220.0040.00316.48
7.4.210.0050.00916.68
7.4.200.0000.00716.65
7.4.160.0070.00816.71
7.4.140.0080.01117.86
7.4.130.0110.00716.63
7.4.120.0080.01116.54
7.4.110.0060.01316.64
7.4.100.0070.01016.55
7.4.90.0070.01016.72
7.4.80.0120.00919.39
7.4.70.0040.01416.65
7.4.60.0160.00016.58
7.4.50.0060.01016.40
7.4.40.0070.01416.50
7.4.00.0070.00714.91
7.3.330.0050.00013.25
7.3.320.0000.00513.11
7.3.310.0000.00716.11
7.3.300.0000.00716.28
7.3.290.0070.00016.22
7.3.280.0110.00816.30
7.3.260.0120.00616.49
7.3.240.0080.01016.38
7.3.230.0140.00416.22
7.3.210.0100.00716.26
7.3.200.0060.01116.27
7.3.190.0030.01316.67
7.3.180.0090.01116.56
7.3.170.0040.01216.66
7.3.160.0090.00616.32
7.3.10.0120.00316.87
7.3.00.0120.00016.69
7.2.330.0100.01316.61
7.2.320.0160.00316.59
7.2.310.0070.01416.70
7.2.300.0080.01416.74
7.2.290.0160.00916.62
7.2.130.0060.00616.88
7.2.120.0070.00316.94
7.2.110.0060.00316.80
7.2.100.0050.00516.73
7.2.90.0000.01117.08
7.2.80.0070.00716.96
7.2.70.0070.00716.70
7.2.60.0930.00815.58
7.2.50.0790.00915.63
7.2.40.1920.01015.80
7.2.30.0310.00815.77
7.2.20.0270.01015.76
7.2.10.0680.01015.92
7.2.00.1830.00815.91
7.1.250.0140.00015.57
7.1.200.0080.00815.53
7.1.170.1950.00614.00
7.1.160.1360.01016.79
7.1.150.1940.01116.95
7.1.140.2150.01117.19
7.1.130.2760.01217.12
7.1.120.2510.00816.96
7.1.110.2480.00916.37
7.1.100.2270.01016.22
7.1.90.2550.01016.04
7.1.80.2500.00616.41
7.1.70.2270.00915.31
7.1.60.1850.01133.09
7.1.50.2920.01532.83
7.1.40.1910.01332.43
7.1.30.1310.01432.46
7.1.20.2730.01532.71
7.1.10.0970.00814.86
7.1.00.2410.01015.10

preferences:
52.08 ms | 400 KiB | 5 Q