3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testValue = 'mdpre'; $baseValue = 'mdprefid'; var_dump(preg_match('/^' . $testValue . '/', $baseValue));

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.71
8.3.30.0120.00418.84
8.3.20.0050.00318.74
8.3.10.0000.00818.89
8.3.00.0040.00419.51
8.2.170.0140.00022.96
8.2.160.0100.00618.89
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00520.93
8.2.110.0000.00920.56
8.2.100.0070.00417.91
8.2.90.0040.00420.60
8.2.80.0030.00517.97
8.2.70.0040.00418.04
8.2.60.0030.00618.22
8.2.50.0050.00318.10
8.2.40.0060.00319.39
8.2.30.0060.00317.82
8.2.20.0110.00017.69
8.2.10.0000.00717.69
8.2.00.0020.00517.86
8.1.270.0080.00323.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00623.86
8.1.230.0000.01121.04
8.1.220.0050.00317.79
8.1.210.0040.00419.17
8.1.200.0040.00417.48
8.1.190.0060.00317.23
8.1.180.0000.00918.10
8.1.170.0030.00618.73
8.1.160.0040.00418.72
8.1.150.0080.00018.82
8.1.140.0040.00417.49
8.1.130.0000.00719.35
8.1.120.0000.00717.57
8.1.110.0030.00617.61
8.1.100.0000.00717.55
8.1.90.0030.00517.58
8.1.80.0050.00217.49
8.1.70.0070.00017.50
8.1.60.0120.00017.73
8.1.50.0060.00317.63
8.1.40.0000.00817.56
8.1.30.0030.00617.73
8.1.20.0000.00817.84
8.1.10.0040.00417.55
8.1.00.0000.00817.47
8.0.300.0000.00719.90
8.0.290.0040.00416.75
8.0.280.0030.00518.41
8.0.270.0050.00217.27
8.0.260.0080.00016.87
8.0.250.0000.00717.05
8.0.240.0000.00817.07
8.0.230.0070.00016.97
8.0.220.0000.00716.99
8.0.210.0070.00017.03
8.0.200.0030.00317.07
8.0.190.0070.00016.96
8.0.180.0030.00616.94
8.0.170.0040.00416.96
8.0.160.0050.00317.16
8.0.150.0000.00816.80
8.0.140.0060.00616.87
8.0.130.0060.00013.43
8.0.120.0000.00816.97
8.0.110.0040.00417.07
8.0.100.0000.00716.95
8.0.90.0040.00417.05
8.0.80.0100.00717.02
8.0.70.0050.00217.09
8.0.60.0000.00816.93
8.0.50.0000.00817.02
8.0.30.0080.01217.35
8.0.20.0120.01217.21
8.0.10.0000.00817.14
8.0.00.0140.00816.93
7.4.330.0020.00213.12
7.4.320.0030.00316.53
7.4.300.0030.00316.66
7.4.290.0030.00316.79
7.4.280.0060.00316.68
7.4.270.0000.00716.74
7.4.260.0000.00513.39
7.4.250.0030.00616.53
7.4.240.0040.00416.70
7.4.230.0060.00316.57
7.4.220.0030.02016.65
7.4.210.0000.01516.80
7.4.200.0040.00416.55
7.4.190.0000.00716.50
7.4.160.0070.01016.70
7.4.150.0180.00416.70
7.4.140.0060.01216.71
7.4.130.0030.01316.67
7.4.120.0090.00916.48
7.4.110.0060.01216.53
7.4.100.0060.01516.64
7.4.90.0060.01216.68
7.4.80.0090.00919.39
7.4.70.0080.00816.55
7.4.60.0100.00716.56
7.4.50.0000.00616.63
7.4.40.0090.00616.57
7.4.30.0040.01416.63
7.4.00.0100.00715.09
7.3.330.0060.00013.23
7.3.320.0000.00513.18
7.3.310.0000.00816.24
7.3.300.0050.00316.40
7.3.290.0080.00516.45
7.3.280.0090.00716.40
7.3.270.0130.00716.31
7.3.260.0070.01016.45
7.3.250.0120.00616.72
7.3.240.0110.00616.72
7.3.230.0100.00716.57
7.3.210.0100.00716.45
7.3.200.0130.00316.45
7.3.190.0060.01216.51
7.3.180.0090.00616.64
7.3.170.0120.00916.36
7.3.160.0070.01116.54
7.3.120.0070.01115.02
7.3.110.0050.01014.97
7.3.100.0040.00715.05
7.3.90.0020.01514.84
7.3.80.0070.00915.19
7.3.70.0080.00514.97
7.3.60.0060.00814.99
7.3.50.0030.00914.79
7.3.40.0090.00615.04
7.3.30.0030.01015.06
7.3.20.0060.00316.82
7.3.10.0060.01016.79
7.3.00.0090.00416.79
7.2.330.0110.00716.50
7.2.320.0030.01316.52
7.2.310.0060.01216.66
7.2.300.0060.00916.56
7.2.290.0160.00716.52
7.2.250.0060.01215.28
7.2.240.0060.01315.18
7.2.230.0070.01215.15
7.2.220.0040.00615.09
7.2.210.0050.01115.20
7.2.200.0080.00715.06
7.2.190.0060.00614.91
7.2.180.0090.00815.17
7.2.170.0050.00715.00
7.2.00.0040.01219.52
7.1.330.0070.00616.06
7.1.320.0070.00316.00
7.1.310.0040.00916.01
7.1.300.0070.00515.84
7.1.290.0080.00715.71
7.1.280.0030.00815.84
7.1.270.0030.00715.94
7.1.260.0090.00616.02
7.1.100.0070.00718.68
7.1.70.0000.00817.06
7.1.60.0070.01819.30
7.1.50.0150.00016.91
7.1.00.0000.07022.49
7.0.200.0030.00516.66
7.0.140.0100.06722.15
7.0.120.0030.07322.04
7.0.60.0100.03320.06
7.0.50.0000.05317.68
7.0.40.0030.04320.29
7.0.30.0270.07720.34
7.0.20.0230.07720.02
7.0.10.0070.05320.10
7.0.00.0070.09020.02
5.6.280.0030.07321.01
5.6.210.0100.07720.45
5.6.200.0100.07718.18
5.6.190.0100.08020.43
5.6.180.0230.04320.39
5.6.170.0270.07720.48
5.6.160.0070.05320.49
5.6.150.0030.05018.21
5.6.140.0030.07718.08
5.6.130.0070.07318.20
5.6.120.0070.08721.11
5.6.110.0100.08720.88
5.6.100.0030.04321.08
5.6.90.0070.04720.96
5.6.80.0070.08020.39
5.5.350.0000.08320.37
5.5.340.0100.05017.92
5.5.330.0030.08020.07
5.5.320.0030.05320.18
5.5.310.0270.07720.32
5.5.300.0100.07718.01
5.5.290.0170.06718.02
5.5.280.0000.09020.63
5.5.270.0170.07320.86
5.5.260.0030.06320.71
5.5.250.0100.07020.54
5.5.240.0230.03720.25
5.4.450.0070.04019.51
5.4.440.0070.05319.13
5.4.430.0030.07719.47
5.4.420.0070.08019.47
5.4.410.0130.06319.27
5.4.400.0030.04719.09
5.4.390.0100.06719.18
5.4.380.0000.06319.18
5.4.370.0100.06318.92
5.4.360.0030.05718.91
5.4.350.0130.05719.16
5.4.340.0130.05018.80
5.4.320.0030.07019.16
5.4.310.0030.07719.00
5.4.300.0030.07718.80
5.4.290.0030.05718.79
5.4.280.0100.06719.17
5.4.270.0170.07019.18
5.4.260.0130.03019.11
5.4.250.0070.03318.90
5.4.240.0070.05719.14
5.4.230.0130.04718.78
5.4.220.0030.04719.15
5.4.210.0130.03318.77
5.4.200.0070.06019.07
5.4.190.0070.04018.80
5.4.180.0070.03319.13
5.4.170.0070.03318.77
5.4.160.0130.03318.98
5.4.150.0000.04019.16
5.4.140.0030.03316.36
5.4.130.0070.04016.47
5.4.120.0030.03316.21
5.4.110.0000.03716.41
5.4.100.0000.03716.39
5.4.90.0000.03716.23
5.4.80.0000.03716.25
5.4.70.0030.03316.28
5.4.60.0030.03316.21
5.4.50.0000.03716.27
5.4.40.0070.03016.12
5.4.30.0000.03716.26
5.4.20.0000.03716.38
5.4.10.0030.03316.25
5.4.00.0000.03715.70
5.3.290.0130.05714.48
5.3.280.0070.08014.51
5.3.270.0070.04314.69
5.3.260.0030.03714.57
5.3.250.0000.04714.49
5.3.240.0030.03714.52
5.3.230.0070.04314.41
5.3.220.0000.03714.65
5.3.210.0000.04014.37
5.3.200.0030.03714.52
5.3.190.0030.03714.50
5.3.180.0000.03714.52
5.3.170.0000.03714.54
5.3.160.0030.03314.48
5.3.150.0070.03314.66
5.3.140.0030.03714.39
5.3.130.0030.03714.48
5.3.120.0030.03714.35
5.3.110.0030.03714.44
5.3.100.0030.03713.96
5.3.90.0070.03313.98
5.3.80.0100.02713.97
5.3.70.0030.03313.97
5.3.60.0000.03713.79
5.3.50.0000.03713.87
5.3.40.0000.03713.87
5.3.30.0000.03713.99
5.3.20.0030.03313.50
5.3.10.0000.03713.49
5.3.00.0030.03313.65
5.2.170.0030.02711.08
5.2.160.0030.03011.00
5.2.150.0030.02711.15
5.2.140.0000.03311.14
5.2.130.0000.03010.99
5.2.120.0000.03011.18
5.2.110.0000.03011.06
5.2.100.0000.03010.95
5.2.90.0070.02310.98
5.2.80.0030.03311.17
5.2.70.0000.03010.98
5.2.60.0000.03311.05
5.2.50.0100.02310.91
5.2.40.0100.04710.93
5.2.30.0030.03310.96
5.2.20.0070.05711.11
5.2.10.0100.05310.90
5.2.00.0030.03310.71
5.1.60.0030.0279.89
5.1.50.0070.0279.84
5.1.40.0030.02710.04
5.1.30.0000.03310.34
5.1.20.0030.02710.24
5.1.10.0000.03010.01
5.1.00.0030.05310.07
5.0.50.0070.0408.69
5.0.40.0000.0238.39
5.0.30.0070.0578.20
5.0.20.0100.0378.21
5.0.10.0000.0278.23
5.0.00.0030.0538.12
4.4.90.0000.0137.86
4.4.80.0000.0177.86
4.4.70.0000.0337.86
4.4.60.0000.0177.86
4.4.50.0000.0177.86
4.4.40.0000.0337.86
4.4.30.0030.0337.86
4.4.20.0070.0307.86
4.4.10.0030.0377.86
4.4.00.0070.0337.86
4.3.110.0030.0207.86
4.3.100.0070.0237.86
4.3.90.0030.0237.86
4.3.80.0000.0477.86
4.3.70.0030.0337.86
4.3.60.0000.0177.86
4.3.50.0030.0177.86
4.3.40.0000.0307.86
4.3.30.0000.0337.86
4.3.20.0030.0337.86
4.3.10.0070.0277.86
4.3.00.0070.0307.86

preferences:
43.49 ms | 400 KiB | 5 Q