3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "* { [Strongly Disagree] [Disagree] [Agree] [Strongly Agree] }"; preg_match_all("/\[(.+?)\]/", $str, $match1); preg_match_all("/[^]]/", $str, $match2); var_dump($match1); var_dump($match2);

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.0090.00618.20
8.3.50.0060.00918.20
8.3.40.0060.00918.58
8.3.30.0120.00418.61
8.3.20.0030.00618.89
8.3.10.0050.00321.87
8.3.00.0030.00522.45
8.2.180.0150.00618.27
8.2.170.0100.00622.96
8.2.160.0090.00921.14
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00922.43
8.2.120.0080.00026.35
8.2.110.0000.01119.16
8.2.100.0040.00817.78
8.2.90.0040.00417.88
8.2.80.0000.00918.91
8.2.70.0060.00317.91
8.2.60.0070.00318.03
8.2.50.0050.00318.10
8.2.40.0070.00419.18
8.2.30.0030.00520.52
8.2.20.0030.00618.07
8.2.10.0040.00417.90
8.2.00.0050.00219.38
8.1.280.0040.01225.92
8.1.270.0040.01820.53
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00720.85
8.1.230.0070.00417.83
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0090.00017.40
8.1.180.0040.00418.10
8.1.170.0000.00918.61
8.1.160.0040.00418.81
8.1.150.0050.00218.83
8.1.140.0000.00920.83
8.1.130.0040.00417.55
8.1.120.0000.00817.46
8.1.110.0040.00417.51
8.1.100.0060.00317.43
8.1.90.0050.00317.47
8.1.80.0030.00617.55
8.1.70.0000.00717.60
8.1.60.0050.00317.61
8.1.50.0080.00017.52
8.1.40.0040.00417.47
8.1.30.0080.00017.61
8.1.20.0030.00617.71
8.1.10.0050.00317.68
8.1.00.0000.00717.45
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0040.00418.41
8.0.270.0000.01017.16
8.0.260.0040.00416.89
8.0.250.0000.00717.04
8.0.240.0040.00417.05
8.0.230.0000.00816.96
8.0.220.0000.00817.02
8.0.210.0040.00416.84
8.0.200.0030.00316.93
8.0.190.0030.00617.05
8.0.180.0080.00017.02
8.0.170.0050.00516.83
8.0.160.0070.00016.98
8.0.150.0070.00016.90
8.0.140.0040.00416.84
8.0.130.0000.00713.41
8.0.120.0050.00316.87
8.0.110.0000.00716.91
8.0.100.0050.00316.76
8.0.90.0040.00416.86
8.0.80.0090.01317.02
8.0.70.0020.00517.04
8.0.60.0000.00816.77
8.0.50.0040.00416.88
8.0.30.0120.00917.25
8.0.20.0140.00717.40
8.0.10.0030.00616.99
8.0.00.0110.01016.83
7.4.330.0060.00015.55
7.4.320.0000.00716.69
7.4.300.0070.00016.75
7.4.290.0070.00016.75
7.4.280.0040.00416.58
7.4.270.0050.00516.73
7.4.260.0030.00316.66
7.4.250.0000.00816.71
7.4.240.0000.00716.67
7.4.230.0040.00416.55
7.4.220.0000.00816.40
7.4.210.0090.00816.67
7.4.200.0040.00416.53
7.4.160.0130.00716.69
7.4.140.0150.00817.86
7.4.130.0120.00916.66
7.4.120.0090.01116.66
7.4.110.0140.00416.69
7.4.100.0110.00816.58
7.4.90.0070.01316.60
7.4.80.0070.01919.39
7.4.70.0090.00916.65
7.4.60.0120.00816.59
7.4.50.0100.01016.52
7.4.40.0120.00916.43
7.4.10.0110.01115.27
7.4.00.0060.01115.05
7.3.330.0000.00513.08
7.3.320.0070.00013.27
7.3.310.0000.00716.36
7.3.300.0000.01116.18
7.3.290.0040.00316.20
7.3.280.0040.01216.28
7.3.260.0140.01016.53
7.3.240.0120.01016.54
7.3.230.0090.00916.59
7.3.210.0160.00516.52
7.3.200.0090.00916.58
7.3.190.0130.00616.30
7.3.180.0120.01216.29
7.3.170.0190.01216.28
7.3.160.0160.00316.32
7.3.130.0060.01214.95
7.3.120.0080.01014.81
7.3.110.0080.00915.03
7.3.100.0000.01414.61
7.3.90.0080.00814.96
7.3.80.0020.01214.80
7.3.70.0030.01014.90
7.3.60.0070.00914.87
7.3.50.0100.00814.87
7.3.40.0060.00614.65
7.3.30.0030.01014.83
7.3.20.0050.01016.62
7.3.10.0030.01216.76
7.3.00.0050.01116.45
7.2.330.0090.01216.64
7.2.320.0140.00516.75
7.2.310.0030.01616.40
7.2.300.0080.01216.67
7.2.290.0130.00916.56
7.2.260.0080.00814.96
7.2.250.0030.01515.15
7.2.240.0090.00815.02
7.2.230.0060.01015.03
7.2.220.0070.00815.00
7.2.210.0020.01315.05
7.2.200.0050.01114.90
7.2.190.0100.00414.77
7.2.180.0020.01215.14
7.2.170.0070.01014.98
7.2.160.0070.01015.13
7.2.150.0040.01117.09
7.2.140.0070.00716.94
7.2.130.0030.01017.00
7.2.120.0060.00616.63
7.2.110.0070.01016.91
7.2.100.0040.01116.59
7.2.90.0100.00316.68
7.2.80.1340.00415.67
7.2.70.1210.00815.93
7.2.60.0900.01315.75
7.2.50.0860.00815.80
7.2.40.0960.00515.96
7.2.30.1310.01315.98
7.2.20.1120.00815.81
7.2.10.0860.01415.66
7.2.00.1280.00915.87
7.1.330.0080.00716.05
7.1.320.0050.00715.64
7.1.310.0040.01115.97
7.1.300.0070.00915.79
7.1.290.0020.00915.85
7.1.280.0050.00815.83
7.1.270.0060.00715.96
7.1.260.0050.00715.79
7.1.250.0030.01315.83
7.1.240.0100.00316.02
7.1.230.0000.01516.02
7.1.220.0100.00315.87
7.1.210.0060.01015.84
7.1.200.1330.00914.81
7.1.190.0610.00514.90
7.1.180.1260.00814.83
7.1.170.0760.01114.75
7.1.160.0940.01014.94
7.1.150.1100.00814.97
7.1.140.1060.01014.95
7.1.130.0750.01214.98
7.1.120.1380.00914.82
7.1.110.0660.01114.97
7.1.100.0780.00814.83
7.1.90.1480.00514.77
7.1.80.1260.00714.77
7.1.70.1250.00614.72
7.1.60.1390.00823.97
7.1.50.2840.00624.07
7.1.40.2610.01423.67
7.1.30.2770.01523.75
7.1.20.1460.01224.01
7.1.10.0070.01014.88
7.1.00.0100.00815.03
7.0.330.0060.00915.67
7.0.320.0040.01115.41
7.0.310.0060.01015.35
7.0.300.0030.00715.49
7.0.290.0000.01415.69
7.0.280.0040.00815.34
7.0.270.0090.00015.72
7.0.260.0090.00615.34
7.0.250.0000.01115.22
7.0.240.0040.00815.36
7.0.230.0070.00715.55
7.0.220.0100.00615.29
7.0.210.0000.01515.68
7.0.200.0060.01015.76
7.0.190.0000.01615.77
7.0.180.0050.00515.58
7.0.170.0140.00015.43
7.0.160.0060.00915.46
7.0.150.0090.00615.45
7.0.140.0070.00415.55
7.0.130.0000.01615.36
7.0.120.0070.00415.51
7.0.110.0070.01015.40
7.0.100.0020.01215.26
7.0.90.0040.01115.60
7.0.80.0110.00415.64
7.0.70.0100.00015.46
7.0.60.0100.00715.43
7.0.50.0090.00615.32
7.0.40.0030.01013.25
7.0.30.0030.01013.64
7.0.20.0000.01613.43
7.0.10.0040.00713.28
7.0.00.0140.00313.45
5.6.400.0090.00914.13
5.6.390.0030.00714.41
5.6.380.0030.01314.12
5.6.370.0050.00514.63
5.6.360.0120.00014.46
5.6.350.0100.00714.29
5.6.340.0000.01414.16
5.6.330.0000.01214.49
5.6.320.0090.00314.11
5.6.310.0030.00914.59
5.6.300.0030.01014.56
5.6.290.0090.00614.44
5.6.280.0070.00714.03
5.6.270.0100.00314.00
5.6.260.0130.00314.23
5.6.250.0070.00314.57
5.6.240.0150.00014.29
5.6.230.0090.00914.07
5.6.220.0120.00314.10
5.6.210.0040.01414.42
5.6.200.0120.00614.31
5.6.190.0060.00914.34
5.6.180.0060.00914.33
5.6.170.0120.00414.12
5.6.160.0090.00914.05
5.6.150.0070.01114.21
5.6.140.0040.01414.27
5.6.130.0080.00514.22
5.6.120.0070.01014.25
5.6.110.0080.00614.20
5.6.100.0060.00614.49
5.6.90.0030.01214.50
5.6.80.0120.00614.19
5.6.70.0070.00714.22
5.6.60.0150.00014.07
5.6.50.0090.00614.20
5.6.40.0040.01414.15
5.6.30.0040.01114.09
5.6.20.0070.00713.88
5.6.10.0030.01013.90
5.6.00.0100.00314.37

preferences:
82.14 ms | 400 KiB | 5 Q