3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "I need to replace = in string with == sign, but not in <=, != and >= signs."; echo preg_replace('/(?<![<>=!])=(?!=)/', '==', $string);

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.4.120.0150.00520.44
8.4.110.0060.00419.16
8.4.100.0050.00517.88
8.4.90.0140.00717.82
8.4.80.0130.00717.96
8.4.70.0130.00717.90
8.4.60.0120.00818.69
8.4.50.0090.00618.17
8.4.40.0130.00319.65
8.4.30.0030.00618.67
8.4.20.0000.00818.92
8.4.10.0080.00817.84
8.3.250.0110.00818.90
8.3.240.0120.00816.39
8.3.230.0110.01116.77
8.3.220.0110.00818.45
8.3.210.0120.00816.44
8.3.200.0110.00916.66
8.3.190.0060.00217.05
8.3.180.0090.01018.32
8.3.170.0130.00418.93
8.3.160.0180.00016.63
8.3.150.0160.00320.49
8.3.140.0030.00616.47
8.3.130.0060.00316.91
8.3.120.0060.00320.82
8.3.110.0070.00020.94
8.3.100.0000.01016.88
8.3.90.0140.00416.53
8.3.80.0100.00018.68
8.3.70.0130.00616.75
8.3.60.0070.01118.42
8.3.50.0120.00721.09
8.3.40.0110.00418.92
8.3.30.0090.00618.61
8.3.20.0040.00421.75
8.3.10.0030.00522.10
8.3.00.0070.00022.46
8.2.290.0110.00820.32
8.2.280.0060.00818.77
8.2.270.0100.00717.36
8.2.260.0120.00619.02
8.2.250.0040.00418.70
8.2.240.0030.00617.07
8.2.230.0030.00622.58
8.2.220.0100.00024.06
8.2.210.0040.01126.77
8.2.200.0050.00518.16
8.2.190.0090.00618.79
8.2.180.0120.00318.54
8.2.170.0110.00318.99
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0030.00722.38
8.2.100.0040.00817.84
8.2.90.0000.00720.63
8.2.80.0000.00817.97
8.2.70.0040.00417.80
8.2.60.0000.00818.03
8.2.50.0100.00318.10
8.2.40.0000.00819.48
8.2.30.0000.00719.33
8.2.20.0000.00718.07
8.2.10.0040.00419.23
8.2.00.0030.00619.12
8.1.330.0120.00716.75
8.1.320.0120.00816.31
8.1.310.0040.00416.91
8.1.300.0090.00020.20
8.1.290.0000.00918.88
8.1.280.0090.00925.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00823.97
8.1.230.0030.00720.93
8.1.220.0040.00417.74
8.1.210.0000.00918.90
8.1.200.0000.00917.23
8.1.190.0040.00417.36
8.1.180.0080.00018.10
8.1.170.0030.00618.46
8.1.160.0090.00018.91
8.1.150.0040.00418.76
8.1.140.0000.00720.78
8.1.130.0000.00719.20
8.1.120.0020.00517.46
8.1.110.0060.00317.54
8.1.100.0050.00317.43
8.1.90.0020.00517.57
8.1.80.0000.00717.57
8.1.70.0070.00017.54
8.1.60.0000.00817.74
8.1.50.0080.00017.50
8.1.40.0000.00917.50
8.1.30.0000.00817.75
8.1.20.0050.00217.72
8.1.10.0000.00717.71
8.1.00.0000.00817.50
8.0.300.0070.00020.02
8.0.290.0000.00716.88
8.0.280.0000.00718.38
8.0.270.0000.00717.40
8.0.260.0070.00016.93
8.0.250.0030.00317.11
8.0.240.0080.00017.03
8.0.230.0000.00717.02
8.0.220.0030.00716.95
8.0.210.0000.00717.05
8.0.200.0000.00716.90
8.0.190.0050.00316.92
8.0.180.0060.00316.91
8.0.170.0080.00017.05
8.0.160.0070.00016.86
8.0.150.0000.00716.87
8.0.140.0040.00416.90
8.0.130.0060.00013.36
8.0.120.0000.00816.89
8.0.110.0040.00416.78
8.0.100.0070.00016.75
8.0.90.0030.00517.09
8.0.80.0060.01017.02
8.0.70.0050.00217.03
8.0.60.0040.00416.92
8.0.50.0050.00317.02
8.0.30.0090.00917.47
8.0.20.0080.01117.32
8.0.10.0040.00417.04
8.0.00.0110.01016.94
7.4.330.0000.00415.55
7.4.320.0060.00016.65
7.4.300.0080.00016.73
7.4.290.0070.00016.64
7.4.280.0050.00216.64
7.4.270.0070.00016.66
7.4.260.0000.00513.48
7.4.250.0040.00416.52
7.4.240.0030.00316.70
7.4.230.0000.00916.63
7.4.220.0050.00216.63
7.4.210.0060.00716.66
7.4.200.0070.00016.62
7.4.130.0080.01116.63
7.4.120.0060.01116.68
7.4.110.0100.00616.49
7.4.100.0030.01316.73
7.4.90.0070.01016.77
7.4.80.0090.01219.39
7.4.70.0180.00316.89
7.4.60.0060.00916.74
7.4.50.0060.00916.68
7.4.40.0060.01716.64
7.4.00.0070.00414.92
7.3.330.0090.00016.14
7.3.320.0050.00013.25
7.3.310.0040.00416.09
7.3.300.0000.00716.34
7.3.290.0070.00016.29
7.3.280.0140.00716.29
7.3.260.0070.01116.44
7.3.240.0090.00816.46
7.3.230.0100.00716.30
7.3.210.0070.01016.36
7.3.200.0100.00716.29
7.3.190.0040.01716.46
7.3.180.0070.01016.21
7.3.170.0030.01316.41
7.3.160.0090.00616.30
7.3.80.0030.01014.77
7.3.70.0040.01114.68
7.3.60.0030.01014.86
7.3.50.0130.00414.79
7.3.40.0070.01014.53
7.3.30.0090.00514.80
7.3.20.0140.00414.89
7.3.10.0090.00914.88
7.3.00.0370.00314.34
7.2.330.0110.00616.61
7.2.320.0080.00816.64
7.2.310.0060.01016.72
7.2.300.0050.01216.81
7.2.290.0120.00316.79
7.2.210.0000.01415.00
7.2.200.0130.00514.82
7.2.190.0110.00314.99
7.2.180.0000.01815.11
7.2.170.0090.00914.90
7.2.160.0100.00314.96
7.2.150.0090.00915.14
7.2.140.0090.00914.88
7.2.130.0180.00015.14
7.2.120.0090.00914.95
7.2.110.0120.00614.84
7.2.100.0130.00715.04
7.2.90.0070.01114.98
7.2.80.0090.00915.12
7.2.70.0090.00914.89
7.2.60.0100.01015.12
7.2.50.0140.00715.00
7.2.40.0150.00315.10
7.2.30.0120.00615.14
7.2.20.0060.01214.85
7.2.10.0930.00714.98
7.2.00.0150.00315.05
7.1.310.0090.00914.15
7.1.300.0160.00913.73
7.1.290.0170.00713.98
7.1.280.0100.01314.09
7.1.270.0150.00313.99
7.1.260.0100.00713.97
7.1.250.0140.00313.93

preferences:
28.72 ms | 403 KiB | 5 Q