3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tocheck = 'aba'; $inlong = 'dzamburu n koma baba n dingo'; preg_match("/$tocheck/", $inlong, $matches); print_r($matches);

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.40.0120.00618.67
8.3.30.0170.00319.08
8.3.20.0040.00420.21
8.3.10.0030.00523.70
8.3.00.0000.00819.19
8.2.170.0120.00322.96
8.2.160.0080.00620.47
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0040.00420.89
8.2.110.0060.00321.04
8.2.100.0080.00417.97
8.2.90.0000.00817.97
8.2.80.0060.00317.97
8.2.70.0080.00017.87
8.2.60.0040.00417.92
8.2.50.0060.00318.07
8.2.40.0000.00819.97
8.2.30.0080.00018.18
8.2.20.0040.00417.93
8.2.10.0030.00518.00
8.2.00.0000.00717.87
8.1.270.0080.00023.82
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0000.00922.61
8.1.230.0070.00421.04
8.1.220.0000.00817.74
8.1.210.0050.00318.89
8.1.200.0090.00617.48
8.1.190.0080.00017.35
8.1.180.0030.00518.10
8.1.170.0000.00818.55
8.1.160.0040.00421.91
8.1.150.0000.00818.61
8.1.140.0040.00417.56
8.1.130.0000.00717.83
8.1.120.0050.00317.43
8.1.110.0000.00717.56
8.1.100.0070.00017.41
8.1.90.0040.00417.53
8.1.80.0000.00717.53
8.1.70.0000.00717.47
8.1.60.0030.00517.61
8.1.50.0060.00317.49
8.1.40.0000.00817.48
8.1.30.0040.00417.66
8.1.20.0050.00317.77
8.1.10.0040.00417.56
8.1.00.0050.00317.60
8.0.300.0080.00020.03
8.0.290.0040.00416.75
8.0.280.0040.00418.39
8.0.270.0000.00717.18
8.0.260.0000.00617.25
8.0.250.0040.00417.07
8.0.240.0000.00617.05
8.0.230.0040.00416.98
8.0.220.0000.00717.01
8.0.210.0040.00416.98
8.0.200.0040.00417.00
8.0.190.0030.00516.99
8.0.180.0040.00417.12
8.0.170.0000.00717.05
8.0.160.0040.00416.91
8.0.150.0080.00016.98
8.0.140.0040.00416.93
8.0.130.0050.00313.46
8.0.120.0060.00316.88
8.0.110.0050.00216.90
8.0.100.0040.00416.98
8.0.90.0000.00816.82
8.0.80.0120.00316.97
8.0.70.0030.00516.92
8.0.60.0040.00417.06
8.0.50.0040.00416.84
8.0.30.0190.00316.98
8.0.20.0170.00517.40
8.0.10.0050.00317.01
8.0.00.0090.00916.99
7.4.330.0000.00615.00
7.4.320.0000.00616.64
7.4.300.0000.00616.63
7.4.290.0030.00316.77
7.4.280.0070.00416.73
7.4.270.0030.00316.66
7.4.260.0030.00516.68
7.4.250.0000.00716.50
7.4.240.0040.00416.60
7.4.230.0040.00416.74
7.4.220.0060.01116.71
7.4.210.0030.01016.83
7.4.200.0000.00716.76
7.4.190.0070.00016.91
7.4.160.0160.00816.81
7.4.150.0100.00717.40
7.4.140.0100.00617.86
7.4.130.0080.00916.65
7.4.120.0110.00816.53
7.4.110.0130.00316.71
7.4.100.0090.00916.55
7.4.90.0110.00716.89
7.4.80.0150.00319.39
7.4.70.0120.00616.48
7.4.60.0100.00616.48
7.4.50.0030.00316.42
7.4.40.0070.01016.57
7.4.30.0030.01316.52
7.4.00.0030.01414.94
7.3.330.0020.00213.27
7.3.320.0050.00013.17
7.3.310.0040.00316.42
7.3.300.0030.00316.23
7.3.290.0060.00916.45
7.3.280.0090.00816.36
7.3.270.0100.01317.40
7.3.260.0030.01416.39
7.3.250.0110.01216.57
7.3.240.0110.00716.33
7.3.230.0120.01316.42
7.3.210.0140.00616.28
7.3.200.0120.00319.39
7.3.190.0070.01016.79
7.3.180.0060.01016.40
7.3.170.0130.00316.75
7.3.160.0070.01016.29
7.3.120.0100.00715.05
7.3.10.0110.00416.73
7.3.00.0090.00616.69
7.2.330.0040.01516.70
7.2.320.0060.01316.44
7.2.310.0130.01016.76
7.2.300.0100.00716.79
7.2.290.0110.00516.80
7.2.130.0040.00417.05
7.2.120.0070.00717.02
7.2.110.0080.00617.00
7.2.100.0030.00716.91
7.2.90.0040.00816.95
7.2.80.0030.00716.89
7.2.70.0120.00417.08
7.2.60.0100.00516.90
7.2.50.0030.01016.79
7.2.40.0040.01117.06
7.2.30.0110.00317.11
7.2.20.0060.00616.65
7.2.10.0030.00716.70
7.2.00.0050.01118.36
7.1.250.0030.01216.04
7.1.200.0060.00316.11
7.1.100.0040.00818.48
7.1.70.0090.00017.07
7.1.60.0130.01019.70
7.1.50.0050.00717.05
7.1.00.0100.06722.46
7.0.200.0000.00716.82
7.0.140.0070.07022.09
7.0.60.0070.07719.86
7.0.50.0030.08017.88
7.0.40.0100.05020.12
7.0.30.0130.09320.14
7.0.20.0430.06320.24
7.0.10.0230.04020.17
7.0.00.0130.08320.18
5.6.280.0000.07721.12
5.6.210.0000.09020.70
5.6.200.0030.05318.12
5.6.190.0130.05320.46
5.6.180.4100.04720.61
5.6.170.0270.03320.62
5.6.160.0030.06020.43
5.6.150.0100.06718.14
5.6.140.0070.04018.28
5.6.130.0030.08318.28
5.6.120.0100.08020.96
5.6.110.0070.08320.97
5.6.100.0070.05021.07
5.6.90.0230.06321.09
5.6.80.0070.08020.42
5.6.70.0300.07020.35
5.5.350.0100.08720.39
5.5.340.0070.07018.08
5.5.330.0070.07720.18
5.5.320.0370.03320.57
5.5.310.0230.07320.25
5.5.300.0070.08017.95
5.5.290.0070.08318.01
5.5.280.0070.08320.87
5.5.270.0100.03720.79
5.5.260.0100.06720.77
5.5.250.0100.06020.70
5.5.240.0030.05020.11
5.4.450.0770.06319.61
5.4.440.0100.07719.47
5.4.430.0230.04319.62
5.4.420.0600.00019.52
5.4.410.0130.05018.73
5.4.400.0130.06318.67
5.4.390.0170.06318.78
5.4.380.0170.05018.84
5.4.370.0070.05318.59
5.4.360.0130.04718.74
5.4.350.0070.05212.00
5.4.340.0190.07612.00
5.4.320.0100.03612.48
5.4.310.0080.04112.48
5.4.300.0070.04012.48
5.4.290.0040.04412.48
5.4.280.0080.04212.37
5.4.270.0120.04412.38
5.4.260.0070.05712.37
5.4.250.0060.04612.37
5.4.240.0060.04512.37
5.4.230.0090.05012.36
5.4.220.0110.04712.37
5.4.210.0090.05312.36
5.4.200.0100.05412.37
5.4.190.0090.04112.36
5.4.180.0070.04812.36
5.4.170.0080.05412.37
5.4.160.0100.04112.37
5.4.150.0110.05112.36
5.4.140.0060.04112.05
5.4.130.0080.03712.04
5.4.120.0080.04212.00
5.4.110.0060.05911.99
5.4.100.0100.04911.99
5.4.90.0100.04811.99
5.4.80.0110.04711.99
5.4.70.0070.05111.99
5.4.60.0130.04611.98
5.4.50.0060.04111.99
5.4.40.0140.04611.98
5.4.30.0070.05911.97
5.4.20.0040.05811.97
5.4.10.0100.03811.97
5.4.00.0050.03811.46
5.3.290.0060.04112.80
5.3.280.0060.03812.71
5.3.270.0060.04112.73
5.3.260.0040.04212.71
5.3.250.0060.03812.72
5.3.240.0100.03512.72
5.3.230.0050.04012.71
5.3.220.0120.05112.68
5.3.210.0070.05512.68
5.3.200.0180.08412.68
5.3.190.0080.04012.67
5.3.180.0060.03912.68
5.3.170.0060.03912.66
5.3.160.0090.03512.67
5.3.150.0070.04312.67
5.3.140.0090.04212.66
5.3.130.0100.07312.66
5.3.120.0060.03912.66
5.3.110.0050.04012.66
5.3.100.0100.03312.12
5.3.90.0080.03512.10
5.3.80.0080.03412.09
5.3.70.0090.03312.09
5.3.60.0090.03312.07
5.3.50.0050.03812.02
5.3.40.0050.03812.02
5.3.30.0050.03611.98
5.3.20.0050.03511.76
5.3.10.0040.03611.73
5.3.00.0050.05411.71
5.2.170.0030.0339.21
5.2.160.0020.0319.22
5.2.150.0050.0329.21
5.2.140.0050.0339.22
5.2.130.0070.0279.17
5.2.120.0110.0239.18
5.2.110.0020.0349.18
5.2.100.0070.0289.18
5.2.90.0060.0289.18
5.2.80.0040.0339.17
5.2.70.0080.0279.17
5.2.60.0030.0349.12
5.2.50.0080.0289.09
5.2.40.0040.0309.07
5.2.30.0060.0299.05
5.2.20.0050.0299.04
5.2.10.0060.0278.93
5.2.00.0040.0318.79
5.1.60.0060.0258.06
5.1.50.0050.0268.06
5.1.40.0030.0258.04
5.1.30.0050.0288.39
5.1.20.0050.0278.41
5.1.10.0060.0298.14
5.1.00.0050.0298.13
5.0.50.0060.0196.62
5.0.40.0040.0196.47
5.0.30.0050.0316.29
5.0.20.0030.0216.26
5.0.10.0020.0226.24
5.0.00.0030.0326.23
4.4.90.0050.0204.78
4.4.80.0030.0194.76
4.4.70.0040.0154.75
4.4.60.0030.0164.75
4.4.50.0040.0154.77
4.4.40.0030.0264.71
4.4.30.0020.0184.76
4.4.20.0040.0164.84
4.4.10.0020.0184.85
4.4.00.0030.0374.76
4.3.110.0030.0244.67
4.3.100.0070.0224.67
4.3.90.0050.0204.64
4.3.80.0060.0264.58
4.3.70.0030.0164.63
4.3.60.0040.0214.63
4.3.50.0020.0194.63
4.3.40.0050.0324.54
4.3.30.0040.0153.28
4.3.20.0030.0183.26
4.3.10.0020.0233.22
4.3.00.0070.0177.44

preferences:
52.11 ms | 400 KiB | 5 Q