3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regexEncoding = 'UTF-32'; mb_regex_encoding( $regexEncoding ); var_export( mb_ereg_replace( mb_convert_encoding( '.+', $regexEncoding ), mb_convert_encoding( "the \\\\0", $regexEncoding ), mb_convert_encoding( 'dog', $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.01418.30
8.3.50.0120.00318.18
8.3.40.0090.00918.70
8.3.30.0070.00718.77
8.3.20.0070.00021.60
8.3.10.0040.00718.65
8.3.00.0040.00417.25
8.2.180.0040.01818.29
8.2.170.0120.00322.96
8.2.160.0140.00022.02
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00418.16
8.2.120.0040.00426.16
8.2.110.0030.00721.13
8.2.100.0000.01219.51
8.2.90.0100.00017.75
8.2.80.0050.00318.77
8.2.70.0080.00017.91
8.2.60.0030.00618.03
8.2.50.0080.00018.10
8.2.40.0080.00019.17
8.2.30.0020.00519.12
8.2.20.0030.00617.93
8.2.10.0040.00419.35
8.2.00.0030.00618.12
8.1.280.0100.00625.92
8.1.270.0070.00020.41
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0110.00723.95
8.1.230.0110.00017.83
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0080.00017.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0060.00618.52
8.1.160.0040.00418.92
8.1.150.0000.00818.77
8.1.140.0080.00017.40
8.1.130.0040.00421.85
8.1.120.0030.00317.48
8.1.110.0070.00017.46
8.1.100.0020.00517.52
8.1.90.0040.00417.38
8.1.80.0030.00617.35
8.1.70.0000.00717.43
8.1.60.0040.00417.57
8.1.50.0090.00317.55
8.1.40.0050.00617.49
8.1.30.0080.00017.62
8.1.20.0000.00717.64
8.1.10.0000.00717.47
8.1.00.0000.00717.34
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.36
8.0.270.0030.00317.25
8.0.260.0030.00318.46
8.0.250.0030.00316.98
8.0.240.0000.00716.95
8.0.230.0000.00716.89
8.0.220.0080.00016.91
8.0.210.0040.00416.87
8.0.200.0030.00316.89
8.0.190.0040.00416.96
8.0.180.0040.00416.80
8.0.170.0040.00416.90
8.0.160.0000.00816.83
8.0.150.0000.00716.77
8.0.140.0070.00016.87
8.0.130.0030.00313.31
8.0.120.0030.00516.77
8.0.110.0040.00416.87
8.0.100.0040.00416.89
8.0.90.0050.00216.95
8.0.80.0050.01016.80
8.0.70.0040.00416.71
8.0.60.0000.00816.69
8.0.50.0030.00316.88
8.0.30.0100.01017.06
8.0.20.0130.00817.06
8.0.10.0000.00817.04
8.0.00.0110.00616.74
7.4.330.0060.00015.55
7.4.320.0000.00716.62
7.4.300.0000.00616.41
7.4.290.0030.00516.58
7.4.280.0050.00316.63
7.4.270.0000.00716.52
7.4.260.0040.00416.63
7.4.250.0040.00416.57
7.4.240.0030.00316.53
7.4.230.0030.00316.69
7.4.220.0030.00516.50
7.4.210.0070.00816.56
7.4.200.0000.00716.61
7.4.160.0110.00816.40
7.4.140.0140.00517.86
7.4.130.0060.01316.65
7.4.120.0090.00916.43
7.4.110.0080.00816.29
7.4.100.0070.01516.38
7.4.90.0100.00616.50
7.4.80.0100.00719.39
7.4.70.0060.01016.39
7.4.60.0080.00816.26
7.4.50.0060.01016.46
7.4.40.0100.00716.41
7.4.00.0070.01014.82
7.3.330.0030.00312.95
7.3.320.0050.00012.95
7.3.310.0040.00416.21
7.3.300.0070.00016.07
7.3.290.0000.00716.19
7.3.280.0060.00916.20
7.3.260.0110.00816.27
7.3.240.0120.00716.21
7.3.230.0070.01216.22
7.3.210.0110.00616.27
7.3.200.0060.01216.20
7.3.190.0000.01716.29
7.3.180.0130.00316.30
7.3.170.0070.01516.52
7.3.160.0060.01016.52
7.3.120.0030.01414.75
7.3.110.0090.00914.81
7.3.100.0040.01114.71
7.3.90.0110.00314.47
7.3.80.0060.01014.72
7.3.70.0040.00414.85
7.3.60.0030.01014.66
7.3.50.0070.00714.58
7.3.40.0100.00314.80
7.3.30.0110.00414.74
7.3.20.0030.01016.52
7.3.10.0310.00815.66
7.3.00.0520.01015.63
7.2.330.0060.01216.54
7.2.320.0030.01416.56
7.2.310.0100.00616.31
7.2.300.0030.01316.37
7.2.290.0030.01816.30
7.2.250.0030.01214.79
7.2.240.0100.01015.05
7.2.230.0030.01214.99
7.2.220.0060.00814.84
7.2.210.0090.00615.07
7.2.200.0030.01014.75
7.2.190.0030.01314.77
7.2.180.0040.01114.95
7.2.170.0030.00614.88
7.2.160.0030.01414.80
7.2.150.0000.01316.81
7.2.140.0110.00416.80
7.2.130.0350.00515.95
7.2.120.0380.00215.70
7.2.110.0260.01015.83
7.2.100.0280.01115.79
7.2.90.0280.00515.66
7.2.80.0260.00515.65
7.2.70.0230.01015.72
7.2.60.0260.00715.78
7.2.50.0290.00615.90
7.2.40.0340.00515.92
7.2.30.0350.00815.67
7.2.20.0330.01315.67
7.2.10.0300.01415.90
7.2.00.0330.00715.66
7.1.330.0060.01015.82
7.1.320.0090.00615.68
7.1.310.0060.00315.79
7.1.300.0090.00615.80
7.1.290.0030.01015.71
7.1.280.0090.00315.62
7.1.270.0000.01515.61
7.1.260.0040.01115.71
7.1.250.0360.00314.88
7.1.240.0000.01715.78
7.1.230.0100.00315.54
7.1.220.0110.00715.63
7.1.210.0080.00015.70
7.1.200.0000.01515.73
7.1.190.0060.00615.91
7.1.180.0000.01515.71
7.1.170.0060.00615.77
7.1.160.0090.00615.82
7.1.150.0130.00015.82
7.1.140.0000.01515.88
7.1.130.0070.00715.81
7.1.120.0030.01015.84
7.1.110.0070.00715.85
7.1.100.0070.00715.72
7.1.90.0070.00715.71
7.1.80.0000.01315.83
7.1.70.0090.00315.63
7.1.60.0030.01015.75
7.1.50.0040.00815.71
7.1.40.0080.00415.84
7.1.30.0000.01415.58
7.1.20.0060.00615.85
7.1.10.0040.01115.90
7.1.00.0060.00615.74

preferences:
34.36 ms | 400 KiB | 5 Q