3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regexEncoding = "CP-1251"; var_dump(mb_internal_encoding($regexEncoding)); exit(); var_dump(mb_regex_encoding($regexEncoding));

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.0070.00716.38
8.3.50.0130.00522.06
8.3.40.0040.01118.71
8.3.30.0110.00419.02
8.3.20.0030.00620.08
8.3.10.0050.00223.66
8.3.00.0000.00919.15
8.2.180.0110.01116.75
8.2.170.0140.00722.96
8.2.160.0060.00620.64
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0120.00322.29
8.2.110.0090.00020.78
8.2.100.0120.00019.70
8.2.90.0080.00018.02
8.2.80.0040.00420.48
8.2.70.0040.00417.75
8.2.60.0000.00817.75
8.2.50.0000.00717.75
8.2.40.0000.00818.16
8.2.30.0040.00418.03
8.2.20.0030.00517.72
8.2.10.0040.00418.14
8.2.00.0000.00817.73
8.1.280.0070.00725.92
8.1.270.0090.00022.14
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00423.96
8.1.230.0000.01120.95
8.1.220.0060.00317.78
8.1.210.0000.00918.77
8.1.200.0060.00617.48
8.1.190.0050.00317.47
8.1.180.0050.00318.10
8.1.170.0040.00418.68
8.1.160.0030.00521.94
8.1.150.0030.00518.64
8.1.140.0040.00417.43
8.1.130.0030.00317.94
8.1.120.0080.00017.41
8.1.110.0080.00017.48
8.1.100.0070.00017.47
8.1.90.0000.00717.40
8.1.80.0070.00017.47
8.1.70.0030.00317.45
8.1.60.0040.00417.63
8.1.50.0000.00817.62
8.1.40.0040.00417.63
8.1.30.0030.00517.67
8.1.20.0030.00517.76
8.1.10.0030.00617.63
8.1.00.0000.00817.59
8.0.300.0030.00320.16
8.0.290.0070.00016.75
8.0.280.0030.00318.36
8.0.270.0030.00317.23
8.0.260.0000.00616.87
8.0.250.0000.00617.04
8.0.240.0070.00016.98
8.0.230.0050.00217.04
8.0.220.0030.00316.95
8.0.210.0030.00316.92
8.0.200.0070.00017.02
8.0.190.0040.00417.02
8.0.180.0070.00016.97
8.0.170.0040.00416.98
8.0.160.0000.00816.89
8.0.150.0030.00316.96
8.0.140.0000.00716.86
8.0.130.0000.00813.42
8.0.120.0000.00816.90
8.0.110.0050.00216.98
8.0.100.0030.00316.89
8.0.90.0000.00816.72
8.0.80.0070.01016.87
8.0.70.0070.00016.81
8.0.60.0070.00016.88
8.0.50.0000.00716.99
8.0.30.0110.00917.01
8.0.20.0090.01017.40
8.0.10.0040.00416.95
8.0.00.0060.01516.73
7.4.330.0020.00215.09
7.4.320.0000.00616.48
7.4.300.0030.00316.49
7.4.290.0000.00716.59
7.4.280.0030.00316.58
7.4.270.0080.00016.57
7.4.260.0030.00316.47
7.4.250.0000.00916.30
7.4.240.0020.00516.46
7.4.230.0000.00716.24
7.4.220.0100.00716.52
7.4.210.0080.00516.57
7.4.200.0020.00516.59
7.4.190.0000.00716.55
7.4.160.0030.01716.42
7.4.150.0130.00717.40
7.4.140.0100.00717.86
7.4.130.0090.00716.50
7.4.120.0060.01116.58
7.4.110.0090.00616.43
7.4.100.0070.01016.56
7.4.90.0100.00716.47
7.4.80.0070.01419.39
7.4.70.0110.00716.54
7.4.60.0060.01016.38
7.4.50.0000.00816.43
7.4.40.0100.00722.77
7.4.30.0100.00716.28
7.4.00.0090.00614.80
7.3.330.0050.00013.19
7.3.320.0030.00312.94
7.3.310.0000.00716.21
7.3.300.0040.00416.23
7.3.290.0120.00716.27
7.3.280.0060.01216.30
7.3.270.0060.01017.40
7.3.260.0130.01116.16
7.3.250.0080.01016.18
7.3.240.0150.00016.35
7.3.230.0100.00716.39
7.3.210.0070.01016.47
7.3.200.0170.00619.39
7.3.190.0030.01816.47
7.3.180.0080.00816.61
7.3.170.0130.00316.61
7.3.160.0100.00716.41
7.3.120.0100.00714.64
7.2.330.0100.00716.77
7.2.320.0120.00616.66
7.2.310.0090.00916.38
7.2.300.0030.01316.66
7.2.290.0150.00316.41
7.2.00.0000.01119.49
7.1.100.0090.00318.27
7.1.70.0040.00417.29
7.1.60.0130.01319.33
7.1.50.0100.01316.94
7.1.00.0030.07322.45
7.0.200.0000.00816.63
7.0.140.0070.07021.97
7.0.60.0070.04020.05
7.0.50.0000.09017.66
7.0.40.0130.07320.12
7.0.30.0330.07720.20
7.0.20.0270.05020.16
7.0.10.0000.05020.17
7.0.00.0030.04320.16
5.6.280.0030.06721.02
5.6.210.0100.07720.46
5.6.200.0170.08018.16
5.6.190.0130.06020.41
5.6.180.0330.07720.35
5.6.170.0230.07020.43
5.6.160.0070.07320.61
5.6.150.0030.04018.23
5.6.140.0130.07318.18
5.6.130.0230.06718.14
5.6.120.0200.07021.00
5.6.110.0070.05021.04
5.6.100.0100.04321.12
5.6.90.0100.07720.97
5.6.80.0030.04020.36
5.6.70.2970.03720.52
5.5.350.0130.04720.39
5.5.340.0130.07317.93
5.5.330.0030.04020.47
5.5.320.0400.03320.50
5.5.310.0300.07320.41
5.5.300.0130.07317.99
5.5.290.0200.07017.96
5.5.280.0070.06720.96
5.5.270.0030.09020.95
5.5.260.0070.08320.78
5.5.250.0130.05720.46
5.5.240.0370.06320.34
5.4.450.2170.05319.54
5.4.440.2930.04019.45
5.4.430.0030.04019.56
5.4.420.0070.04019.25
5.4.410.0030.04319.29
5.4.400.0130.04019.13
5.4.390.0170.03719.25
5.4.380.0200.04719.16
5.4.370.0230.03018.88
5.4.360.0300.03018.79
5.4.350.0170.04019.06
5.4.340.0200.07319.13
5.4.320.0300.04719.24
5.4.310.0300.06019.16
5.4.300.0300.03319.21
5.4.290.0300.06019.09
5.4.280.0300.04719.06
5.4.270.0170.04319.08
5.4.260.0230.05019.08
5.4.250.0270.05719.08
5.4.240.0270.05318.87
5.4.230.0330.03319.07
5.4.220.0200.05718.92
5.4.210.0230.07718.91
5.4.200.0300.05318.76
5.4.190.0400.06319.12
5.4.180.0300.05719.12
5.4.170.0300.05719.07
5.4.160.0270.04319.11
5.4.150.0300.03318.79
5.4.140.0370.06716.25
5.4.130.0370.05716.43
5.4.120.0300.06716.34
5.4.110.0400.03316.43
5.4.100.0200.07716.30
5.4.90.0230.07716.48
5.4.80.0300.06316.02
5.4.70.0270.04716.39
5.4.60.0200.04016.47
5.4.50.0270.03316.47
5.4.40.0230.03716.43
5.4.30.0230.03716.03
5.4.20.0270.05016.35
5.4.10.0230.07716.34
5.4.00.0330.07015.78
5.3.290.0330.05714.63
5.3.280.0270.03314.50
5.3.270.0370.06714.46
5.3.260.0200.04314.44
5.3.250.0400.06014.46
5.3.240.0370.06014.45
5.3.230.0300.06714.43
5.3.220.0300.05314.51
5.3.210.0270.05314.46
5.3.200.0370.03714.49
5.3.190.0270.08014.59
5.3.180.0270.06314.51
5.3.170.0200.04714.50
5.3.160.0300.07014.41
5.3.150.0230.04314.50
5.3.140.0270.03314.39
5.3.130.0270.03314.39
5.3.120.0270.07014.63
5.3.110.0270.07314.58
5.3.100.0300.04714.06
5.3.90.0270.07313.85
5.3.80.0270.06013.92
5.3.70.0230.03713.89
5.3.60.0230.03713.91
5.3.50.0330.07313.80
5.3.40.0330.04013.88
5.3.30.0270.04713.93
5.3.20.0300.03713.56
5.3.10.0230.04713.50
5.3.00.0370.05713.57
5.2.170.0230.03711.53
5.2.160.0300.05311.53
5.2.150.0270.05711.53
5.2.140.0270.05311.53
5.2.130.0300.05311.53
5.2.120.0170.05011.53
5.2.110.0270.04711.53
5.2.100.0170.03311.53
5.2.90.0200.03011.53
5.2.80.0230.02711.53
5.2.70.0230.04011.53
5.2.60.0330.04011.53
5.2.50.0130.03311.53
5.2.40.0230.03011.53
5.2.30.0300.05311.53
5.2.20.0300.04311.53
5.2.10.0270.05011.53
5.2.00.0170.05311.53
5.1.60.0330.01711.53
5.1.50.0170.03711.53
5.1.40.0230.05011.53
5.1.30.0200.05011.53
5.1.20.0270.05011.53
5.1.10.0270.04711.53
5.1.00.0170.03311.53
5.0.50.0070.04311.53
5.0.40.0100.03711.53
5.0.30.0100.04011.53
5.0.20.0130.02711.53
5.0.10.0100.04311.53
5.0.00.0170.05711.53
4.4.90.0130.02011.53
4.4.80.0100.01711.53
4.4.70.0070.02711.53
4.4.60.0130.01711.53
4.4.50.0130.03311.53
4.4.40.0100.05311.53
4.4.30.0030.02011.53
4.4.20.0100.03711.53
4.4.10.0100.03011.53
4.4.00.0170.04311.53
4.3.110.0070.02311.53
4.3.100.0170.02711.53
4.3.90.0070.02711.53
4.3.80.0130.03711.53
4.3.70.0130.02711.53
4.3.60.0170.03011.53
4.3.50.0070.03311.53
4.3.40.0100.03311.53
4.3.30.0100.02311.53
4.3.20.0030.03711.53
4.3.10.0030.03711.53
4.3.00.0100.02711.53

preferences:
58.47 ms | 401 KiB | 5 Q