3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '--ACT-- active --INA-- inactive'; $text = preg_replace("/--ACT-- (\w+)/" , '<div class="wp"><b>1</b>$1</div>',$text); Echo preg_replace("/--INA-- (\w+)/" , '<div class="wp"><b>2</b>$1</div>',$text);

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.0130.00516.61
8.5.00.0100.01120.25
8.4.150.0030.00014.05
8.4.140.0080.01317.96
8.4.130.0060.00417.66
8.4.120.0130.00720.65
8.4.110.0110.00622.57
8.4.100.0060.00319.07
8.4.90.0140.00620.61
8.4.80.0030.00620.70
8.4.70.0110.00918.21
8.4.60.0150.00618.88
8.4.50.0050.00320.65
8.4.40.0140.00717.66
8.4.30.0070.01419.52
8.4.20.0070.01019.72
8.4.10.0060.00317.69
8.3.280.0140.00718.46
8.3.270.0100.01016.67
8.3.260.0050.00916.63
8.3.250.0120.00718.86
8.3.240.0120.00816.44
8.3.230.0130.00616.95
8.3.220.0120.00718.98
8.3.210.0120.00716.20
8.3.200.0040.00516.61
8.3.190.0070.01217.26
8.3.180.0100.00718.66
8.3.170.0150.00316.90
8.3.160.0110.00718.52
8.3.150.0110.00716.61
8.3.140.0070.01116.80
8.3.130.0060.00616.82
8.3.120.0030.00620.63
8.3.110.0060.01020.94
8.3.100.0070.00318.42
8.3.90.0080.00016.53
8.3.80.0030.00717.97
8.3.70.0150.00618.56
8.3.60.0150.00616.63
8.3.50.0090.01018.02
8.3.40.0070.00718.93
8.3.30.0070.00718.77
8.3.20.0000.00819.20
8.3.10.0070.00323.65
8.3.00.0040.00423.61
8.2.290.0110.00820.67
8.2.280.0080.01018.52
8.2.270.0000.01017.33
8.2.260.0000.00918.67
8.2.250.0080.00018.46
8.2.240.0060.00319.21
8.2.230.0090.00622.58
8.2.220.0030.00624.06
8.2.210.0100.00726.77
8.2.200.0070.00316.63
8.2.190.0110.00416.75
8.2.180.0070.00718.41
8.2.170.0120.00322.96
8.2.160.0110.00419.16
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00319.79
8.2.110.0030.00622.37
8.2.100.0100.00318.04
8.2.90.0000.00818.28
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0050.00317.91
8.2.50.0030.00518.07
8.2.40.0000.00818.22
8.2.30.0030.00518.07
8.2.20.0000.00718.05
8.2.10.0070.00018.13
8.2.00.0000.00719.33
8.1.330.0120.00621.98
8.1.320.0130.00616.20
8.1.310.0050.00318.36
8.1.300.0120.00316.46
8.1.290.0090.00018.88
8.1.280.0110.00725.92
8.1.270.0080.00022.21
8.1.260.0150.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.97
8.1.230.0000.01122.75
8.1.220.0090.00017.79
8.1.210.0040.00418.83
8.1.200.0030.00617.23
8.1.190.0030.00517.23
8.1.180.0060.00618.10
8.1.170.0030.00518.71
8.1.160.0000.00718.71
8.1.150.0030.00618.85
8.1.140.0040.00419.02
8.1.130.0000.00718.93
8.1.120.0080.00017.53
8.1.110.0000.00917.57
8.1.100.0000.00817.48
8.1.90.0000.00717.58
8.1.80.0020.00517.49
8.1.70.0030.00617.52
8.1.60.0030.00517.63
8.1.50.0000.00817.59
8.1.40.0040.00417.56
8.1.30.0000.00817.56
8.1.20.0000.00817.79
8.1.10.0000.00717.67
8.1.00.0030.00617.49
8.0.300.0070.00021.96
8.0.290.0040.00416.88
8.0.280.0070.00018.45
8.0.270.0030.00317.02
8.0.260.0050.00217.30
8.0.250.0060.00317.06
8.0.240.0000.00717.11
8.0.230.0070.00317.00
8.0.220.0050.00216.94
8.0.210.0040.00416.88
8.0.200.0000.00716.93
8.0.190.0040.00416.87
8.0.180.0030.00617.02
8.0.170.0030.00617.02
8.0.160.0040.00716.81
8.0.150.0050.00316.91
8.0.140.0040.00416.93
8.0.130.0030.00313.34
8.0.120.0040.00416.90
8.0.110.0070.00016.96
8.0.100.0030.00416.84
8.0.90.0000.00816.84
8.0.80.0080.00817.00
8.0.70.0040.00417.04
8.0.60.0040.00416.91
8.0.50.0040.00416.95
8.0.30.0090.01117.25
8.0.20.0100.01117.40
8.0.10.0070.00017.13
8.0.00.0100.00816.86
7.4.330.0040.00015.55
7.4.320.0030.00616.59
7.4.300.0090.00016.57
7.4.290.0000.00816.63
7.4.280.0040.00316.65
7.4.270.0040.00716.66
7.4.260.0000.00716.55
7.4.250.0030.00316.65
7.4.240.0030.00316.64
7.4.230.0030.00316.84
7.4.220.0040.00416.77
7.4.210.0030.01116.77
7.4.200.0070.00016.77
7.4.160.0080.01016.72
7.4.140.0070.01117.86
7.4.130.0180.00916.68
7.4.120.0090.00916.64
7.4.110.0040.01416.48
7.4.100.0140.00416.63
7.4.90.0070.01016.59
7.4.80.0100.00719.39
7.4.70.0070.01016.59
7.4.60.0030.01316.64
7.4.50.0090.00616.47
7.4.40.0170.00516.63
7.4.10.0040.01415.07
7.4.00.0050.01115.10
7.3.330.0050.00013.07
7.3.320.0060.00013.16
7.3.310.0030.00316.12
7.3.300.0000.00716.29
7.3.290.0040.00416.32
7.3.280.0100.01016.29
7.3.260.0100.00916.36
7.3.240.0090.01116.57
7.3.230.0060.01216.31
7.3.210.0030.01416.55
7.3.200.0140.00716.30
7.3.190.0160.00016.58
7.3.180.0090.00616.65
7.3.170.0120.00316.56
7.3.160.0030.01316.41
7.3.130.0110.00315.16
7.3.120.0050.01114.87
7.3.110.0040.00915.09
7.3.100.0050.00914.79
7.3.90.0070.00615.04
7.3.80.0030.01014.82
7.3.70.0040.00614.92
7.3.60.0030.00914.74
7.3.50.0060.00614.77
7.3.40.0070.01014.84
7.3.30.0040.00714.83
7.3.20.0090.00716.59
7.3.10.0070.00816.61
7.3.00.0100.00716.61
7.2.330.0030.01316.76
7.2.320.0060.01216.68
7.2.310.0120.00616.81
7.2.300.0060.01116.59
7.2.290.0110.00616.67
7.2.260.0100.01015.05
7.2.250.0090.00915.14
7.2.240.0050.01315.01
7.2.230.0060.01015.14
7.2.220.0080.00615.20
7.2.210.0070.00915.09
7.2.200.0080.00915.14
7.2.190.0070.00615.17
7.2.180.0080.00914.95
7.2.170.0070.00715.13
7.2.160.0040.00915.23
7.2.150.0060.01116.98
7.2.140.0060.00816.85
7.2.130.0070.00616.97
7.2.120.0040.01116.98
7.2.110.0100.00516.93
7.2.100.0020.01316.96
7.2.90.0070.00917.02
7.2.80.0060.01216.92
7.2.70.0080.00516.94
7.2.60.0060.00816.97
7.2.50.0060.00716.92
7.2.40.0270.00817.03
7.2.30.0070.00816.99
7.2.20.0060.00916.94
7.2.10.0080.00616.87
7.2.00.0040.00916.93
7.1.330.0090.00815.79
7.1.320.0030.01015.87
7.1.310.0050.00915.79
7.1.300.0080.00616.02
7.1.290.0080.00415.76
7.1.280.0080.00515.86
7.1.270.0070.00515.82
7.1.260.0010.01315.78
7.1.250.0070.00415.82
7.1.240.0040.00715.77
7.1.230.0000.01415.77
7.1.220.0090.00015.68
7.1.210.0070.00715.76
7.1.200.0030.01015.77
7.1.190.0050.00615.86
7.1.180.0080.00315.80
7.1.170.0060.00615.82
7.1.160.0090.00315.86
7.1.150.0090.00515.81
7.1.140.0050.00915.90
7.1.130.0080.00515.75
7.1.120.0080.00615.63
7.1.110.0100.00715.63
7.1.100.0090.00515.89
7.1.90.0360.00815.66
7.1.80.0440.01215.88
7.1.70.0050.00715.79
7.1.60.0200.00924.78
7.1.50.0200.00824.67
7.1.40.0160.00624.66
7.1.30.0210.00624.71
7.1.20.0180.00624.55
7.1.10.0130.00315.73
7.1.00.0090.00615.88
7.0.330.0060.00615.54
7.0.320.0000.00815.63
7.0.310.0030.00615.66
7.0.300.0070.00715.03
7.0.290.0040.00415.53
7.0.280.0110.00415.28
7.0.270.0030.00615.35
7.0.260.0070.00715.64
7.0.250.0000.00815.59
7.0.240.0040.01115.56
7.0.230.0070.00715.46
7.0.220.0030.00815.47
7.0.210.0040.00915.50
7.0.200.0030.00715.43
7.0.190.0000.01415.73
7.0.180.0040.00715.67
7.0.170.0030.01015.58
7.0.160.0030.00615.48
7.0.150.0060.00615.58
7.0.140.0040.00815.41
7.0.130.0060.00915.48
7.0.120.0030.00915.50
7.0.110.0040.01115.69
7.0.100.0000.00915.51
7.0.90.0140.00015.20
7.0.80.0060.00615.45
7.0.70.0040.00715.27
7.0.60.0040.00815.32
7.0.50.0030.01015.38
7.0.40.0070.00713.70
7.0.30.0060.00313.73
7.0.20.0040.00413.55
7.0.10.0000.01413.23
7.0.00.0060.00613.54
5.6.400.0070.01014.67
5.6.390.0070.00714.61
5.6.380.0030.00914.67
5.6.370.0080.00414.57
5.6.360.0110.00314.26
5.6.350.0060.00614.24
5.6.340.0040.01114.35
5.6.330.0030.00714.38
5.6.320.0110.00713.97
5.6.310.0000.01214.38
5.6.300.0000.01514.29
5.6.290.0090.00614.59
5.6.280.0040.00414.76
5.6.270.0060.00914.70
5.6.260.0090.00614.24
5.6.250.0030.01014.00
5.6.240.0040.00714.43
5.6.230.0120.00314.18
5.6.220.0040.00814.17
5.6.210.0120.00314.41
5.6.200.0000.01514.37
5.6.190.0030.01314.20
5.6.180.0070.00714.60
5.6.170.0030.00614.26
5.6.160.0060.00614.22
5.6.150.0070.00714.08
5.6.140.0100.00314.20
5.6.130.0120.00314.32
5.6.120.0000.00814.36
5.6.110.0100.00614.32
5.6.100.0110.00314.41
5.6.90.0040.00714.33
5.6.80.0040.00814.04
5.6.70.0100.00714.32
5.6.60.0000.00814.05
5.6.50.0030.01214.10
5.6.40.0050.00514.21
5.6.30.0080.00813.98
5.6.20.0040.00713.95
5.6.10.0040.01114.47
5.6.00.0100.00014.23

preferences:
36.66 ms | 403 KiB | 5 Q