3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lead_container = "Address: 123 Main Street City: New York"; echo preg_replace('#Address:.*#i', '', $lead_container); echo preg_replace('#Address:.*?\n#si', '', $lead_container);

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.0090.00819.45
8.5.00.0120.01019.92
8.4.160.0120.01123.16
8.4.150.0020.00014.05
8.4.140.0140.00717.85
8.4.130.0270.00818.60
8.4.120.0110.00924.03
8.4.110.0090.00818.99
8.4.100.0100.01017.94
8.4.90.0110.01218.66
8.4.80.0120.00717.92
8.4.70.0060.00717.96
8.4.60.0100.00718.76
8.4.50.0080.01222.55
8.4.40.0060.01319.59
8.4.30.0160.00320.51
8.4.20.0070.01418.22
8.4.10.0070.00317.91
8.3.280.0120.00818.62
8.3.270.0110.00916.75
8.3.260.0120.00816.64
8.3.250.0090.01018.77
8.3.240.0090.01016.94
8.3.230.0130.00616.50
8.3.220.0120.00717.20
8.3.210.0120.00616.65
8.3.200.0040.00516.65
8.3.190.0100.01016.80
8.3.180.0060.00218.54
8.3.170.0080.01318.95
8.3.160.0160.00318.27
8.3.150.0100.01018.49
8.3.140.0000.00917.00
8.3.130.0080.00018.49
8.3.120.0050.00320.61
8.3.110.0090.00016.70
8.3.100.0060.00316.60
8.3.90.0160.00326.77
8.3.80.0030.00617.97
8.3.70.0140.00716.38
8.3.60.0090.00918.31
8.3.50.0060.00724.48
8.3.40.0120.00618.87
8.3.30.0100.00618.92
8.3.20.0000.00720.90
8.3.10.0030.00620.34
8.3.00.0040.00422.09
8.2.290.0110.00720.47
8.2.280.0120.00722.08
8.2.270.0060.00317.07
8.2.260.0070.00716.92
8.2.250.0000.00917.47
8.2.240.0060.01216.58
8.2.230.0060.00320.94
8.2.220.0030.00624.06
8.2.210.0110.00426.77
8.2.200.0070.00716.50
8.2.190.0120.00616.88
8.2.180.0040.01116.75
8.2.170.0070.01122.96
8.2.160.0070.00722.14
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0090.00619.73
8.2.110.0060.00322.29
8.2.100.0050.00617.91
8.2.90.0040.00417.75
8.2.80.0040.00419.02
8.2.70.0000.00817.75
8.2.60.0040.00417.75
8.2.50.0080.00017.63
8.2.40.0040.00417.88
8.2.30.0070.00017.70
8.2.20.0000.00818.13
8.2.10.0000.00820.66
8.2.00.0030.00619.09
8.1.330.0090.00921.82
8.1.320.0130.00716.23
8.1.310.0000.00718.47
8.1.300.0030.01318.11
8.1.290.0070.00418.88
8.1.280.0090.00625.92
8.1.270.0040.00420.75
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0050.00523.92
8.1.230.0080.00319.23
8.1.220.0000.00817.78
8.1.210.0080.00018.77
8.1.200.0080.00017.35
8.1.190.0080.00017.35
8.1.180.0040.00419.01
8.1.170.0080.00017.62
8.1.160.0070.00018.75
8.1.150.0070.00018.86
8.1.140.0040.00322.15
8.1.130.0050.00317.49
8.1.120.0030.00317.45
8.1.110.0040.00417.45
8.1.100.0000.00817.56
8.1.90.0040.00417.48
8.1.80.0040.00417.52
8.1.70.0000.00717.51
8.1.60.0030.00617.66
8.1.50.0000.00817.52
8.1.40.0060.00317.62
8.1.30.0000.00817.72
8.1.20.0000.00817.56
8.1.10.0070.00017.66
8.1.00.0090.00017.58
8.0.300.0070.00018.77
8.0.290.0070.00016.88
8.0.280.0000.00818.13
8.0.270.0000.00718.14
8.0.260.0060.00016.91
8.0.250.0000.00817.04
8.0.240.0000.00717.09
8.0.230.0040.00417.01
8.0.220.0000.00716.80
8.0.210.0030.00316.94
8.0.200.0000.00617.00
8.0.190.0030.00616.92
8.0.180.0060.00316.86
8.0.170.0030.00716.87
8.0.160.0000.00717.00
8.0.150.0030.00616.86
8.0.140.0030.00516.97
8.0.130.0030.00313.45
8.0.120.0000.00816.93
8.0.110.0040.00416.83
8.0.100.0040.00416.82
8.0.90.0040.00416.99
8.0.80.0140.00516.94
8.0.70.0020.00516.95
8.0.60.0040.00416.76
8.0.50.0050.00316.83
8.0.30.0160.01317.04
8.0.20.0090.01017.23
8.0.10.0050.00317.11
8.0.00.0110.00816.75
7.4.330.0050.00015.55
7.4.320.0030.00316.64
7.4.300.0000.00616.74
7.4.290.0030.00316.64
7.4.280.0080.00016.62
7.4.270.0080.00016.76
7.4.260.0030.00313.25
7.4.250.0070.00016.59
7.4.240.0000.00716.70
7.4.230.0070.00016.48
7.4.220.0030.00316.59
7.4.210.0070.00816.79
7.4.200.0000.00716.80
7.4.130.0090.00916.61
7.4.120.0080.00816.59
7.4.110.0120.00616.61
7.4.100.0030.01516.63
7.4.90.0120.00616.61
7.4.80.0130.00819.39
7.4.70.0130.00316.82
7.4.60.0040.01216.57
7.4.50.0060.00616.68
7.4.40.0100.00716.55
7.4.20.0080.00916.32
7.4.10.0070.00916.48
7.4.00.0100.00615.61
7.3.330.0080.00016.27
7.3.320.0030.00313.10
7.3.310.0030.00316.37
7.3.300.0040.00416.30
7.3.290.0080.00816.31
7.3.280.0090.00616.23
7.3.260.0110.00916.25
7.3.240.0110.00516.39
7.3.230.0060.01116.39
7.3.210.0000.01616.54
7.3.200.0030.01316.61
7.3.190.0060.01116.80
7.3.180.0070.00716.59
7.3.170.0120.00616.54
7.3.160.0130.00316.56
7.3.130.0050.01116.46
7.3.120.0110.00415.88
7.3.110.0020.01315.86
7.3.100.0060.00815.82
7.3.90.0080.00715.74
7.3.80.0090.00615.97
7.3.70.0040.01115.87
7.3.60.0070.00915.77
7.3.50.0080.00915.77
7.3.40.0070.00815.88
7.3.30.0110.00415.85
7.3.20.0060.01015.84
7.3.10.0080.00815.83
7.3.00.0070.00815.84
7.2.330.0060.01116.78
7.2.320.0130.00316.75
7.2.310.0160.00616.70
7.2.300.0200.00416.73
7.2.290.0000.01616.58
7.2.260.0070.01016.57
7.2.250.0090.00615.99
7.2.240.0090.00716.04
7.2.230.0080.00716.03
7.2.220.0080.00716.04
7.2.210.0090.00716.03
7.2.200.0110.00615.91
7.2.190.0110.00615.98
7.2.180.0100.00916.10
7.2.170.0090.00816.02
7.2.160.0040.01216.55
7.2.150.0110.00716.68
7.2.140.0110.00816.73
7.2.130.0100.00816.62
7.2.120.0110.00716.49
7.2.110.0080.01016.49
7.2.100.0070.00916.53
7.2.90.0080.00916.55
7.2.80.0080.00916.64
7.2.70.0070.00916.67
7.2.60.0090.01116.59
7.2.50.0120.00516.63
7.2.40.0030.01316.65
7.2.30.0050.01116.57
7.2.20.0080.00816.67
7.2.10.0080.00816.63
7.2.00.0070.01016.59
7.1.330.0050.00814.01
7.1.320.0030.00913.82
7.1.310.0090.00313.93
7.1.300.0030.00913.84
7.1.290.0090.00414.10
7.1.280.0100.00313.95
7.1.270.0090.00313.77
7.1.260.0030.01114.11

preferences:
37.74 ms | 403 KiB | 5 Q