3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Lorem ipsum random_5ac18d179707d dolor random_5ac18d179707d sit amet, consectetur random_5ac18decebd4e adipiscing elit. random_5ac18d179707d"; preg_match_all('~random_(\w+)~', $string, $m); echo strtr($string, array_combine($s = array_unique($m[1]), range(1, count($s))));

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.5.10.0120.00616.98
8.5.00.0120.01420.17
8.4.150.0030.00014.05
8.4.140.0120.00917.95
8.4.130.0090.00918.93
8.4.120.0130.00724.33
8.4.110.0090.01218.99
8.4.100.0100.01118.76
8.4.90.0060.00320.77
8.4.80.0160.00519.97
8.4.70.0120.01117.99
8.4.60.0110.00718.77
8.4.50.0030.00518.59
8.4.40.0040.01518.05
8.4.30.0100.00318.03
8.4.20.0120.00419.71
8.4.10.0080.00817.87
8.3.280.0150.00818.64
8.3.270.0130.00816.98
8.3.260.0040.00917.00
8.3.250.0080.01118.88
8.3.240.0120.00717.15
8.3.230.0050.00416.79
8.3.220.0060.00119.07
8.3.210.0050.00318.71
8.3.200.0020.00716.64
8.3.190.0140.00417.32
8.3.180.0110.00816.72
8.3.170.0130.00317.35
8.3.160.0060.01218.45
8.3.150.0040.00418.97
8.3.140.0050.00317.54
8.3.130.0050.00318.52
8.3.120.0030.00619.27
8.3.110.0100.00020.94
8.3.100.0040.00424.06
8.3.90.0060.00918.54
8.3.80.0000.01218.56
8.3.70.0090.00616.63
8.3.60.0070.01116.73
8.3.50.0110.00517.62
8.3.40.0110.00419.10
8.3.30.0090.00619.14
8.3.20.0000.00821.86
8.3.10.0040.00421.73
8.3.00.0040.00420.95
8.2.290.0090.01020.49
8.2.280.0060.00318.50
8.2.270.0130.00917.42
8.2.260.0110.00716.69
8.2.250.0060.00316.73
8.2.240.0030.00517.20
8.2.230.0030.00622.58
8.2.220.0090.00037.54
8.2.210.0090.00926.77
8.2.200.0060.00316.75
8.2.190.0120.00418.79
8.2.180.0150.00016.88
8.2.170.0090.00622.96
8.2.160.0040.01121.31
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00019.89
8.2.120.0050.00326.35
8.2.110.0060.00319.27
8.2.100.0060.00617.97
8.2.90.0040.00418.03
8.2.80.0030.00618.16
8.2.70.0050.00317.88
8.2.60.0050.00317.93
8.2.50.0050.00518.07
8.2.40.0000.00818.22
8.2.30.0040.00418.07
8.2.20.0000.00718.07
8.2.10.0080.00018.06
8.2.00.0000.00718.14
8.1.330.0140.00522.17
8.1.320.0120.00716.43
8.1.310.0080.00016.46
8.1.300.0060.00318.59
8.1.290.0040.00418.88
8.1.280.0190.00325.92
8.1.270.0000.00920.65
8.1.260.0040.00426.35
8.1.250.0100.00028.09
8.1.240.0030.00719.25
8.1.230.0080.00320.96
8.1.220.0040.00417.79
8.1.210.0040.00418.85
8.1.200.0030.00617.48
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0070.00418.85
8.1.160.0040.00418.85
8.1.150.0000.00718.90
8.1.140.0050.00217.73
8.1.130.0030.00320.36
8.1.120.0040.00417.61
8.1.110.0000.00817.52
8.1.100.0050.00317.54
8.1.90.0070.00317.65
8.1.80.0000.01017.61
8.1.70.0090.00017.50
8.1.60.0060.00317.68
8.1.50.0070.00717.58
8.1.40.0080.00017.67
8.1.30.0000.00917.88
8.1.20.0040.00417.68
8.1.10.0050.00317.77
8.1.00.0040.00417.68
8.0.300.0060.00320.10
8.0.290.0040.00416.88
8.0.280.0000.00718.40
8.0.270.0000.00717.28
8.0.260.0030.00316.90
8.0.250.0000.00717.12
8.0.240.0050.00216.98
8.0.230.0000.00816.97
8.0.220.0000.00716.85
8.0.210.0040.00416.85
8.0.200.0060.00017.04
8.0.190.0000.00817.06
8.0.180.0040.00417.04
8.0.170.0000.00916.95
8.0.160.0070.00017.05
8.0.150.0000.00716.96
8.0.140.0000.00717.04
8.0.130.0000.00513.56
8.0.120.0070.00017.06
8.0.110.0070.00017.06
8.0.100.0000.00717.02
8.0.90.0050.00316.87
8.0.80.0080.00817.00
8.0.70.0040.00416.93
8.0.60.0040.00417.01
8.0.50.0040.00416.96
8.0.30.0090.00917.30
8.0.20.0100.01017.40
8.0.10.0030.00517.11
8.0.00.0130.00617.11
7.4.330.0020.00215.55
7.4.320.0000.00616.84
7.4.300.0000.00616.67
7.4.290.0000.00716.70
7.4.280.0030.00516.75
7.4.270.0000.00716.70
7.4.260.0050.00216.78
7.4.250.0050.00316.74
7.4.240.0040.00416.71
7.4.230.0070.00016.53
7.4.220.0030.00416.76
7.4.210.0100.00416.82
7.4.200.0000.00716.92
7.4.160.0090.00716.81
7.4.140.0090.01017.86
7.4.130.0060.01316.79
7.4.120.0120.00716.76
7.4.110.0090.00916.70
7.4.100.0130.00716.50
7.4.90.0030.01316.87
7.4.80.0180.00319.39
7.4.70.0030.01316.58
7.4.60.0100.00616.67
7.4.50.0130.00316.55
7.4.40.0060.01116.61
7.4.10.0070.01015.17
7.4.00.0090.00615.11
7.3.330.0050.00013.31
7.3.320.0000.00613.14
7.3.310.0030.00316.39
7.3.300.0000.00716.43
7.3.290.0030.00316.43
7.3.280.0110.00616.39
7.3.260.0090.00816.66
7.3.240.0080.00916.57
7.3.230.0120.00616.48
7.3.210.0030.01416.70
7.3.200.0080.00816.63
7.3.190.0070.01016.59
7.3.180.0040.01116.41
7.3.170.0120.00616.61
7.3.160.0060.01116.71
7.3.130.0070.01115.05
7.3.120.0060.01215.21
7.3.110.0100.00714.79
7.3.100.0070.00714.96
7.3.90.0040.01114.96
7.3.80.0030.01014.98
7.3.70.0000.00914.92
7.3.60.0030.01015.03
7.3.50.0050.00715.06
7.3.40.0100.00314.93
7.3.30.0050.00514.68
7.3.20.0060.00916.86
7.3.10.0000.01616.97
7.3.00.0070.00416.84
7.2.330.0090.00916.68
7.2.320.0090.01116.97
7.2.310.0090.00916.77
7.2.300.0070.01116.71
7.2.290.0150.00616.77
7.2.260.0070.01015.25
7.2.250.0110.00715.25
7.2.240.0000.01615.13
7.2.230.0080.00815.29
7.2.220.0060.00914.98
7.2.210.0090.00615.44
7.2.200.0040.00715.23
7.2.190.0060.00615.20
7.2.180.0080.00415.18
7.2.170.0030.00915.02
7.2.160.0130.00015.28
7.2.150.0060.00917.19
7.2.140.0040.01416.94
7.2.130.0030.00917.10
7.2.120.0040.01216.76
7.2.110.0100.00617.02
7.2.100.0030.00617.23
7.2.90.0080.01217.16
7.2.80.0090.00617.02
7.2.70.0060.00917.42
7.2.60.0090.00317.11
7.2.50.0080.00617.04
7.2.40.0130.00917.55
7.2.30.0140.00717.46
7.2.20.0120.01017.84
7.2.10.0110.00817.73
7.2.00.0130.01017.70
7.1.330.0060.00616.10
7.1.320.0070.00715.93
7.1.310.0060.00616.05
7.1.300.0080.00516.11
7.1.290.0000.01415.97
7.1.280.0030.00815.99
7.1.270.0000.01216.03
7.1.260.0060.00315.97
7.1.250.0060.00616.00
7.1.240.0070.00716.15
7.1.230.0040.00715.96
7.1.220.0070.00415.82
7.1.210.0030.01015.97
7.1.200.0040.00615.87
7.1.190.0030.00616.07
7.1.180.0090.00315.99
7.1.170.0030.01016.04
7.1.160.0090.00916.36
7.1.150.0180.01016.48
7.1.140.0120.01016.45
7.1.130.0150.00716.43
7.1.120.0130.00816.46
7.1.110.0110.00816.18
7.1.100.0090.00916.20
7.1.90.0080.01416.20
7.1.80.0130.00816.23
7.1.70.0430.01115.89
7.1.60.0200.00824.39
7.1.50.0220.00724.33
7.1.40.0160.01224.20
7.1.30.0210.00924.06
7.1.20.0220.00724.21
7.1.10.0120.01115.51
7.1.00.0120.01115.54
7.0.330.0100.00315.45
7.0.320.0040.00815.50
7.0.310.0000.01115.63
7.0.300.0070.00715.41
7.0.290.0000.01115.19
7.0.280.0000.00815.71
7.0.270.0040.01115.39
7.0.260.0000.01315.39
7.0.250.0060.00615.58
7.0.240.0030.00615.65
7.0.230.0000.01515.48
7.0.220.0070.00315.31
7.0.210.0040.00415.56
7.0.200.0030.01015.79
7.0.190.0110.00315.46
7.0.180.0120.00015.51
7.0.170.0100.00315.68
7.0.160.0030.01015.75
7.0.150.0090.00615.57
7.0.140.0000.00815.30
7.0.130.0030.00715.72
7.0.120.0120.00315.63
7.0.110.0000.01315.42
7.0.100.0070.00715.64
7.0.90.0030.00915.63
7.0.80.0030.01315.65
7.0.70.0080.00515.32
7.0.60.0070.01115.46
7.0.50.0030.00915.58
7.0.40.0030.00913.39
7.0.30.0070.00713.72
7.0.20.0090.00613.41
7.0.10.0070.00713.58
7.0.00.0030.01313.53
5.6.400.0100.00314.50
5.6.390.0080.00814.20
5.6.380.0030.00914.57
5.6.370.0080.00414.54
5.6.360.0040.00714.78
5.6.350.0060.00614.78
5.6.340.0030.01214.17
5.6.330.0030.01314.60
5.6.320.0070.00714.47
5.6.310.0030.00714.18
5.6.300.0070.00714.63
5.6.290.0000.01614.30
5.6.280.0090.00914.27
5.6.270.0120.00314.14
5.6.260.0060.00314.45
5.6.250.0080.00414.60
5.6.240.0090.00014.74
5.6.230.0030.01014.50
5.6.220.0000.01214.34
5.6.210.0060.00814.34
5.6.200.0090.00614.65
5.6.190.0090.00314.02
5.6.180.0060.00614.31
5.6.170.0080.00814.64
5.6.160.0060.00914.09
5.6.150.0090.00614.40
5.6.140.0100.00414.34
5.6.130.0080.01114.31
5.6.120.0070.00714.26
5.6.110.0040.01514.09
5.6.100.0090.00614.32
5.6.90.0000.01314.60
5.6.80.0030.00914.19
5.6.70.0060.00614.51
5.6.60.0070.00714.14
5.6.50.0070.00714.33
5.6.40.0060.01214.25
5.6.30.0040.01114.18
5.6.20.0070.00714.08
5.6.10.0000.01414.42
5.6.00.0060.00614.38

preferences:
45.52 ms | 403 KiB | 5 Q