3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "[Code][WST-2587] hello world"; print($value); print("\n"); $trimPattern = '/^[”’"\'(<]*@?(.+?)[.”’"\'\,!?:;)>]*$/'; print($trimPattern); print("\n"); $projects = array('IC', 'WST'); $calloutPattern = "/^(?:" . implode('|', $projects) . ")-[0-9]+$/"; print($calloutPattern); print("\n"); $words = preg_split('/(\s+)/', $value); print "Words:"; foreach ($words as $word) { print($word); print("\n"); } preg_match_all('/[(<\[]((' . implode('|', $projects) . ')-[0-9]+)[\]>)]/', $value, $matches); print "Matches:"; foreach ($matches[1] as $match) { print($match); print("\n"); } $words = array_merge($words, $matches[1]); print "Merged Words:"; foreach ($words as $word) { print($word); print("\n"); }

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.0100.01018.55
8.3.50.0110.01122.17
8.3.40.0140.00018.93
8.3.30.0060.00818.97
8.3.20.0080.00020.38
8.3.10.0000.00821.85
8.3.00.0040.00419.25
8.2.180.0090.00917.00
8.2.170.0070.00722.96
8.2.160.0100.00322.04
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00021.09
8.2.110.0000.01020.53
8.2.100.0060.00718.00
8.2.90.0040.00417.88
8.2.80.0000.00819.08
8.2.70.0080.00018.05
8.2.60.0060.00318.22
8.2.50.0000.00919.34
8.2.40.0030.00521.12
8.2.30.0030.00619.22
8.2.20.0040.00417.91
8.2.10.0000.00818.21
8.2.00.0040.00417.83
8.1.280.0150.00625.92
8.1.270.0030.00619.00
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0070.00323.96
8.1.230.0070.00419.57
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.47
8.1.190.0040.00417.25
8.1.180.0030.00618.97
8.1.170.0030.00618.67
8.1.160.0070.00018.89
8.1.150.0030.00619.00
8.1.140.0040.00417.56
8.1.130.0030.00317.77
8.1.120.0070.00017.59
8.1.110.0080.00017.62
8.1.100.0020.00517.50
8.1.90.0040.00417.63
8.1.80.0000.01117.54
8.1.70.0000.00717.52
8.1.60.0030.00617.64
8.1.50.0000.00917.67
8.1.40.0000.00817.64
8.1.30.0000.00917.88
8.1.20.0040.00417.81
8.1.10.0000.00817.78
8.1.00.0070.00317.68
8.0.300.0000.00718.77
8.0.290.0000.00916.88
8.0.280.0070.00018.38
8.0.270.0070.00017.20
8.0.260.0030.00317.34
8.0.250.0070.00017.00
8.0.240.0070.00017.00
8.0.230.0040.00416.99
8.0.220.0040.00416.93
8.0.210.0050.00217.08
8.0.200.0060.00017.11
8.0.190.0040.00417.08
8.0.180.0000.00817.10
8.0.170.0080.00017.02
8.0.160.0030.00517.07
8.0.150.0040.00417.04
8.0.140.0040.00416.99
8.0.130.0040.00513.55
8.0.120.0030.00617.04
8.0.110.0030.00516.96
8.0.100.0000.00816.86
8.0.90.0000.00716.91
8.0.80.0090.01217.07
8.0.70.0040.00416.89
8.0.60.0040.00416.98
8.0.50.0000.00716.89
8.0.30.0120.01217.33
8.0.20.0130.00817.44
8.0.10.0080.00017.13
8.0.00.0100.01116.92
7.4.330.0020.00215.03
7.4.320.0030.00316.76
7.4.300.0000.00616.76
7.4.290.0000.00716.71
7.4.280.0040.00416.69
7.4.270.0000.00716.74
7.4.260.0060.00316.77
7.4.250.0060.00316.63
7.4.240.0060.00216.82
7.4.230.0040.00416.61
7.4.220.0190.00616.73
7.4.210.0090.00716.75
7.4.200.0030.00316.73
7.4.160.0120.00416.73
7.4.150.0060.01517.40
7.4.140.0070.01017.86
7.4.130.0130.00916.60
7.4.120.0050.01216.71
7.4.110.0100.01016.74
7.4.100.0040.02117.05
7.4.90.0070.01016.73
7.4.80.0200.00319.39
7.4.70.0110.00616.57
7.4.60.0110.00516.64
7.4.50.0020.00216.81
7.4.40.0120.00616.59
7.4.30.0080.00816.86
7.4.10.0040.01416.54
7.4.00.0060.00915.76
7.3.330.0000.00613.22
7.3.320.0030.00313.39
7.3.310.0000.00816.35
7.3.300.0040.00416.55
7.3.290.0100.00616.38
7.3.280.0080.00816.46
7.3.270.0130.00717.40
7.3.260.0100.00716.72
7.3.250.0070.01016.54
7.3.240.0140.00316.50
7.3.230.0110.01116.58
7.3.210.0120.00616.44
7.3.200.0110.01219.39
7.3.190.0120.00616.88
7.3.180.0110.00516.43
7.3.170.0100.01016.71
7.3.160.0130.01116.53
7.3.130.0030.01416.44
7.3.120.0080.00915.57
7.3.110.0050.01115.54
7.3.100.0050.01115.59
7.3.90.0040.01015.58
7.3.80.0090.00615.58
7.3.70.0040.00915.56
7.3.60.0060.00715.46
7.3.50.0040.00815.41
7.3.40.0050.01015.57
7.3.30.0060.00915.37
7.3.20.0110.00617.11
7.3.10.0060.01117.42
7.3.00.0050.00917.38
7.2.330.0140.00716.87
7.2.320.0120.01216.83
7.2.310.0070.01016.73
7.2.300.0130.01017.03
7.2.290.0160.00316.80
7.2.260.0040.01516.88
7.2.250.0120.00815.99
7.2.240.0060.01015.67
7.2.230.0070.00915.72
7.2.220.0080.00815.66
7.2.210.0060.00815.78
7.2.200.0030.01215.64
7.2.190.0060.00715.67
7.2.180.0060.00515.84
7.2.170.0060.00715.68
7.2.160.0060.00916.01
7.2.150.0080.00617.73
7.2.140.0110.00717.70
7.2.130.0060.00817.75
7.2.120.0080.01017.82
7.2.110.0100.00517.73
7.2.100.0030.01317.88
7.2.90.0040.01017.89
7.2.80.0050.01117.77
7.2.70.0050.01017.85
7.2.60.0050.00817.79
7.2.50.0070.01017.88
7.2.40.0110.00717.87
7.2.30.0070.01017.94
7.2.20.0030.01217.88
7.2.10.0070.00517.77
7.2.00.0070.00818.44
7.1.330.0080.00516.52
7.1.320.0060.00716.49
7.1.310.0030.00916.60
7.1.300.0070.00916.51
7.1.290.0050.01016.36
7.1.280.0030.00916.37
7.1.270.0070.01016.46
7.1.260.0060.00916.56
7.1.250.0060.01016.55
7.1.240.0000.02017.64
7.1.230.0090.00917.44
7.1.220.0040.00917.55
7.1.210.0030.01017.48
7.1.200.0030.01317.61
7.1.190.0060.00917.45
7.1.180.0080.00817.66
7.1.170.0100.00017.47
7.1.160.0060.00617.45
7.1.150.0090.00617.47
7.1.140.0030.01017.59
7.1.130.0070.00717.35
7.1.120.0000.01317.36
7.1.110.0060.00917.44
7.1.100.0030.01017.83
7.1.90.0070.00717.50
7.1.80.0030.00617.50
7.1.70.0050.00517.44
7.1.60.0100.00818.42
7.1.50.0070.00817.37
7.1.40.0030.01017.65
7.1.30.0030.01017.49
7.1.20.0130.00317.53
7.1.10.0090.00617.64
7.1.00.0030.04019.96
7.0.330.0100.00717.13
7.0.320.0070.00717.09
7.0.310.0030.00617.01
7.0.300.0110.00316.95
7.0.290.0000.01517.19
7.0.280.0090.00917.23
7.0.270.0060.00817.27
7.0.260.0070.01017.14
7.0.250.0130.00317.05
7.0.240.0070.00717.29
7.0.230.0000.01417.12
7.0.220.0110.00417.22
7.0.210.0040.00817.30
7.0.200.0030.00817.09
7.0.190.0030.01017.12
7.0.180.0070.00717.06
7.0.170.0040.01117.27
7.0.160.0100.00317.27
7.0.150.0090.00617.10
7.0.140.0050.03819.71
7.0.130.0040.01117.09
7.0.120.0080.00817.04
7.0.110.0030.01416.94
7.0.100.0110.00417.06
7.0.90.0040.00817.09
7.0.80.0030.00717.16
7.0.70.0070.00717.14
7.0.60.0030.04818.54
7.0.50.0100.04317.53
7.0.40.0080.04517.73
7.0.30.0200.02817.50
7.0.20.0220.04217.64
7.0.10.0050.04717.72
7.0.00.0090.02217.71
5.6.400.0070.00715.89
5.6.390.0030.01216.23
5.6.380.0070.00415.81
5.6.370.0030.01015.95
5.6.360.0030.01316.10
5.6.350.0000.01215.67
5.6.340.0070.01016.06
5.6.330.0090.00915.76
5.6.320.0090.00615.80
5.6.310.0080.00416.02
5.6.300.0030.01016.08
5.6.290.0060.00316.09
5.6.280.0120.03518.57
5.6.270.0060.00615.97
5.6.260.0070.01115.77
5.6.250.0030.00916.18
5.6.240.0040.01116.12
5.6.230.0090.00016.01
5.6.220.0060.00915.82
5.6.210.0030.04518.25
5.6.200.0080.04616.95
5.6.190.0120.02818.14
5.6.180.0180.02718.24
5.6.170.0150.03918.14
5.6.160.0090.04418.21
5.6.150.0030.03517.07
5.6.140.0120.03617.13
5.6.130.0030.03316.96
5.6.120.0050.04718.46
5.6.110.0000.02918.44
5.6.100.0070.03918.64
5.6.90.0100.03318.48
5.6.80.0050.04918.08
5.6.70.0100.00715.79
5.6.60.0030.01315.79
5.6.50.0060.00915.80
5.6.40.0060.01016.16
5.6.30.0070.00716.03
5.6.20.0040.01415.81
5.6.10.0060.00915.89
5.6.00.0140.00015.87
5.5.380.0060.01016.12
5.5.370.0040.00815.86
5.5.360.0080.00615.97
5.5.350.0190.03618.14
5.5.340.0050.04716.91
5.5.330.0080.02818.13
5.5.320.0250.04018.14
5.5.310.0180.02618.23
5.5.300.0030.03016.99
5.5.290.0050.04316.88
5.5.280.0120.02818.36
5.5.270.0030.04218.34
5.5.260.0070.02818.50
5.5.250.0030.05318.21
5.5.240.0020.02517.95
5.5.230.0080.01115.68
5.5.220.0000.01615.82
5.5.210.0090.00615.90
5.5.200.0030.01216.05
5.5.190.0070.00715.99
5.5.180.0100.00315.79
5.5.170.0040.00815.80
5.5.160.0000.01115.95
5.5.150.0050.00515.87
5.5.140.0060.01215.86
5.5.130.0030.01216.00
5.5.120.0090.00315.79
5.5.110.0070.00315.97
5.5.100.0000.01615.75
5.5.90.0070.00716.01
5.5.80.0080.00715.72
5.5.70.0080.00415.77
5.5.60.0070.01015.98
5.5.50.0090.00315.77
5.5.40.0070.00715.70
5.5.30.0120.00315.72
5.5.20.0000.01015.80
5.5.10.0030.00716.07
5.5.00.0060.00615.81
5.4.450.0440.02616.07
5.4.440.0080.03415.98
5.4.430.0100.03316.06
5.4.420.0110.03315.90
5.4.410.0090.03215.83
5.4.400.0190.02915.95
5.4.390.0210.02615.56
5.4.380.0070.04215.71
5.4.370.0180.02615.50
5.4.360.0200.02615.62
5.4.350.0150.03315.56
5.4.340.0110.03515.58
5.4.330.0070.00712.50
5.4.320.0150.03015.53
5.4.310.0220.02515.57
5.4.300.0180.02515.55
5.4.290.0060.03615.64
5.4.280.0170.02615.67
5.4.270.0170.02515.63
5.4.260.0150.02815.49
5.4.250.0110.03315.59
5.4.240.0170.02715.55
5.4.230.0200.02215.66
5.4.220.0190.02715.77
5.4.210.0150.03115.67
5.4.200.0160.03014.57
5.4.190.0170.02515.66
5.4.180.0210.02215.57
5.4.170.0180.02315.51
5.4.160.0120.02815.57
5.4.150.0150.02915.51
5.4.140.0150.02614.53
5.4.130.0120.02714.50
5.4.120.0150.02814.47
5.4.110.0150.03814.42
5.4.100.0160.02814.42
5.4.90.0170.02914.38
5.4.80.0130.03014.48
5.4.70.0170.03014.49
5.4.60.0100.03414.39
5.4.50.0170.02614.45
5.4.40.0160.03014.45
5.4.30.0050.03614.31
5.4.20.0150.02714.49
5.4.10.0170.02814.41
5.4.00.0100.03114.17
5.3.290.0230.05314.61
5.3.280.0230.05014.73
5.3.270.0270.05014.54
5.3.260.0230.05314.61
5.3.250.0230.05014.60
5.3.240.0070.06714.53
5.3.230.0200.05714.71
5.3.220.0270.05014.57
5.3.210.0200.06014.64
5.3.200.0300.06714.67
5.3.190.0230.05014.67
5.3.180.0230.07314.48
5.3.170.0270.05314.60
5.3.160.0400.05714.64
5.3.150.0430.05714.52
5.3.140.0100.06314.56
5.3.130.0230.05714.54
5.3.120.0270.05014.54
5.3.110.0170.05714.63
5.3.100.0030.06713.96
5.3.90.0270.04714.08
5.3.80.0330.06014.02
5.3.70.0270.04713.99
5.3.60.0270.04714.00
5.3.50.0200.05314.04
5.3.40.0300.05013.90
5.3.30.0230.05013.83
5.3.20.0200.05013.86
5.3.10.0170.06013.62
5.3.00.0230.04713.61
5.2.170.0170.04311.13
5.2.160.0230.04011.20
5.2.150.0200.04311.07
5.2.140.0170.04711.29
5.2.130.0170.04711.18
5.2.120.0200.03711.18
5.2.110.0170.04011.10
5.2.100.0200.03711.05
5.2.90.0100.05011.26
5.2.80.0300.03711.14
5.2.70.0230.05311.25
5.2.60.0200.04311.03
5.2.50.0200.04311.00
5.2.40.0200.04010.98
5.2.30.0300.05011.02
5.2.20.0200.04710.94
5.2.10.0130.04710.97
5.2.00.0230.03710.70
5.1.60.0200.03310.07
5.1.50.0200.0479.99
5.1.40.0300.03010.13
5.1.30.0130.04010.35
5.1.20.0100.04310.52
5.1.10.0200.03010.15
5.1.00.0130.03710.11
5.0.50.0030.0338.66
5.0.40.0070.0308.48
5.0.30.0100.0508.33
5.0.20.0100.0238.25
5.0.10.0100.0278.30
5.0.00.0130.0378.38
4.4.90.0070.0275.94
4.4.80.0030.0235.85
4.4.70.0030.0235.89
4.4.60.0030.0305.94
4.4.50.0070.0235.91
4.4.40.0100.0335.89
4.4.30.0100.0205.93
4.4.20.0070.0235.94
4.4.10.0030.0276.00
4.4.00.0030.0405.96
4.3.110.0070.0235.82
4.3.100.0100.0205.84
4.3.90.0100.0205.84
4.3.80.0100.0305.81
4.3.70.0100.0275.81
4.3.60.0100.0205.91
4.3.50.0100.0205.83
4.3.40.0130.0275.85
4.3.30.0000.0274.66
4.3.20.0030.0274.55
4.3.10.0030.0234.54
4.3.00.0030.0277.29

preferences:
53.25 ms | 401 KiB | 5 Q