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 \\1", $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.0110.00718.43
8.3.50.0130.00718.01
8.3.40.0090.00618.39
8.3.30.0030.01418.54
8.3.20.0000.00721.90
8.3.10.0070.00418.65
8.3.00.0040.00417.34
8.2.180.0120.00316.63
8.2.170.0110.00718.91
8.2.160.0100.00322.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00417.91
8.2.120.0000.00826.35
8.2.110.0100.00021.95
8.2.100.0090.00317.78
8.2.90.0050.00317.87
8.2.80.0040.00417.97
8.2.70.0030.00517.80
8.2.60.0050.00317.91
8.2.50.0000.00818.10
8.2.40.0060.00319.25
8.2.30.0040.00419.22
8.2.20.0060.00318.10
8.2.10.0040.00419.34
8.2.00.0040.00418.10
8.1.280.0040.01125.92
8.1.270.0070.00020.38
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00817.36
8.1.230.0120.00020.84
8.1.220.0060.00317.74
8.1.210.0080.00018.79
8.1.200.0030.00617.23
8.1.190.0080.00317.23
8.1.180.0030.00618.10
8.1.170.0030.00618.49
8.1.160.0000.00718.95
8.1.150.0050.00218.84
8.1.140.0000.00820.69
8.1.130.0000.00821.98
8.1.120.0000.00717.45
8.1.110.0000.00717.34
8.1.100.0050.00217.47
8.1.90.0000.00717.38
8.1.80.0000.00817.35
8.1.70.0070.00017.45
8.1.60.0030.00617.50
8.1.50.0080.00017.41
8.1.40.0060.00617.45
8.1.30.0000.00817.64
8.1.20.0000.00817.66
8.1.10.0000.00717.52
8.1.00.0000.00717.41
8.0.300.0080.00020.20
8.0.290.0050.00316.62
8.0.280.0050.00218.48
8.0.270.0040.00416.92
8.0.260.0050.00318.35
8.0.250.0050.00216.95
8.0.240.0070.00016.88
8.0.230.0000.00716.99
8.0.220.0040.00416.75
8.0.210.0000.00716.84
8.0.200.0070.00016.95
8.0.190.0000.00816.96
8.0.180.0000.00816.92
8.0.170.0060.00316.88
8.0.160.0040.00416.89
8.0.150.0030.00516.84
8.0.140.0040.00416.88
8.0.130.0050.00013.30
8.0.120.0040.00416.88
8.0.110.0000.00716.90
8.0.100.0040.00416.78
8.0.90.0050.00216.75
8.0.80.0110.00516.90
8.0.70.0040.00316.80
8.0.60.0040.00416.70
8.0.50.0070.00016.73
8.0.30.0120.00817.06
8.0.20.0130.01116.99
8.0.10.0080.00016.97
8.0.00.0090.00916.79
7.4.330.0050.00015.55
7.4.320.0030.00316.40
7.4.300.0000.00616.45
7.4.290.0070.00016.42
7.4.280.0000.00816.64
7.4.270.0000.00816.64
7.4.260.0060.00316.46
7.4.250.0070.00016.55
7.4.240.0070.00016.61
7.4.230.0030.00316.67
7.4.220.0040.00416.63
7.4.210.0040.01216.62
7.4.200.0050.00216.54
7.4.160.0090.00916.51
7.4.140.0040.01517.86
7.4.130.0100.00716.37
7.4.120.0110.00716.56
7.4.110.0150.00616.38
7.4.100.0150.00416.68
7.4.90.0030.01316.32
7.4.80.0140.00319.39
7.4.70.0040.01516.41
7.4.60.0080.01616.41
7.4.50.0000.01316.23
7.4.40.0130.00316.43
7.4.00.0080.00815.11
7.3.330.0000.00513.04
7.3.320.0060.00013.09
7.3.310.0000.00716.29
7.3.300.0000.00716.15
7.3.290.0030.00316.19
7.3.280.0070.01016.18
7.3.260.0110.00916.33
7.3.240.0120.00816.29
7.3.230.0060.01216.16
7.3.210.0070.01016.37
7.3.200.0120.00916.28
7.3.190.0130.00616.36
7.3.180.0100.00616.05
7.3.170.0030.01316.53
7.3.160.0070.01016.13
7.3.120.0120.00614.69
7.3.110.0130.00014.79
7.3.100.0090.00614.66
7.3.90.0060.00914.78
7.3.80.0060.00314.78
7.3.70.0030.00914.59
7.3.60.0000.01114.84
7.3.50.0030.00814.91
7.3.40.0130.00314.63
7.3.30.0030.01014.65
7.3.20.0030.00916.59
7.3.10.0510.00515.56
7.3.00.0380.00815.53
7.2.330.0070.01016.58
7.2.320.0130.01016.66
7.2.310.0090.00916.61
7.2.300.0070.01016.38
7.2.290.0030.01316.28
7.2.250.0070.01114.52
7.2.240.0030.01714.80
7.2.230.0130.00314.89
7.2.220.0030.00614.89
7.2.210.0110.00714.82
7.2.200.0030.01014.77
7.2.190.0030.01214.87
7.2.180.0060.01014.66
7.2.170.0070.01014.96
7.2.130.0830.00714.89
7.2.120.0750.00314.68
7.2.110.0770.00314.92
7.2.100.0880.00714.81
7.2.90.0800.00315.04
7.2.80.0980.00314.68
7.2.70.0890.00314.75
7.2.60.0760.00415.01
7.2.50.0740.00014.72
7.2.40.1080.00914.73
7.2.30.0860.00715.10
7.2.20.0750.00314.67
7.2.10.0730.00314.48
7.2.00.0790.01314.96
7.1.330.0110.00415.51
7.1.320.0040.01115.72
7.1.310.0060.00315.72
7.1.300.0000.01415.58
7.1.290.0100.00716.00
7.1.280.0000.01515.68
7.1.270.0060.00315.72
7.1.260.0060.00915.64
7.1.250.0710.00313.80

preferences:
56.98 ms | 401 KiB | 5 Q