3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Just 44 4 test 444'; preg_match_all('!\d+!', $str, $matches); print_r($matches); if (in_array("4", $matches[0])){ echo "Match found"; } else { echo "Match not found"; }

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.0150.00618.70
8.4.110.0100.01118.96
8.4.100.0110.01017.79
8.4.90.0100.01220.50
8.4.80.0130.00719.10
8.4.70.0080.01118.77
8.4.60.0100.01220.32
8.4.50.0080.00318.72
8.4.40.0140.00717.88
8.4.30.0060.00319.78
8.4.20.0070.01319.72
8.4.10.0030.00622.20
8.3.250.0110.00816.69
8.3.240.0070.00216.54
8.3.230.0090.01016.59
8.3.220.0120.00718.93
8.3.210.0160.00416.83
8.3.200.0030.00616.61
8.3.190.0100.00617.17
8.3.180.0110.00820.55
8.3.170.0070.01120.60
8.3.160.0110.00716.70
8.3.150.0110.00717.20
8.3.140.0130.00316.59
8.3.130.0040.00418.66
8.3.120.0030.00618.96
8.3.110.0000.00916.50
8.3.100.0030.00624.06
8.3.90.0080.00026.77
8.3.80.0030.00618.43
8.3.70.0080.00816.58
8.3.60.0120.00316.50
8.3.50.0120.00921.12
8.3.40.0100.01319.09
8.3.30.0150.00018.82
8.3.20.0040.00421.87
8.3.10.0070.00021.76
8.3.00.0070.00023.70
8.2.290.0110.00816.99
8.2.280.0060.01020.27
8.2.270.0130.00617.41
8.2.260.0070.00720.62
8.2.250.0080.00016.96
8.2.240.0030.00717.32
8.2.230.0060.00320.94
8.2.220.0080.00037.54
8.2.210.0140.00026.77
8.2.200.0030.00616.88
8.2.190.0150.00616.63
8.2.180.0070.00725.92
8.2.170.0090.00919.04
8.2.160.0100.00722.96
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0000.01018.99
8.2.110.0070.00322.44
8.2.100.0080.00418.03
8.2.90.0050.00320.64
8.2.80.0080.00018.03
8.2.70.0000.00917.93
8.2.60.0030.00618.22
8.2.50.0040.00418.10
8.2.40.0050.00319.48
8.2.30.0040.00420.95
8.2.20.0080.00018.13
8.2.10.0000.00918.01
8.2.00.0040.00417.64
8.1.330.0140.00516.32
8.1.320.0130.00716.20
8.1.310.0000.00917.98
8.1.300.0080.00818.66
8.1.290.0030.00618.88
8.1.280.0070.01425.92
8.1.270.0040.00421.98
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0120.00020.72
8.1.230.0070.00421.03
8.1.220.0040.00417.74
8.1.210.0000.00818.84
8.1.200.0080.00017.35
8.1.190.0030.00517.35
8.1.180.0030.00618.10
8.1.170.0060.00318.78
8.1.160.0070.00022.04
8.1.150.0070.00018.93
8.1.140.0000.00719.60
8.1.130.0000.00717.66
8.1.120.0040.00417.50
8.1.110.0040.00417.43
8.1.100.0040.00417.56
8.1.90.0000.00817.53
8.1.80.0030.00317.58
8.1.70.0050.00317.52
8.1.60.0030.00517.65
8.1.50.0030.00617.50
8.1.40.0030.00817.59
8.1.30.0040.00417.74
8.1.20.0040.00417.70
8.1.10.0040.00417.69
8.1.00.0040.00417.59
8.0.300.0070.00020.06
8.0.290.0030.00516.75
8.0.280.0000.00718.46
8.0.270.0000.00716.98
8.0.260.0030.00318.42
8.0.250.0070.00016.93
8.0.240.0000.00716.98
8.0.230.0030.00317.07
8.0.220.0030.00316.96
8.0.210.0000.00816.96
8.0.200.0030.00316.91
8.0.190.0000.00717.03
8.0.180.0050.00316.89
8.0.170.0000.00716.89
8.0.160.0000.00716.87
8.0.150.0000.00716.90
8.0.140.0070.00016.84
8.0.130.0080.00013.40
8.0.120.0040.00416.94
8.0.110.0000.00716.80
8.0.100.0040.00416.97
8.0.90.0050.00316.87
8.0.80.0060.01516.95
8.0.70.0000.00816.98
8.0.60.0000.00716.88
8.0.50.0080.00017.01
8.0.30.0110.00817.16
8.0.20.0120.00617.40
8.0.10.0040.00417.11
8.0.00.0100.00716.95
7.4.330.0020.00215.55
7.4.320.0040.00416.75
7.4.300.0060.00016.77
7.4.290.0050.00216.72
7.4.280.0000.00816.64
7.4.270.0030.00316.76
7.4.260.0070.00016.69
7.4.250.0000.00716.59
7.4.240.0000.00716.57
7.4.230.0000.00716.40
7.4.220.0030.00316.50
7.4.210.0080.00816.68
7.4.200.0000.00716.77
7.4.160.0110.00916.56
7.4.150.0090.00917.40
7.4.140.0160.00617.86
7.4.130.0100.00716.65
7.4.120.0060.01116.70
7.4.110.0030.01516.52
7.4.100.0110.00616.54
7.4.90.0070.01716.81
7.4.80.0030.01419.39
7.4.70.0150.00716.73
7.4.60.0100.00716.50
7.4.50.0100.00616.64
7.4.40.0170.00016.85
7.4.30.0150.00816.51
7.4.00.0070.01014.95
7.3.330.0020.00313.09
7.3.320.0000.00513.09
7.3.310.0050.00216.20
7.3.300.0030.00316.36
7.3.290.0040.01016.34
7.3.280.0110.00616.35
7.3.270.0100.00717.40
7.3.260.0080.00916.47
7.3.250.0130.00716.51
7.3.240.0100.00716.68
7.3.230.0110.00716.39
7.3.210.0140.00316.30
7.3.200.0130.00316.66
7.3.190.0000.01916.38
7.3.180.0050.01116.48
7.3.170.0160.00816.36
7.3.160.0120.00616.36
7.2.330.0090.00916.82
7.2.320.0000.01716.69
7.2.310.0070.01016.66
7.2.300.0120.00916.59
7.2.290.0040.01416.64
7.2.60.0060.00616.87
7.1.200.0100.00315.86
7.1.70.0050.00317.47
7.1.60.0080.00317.16
7.1.00.0030.07722.33
7.0.200.0350.01014.84
7.0.122.0570.06320.29
7.0.110.0300.05720.26
7.0.100.0330.04720.36
7.0.90.0270.06020.26
7.0.80.0300.05320.38
7.0.70.0330.07720.21
7.0.60.0470.04020.26
7.0.50.0400.04720.32
7.0.40.0330.05720.28
7.0.30.0570.06020.28
7.0.20.0300.05320.34
7.0.10.0270.06020.23
7.0.00.0370.04720.25
5.6.270.0070.05720.88
5.6.260.0130.05721.01
5.6.250.0070.06020.93
5.6.240.0070.06020.80
5.6.230.0070.06721.10
5.6.220.0100.06720.78
5.6.210.0030.06720.85
5.6.200.0130.05320.75
5.6.190.0000.07021.02
5.6.180.0170.05320.93
5.6.170.0030.06020.99
5.6.160.0130.06720.75
5.6.150.0130.05721.00
5.6.140.0030.07721.00
5.6.130.0130.06320.98
5.6.120.0130.07021.02
5.6.110.0100.07720.79
5.6.100.0130.06320.82
5.6.90.0170.05020.79
5.6.80.0170.04720.12
5.6.70.0070.06020.43
5.6.60.0070.06020.36
5.6.50.0130.05020.21
5.6.40.0070.05720.42
5.6.30.0130.05020.40
5.6.20.0130.05020.41
5.6.10.0130.05320.39
5.6.00.0130.05020.21

preferences:
29.58 ms | 403 KiB | 5 Q