3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'this i"s a "test" word'; echo preg_replace('/(?<!\s)"(?!\s)/', '', $str);

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.0030.01718.58
8.3.50.0040.01118.21
8.3.40.0140.00318.80
8.3.30.0070.00718.86
8.3.20.0040.00418.98
8.3.10.0080.00023.48
8.3.00.0060.00323.57
8.2.180.0100.00718.29
8.2.170.0070.00722.96
8.2.160.0070.01019.15
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.61
8.2.120.0040.00426.35
8.2.110.0030.00620.46
8.2.100.0060.00617.84
8.2.90.0030.00522.27
8.2.80.0040.00417.97
8.2.70.0000.00818.04
8.2.60.0050.00318.04
8.2.50.0000.00818.10
8.2.40.0000.00819.37
8.2.30.0080.00020.65
8.2.20.0000.00717.96
8.2.10.0000.00718.00
8.2.00.0000.00719.25
8.1.280.0070.01025.92
8.1.270.0030.00522.05
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00323.89
8.1.230.0080.00322.15
8.1.220.0030.00517.79
8.1.210.0050.00318.87
8.1.200.0090.00017.38
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0040.00418.71
8.1.160.0040.00418.88
8.1.150.0000.00718.83
8.1.140.0040.00419.10
8.1.130.0080.00018.97
8.1.120.0040.00417.55
8.1.110.0040.00417.58
8.1.100.0040.00417.53
8.1.90.0050.00317.43
8.1.80.0070.00017.52
8.1.70.0070.00317.38
8.1.60.0030.00717.69
8.1.50.0080.00017.55
8.1.40.0090.00017.60
8.1.30.0040.00417.68
8.1.20.0080.00017.69
8.1.10.0000.00717.61
8.1.00.0080.00017.58
8.0.300.0000.00819.94
8.0.290.0040.00416.88
8.0.280.0030.00518.45
8.0.270.0000.00717.20
8.0.260.0000.00617.14
8.0.250.0070.00017.01
8.0.240.0050.00316.96
8.0.230.0030.00317.00
8.0.220.0040.00416.96
8.0.210.0000.00716.80
8.0.200.0040.00416.97
8.0.190.0020.00517.09
8.0.180.0000.00816.91
8.0.170.0000.00917.00
8.0.160.0000.00716.99
8.0.150.0070.00316.84
8.0.140.0030.00316.93
8.0.130.0030.00313.33
8.0.120.0000.00816.86
8.0.110.0000.00716.92
8.0.100.0030.00617.08
8.0.90.0040.00417.00
8.0.80.0090.00616.94
8.0.70.0000.00716.82
8.0.60.0040.00416.77
8.0.50.0040.00417.04
8.0.30.0110.00717.19
8.0.20.0110.00817.41
8.0.10.0050.00317.09
8.0.00.0110.00617.00
7.4.330.0040.00015.55
7.4.320.0000.00616.77
7.4.300.0030.00316.64
7.4.290.0070.00016.74
7.4.280.0040.00416.56
7.4.270.0000.00816.71
7.4.260.0050.00216.68
7.4.250.0040.00416.69
7.4.240.0030.00516.65
7.4.230.0070.00016.68
7.4.220.0040.00416.64
7.4.210.0090.00716.71
7.4.200.0050.00316.65
7.4.160.0080.01016.61
7.4.140.0100.00817.86
7.4.130.0150.00516.83
7.4.120.0080.00916.65
7.4.110.0090.00916.59
7.4.100.0070.01316.36
7.4.90.0070.01016.36
7.4.80.0100.01019.39
7.4.70.0090.01316.58
7.4.60.0200.00316.62
7.4.50.0060.01016.59
7.4.40.0000.02116.65
7.4.00.0100.00715.19
7.3.330.0000.00513.02
7.3.320.0030.00313.15
7.3.310.0070.00016.38
7.3.300.0070.00016.31
7.3.290.0070.00016.20
7.3.280.0130.00716.32
7.3.260.0100.01016.43
7.3.240.0120.00916.43
7.3.230.0150.00616.52
7.3.210.0070.01316.39
7.3.200.0180.00416.41
7.3.190.0130.00316.54
7.3.180.0140.00316.51
7.3.170.0120.00316.80
7.3.160.0060.00916.75
7.2.330.0030.01316.77
7.2.320.0000.01716.67
7.2.310.0100.01316.77
7.2.300.0130.00316.72
7.2.290.0160.00816.77
7.2.80.0300.00414.70
7.2.70.0270.00714.93
7.2.60.0450.00714.88
7.2.50.0250.01114.84
7.2.40.0290.00714.93
7.2.30.0310.01015.16
7.2.20.0220.01215.14
7.2.10.0250.01314.80
7.2.00.0240.00614.84
7.1.200.0060.00915.94
7.1.190.0280.00913.70
7.1.180.0270.01013.64
7.1.170.0420.00613.69
7.1.160.0410.01014.19
7.1.150.0420.00614.14
7.1.140.0210.01113.77
7.1.130.0270.00714.16
7.1.120.1030.00014.16
7.1.110.0230.01314.28
7.1.100.0350.00913.73
7.1.90.0370.00313.80
7.1.80.0370.00713.98
7.1.70.0240.00713.85
7.1.60.0670.00332.14
7.1.50.0420.00731.91
7.1.40.0420.01031.99
7.1.30.0610.00332.13
7.1.20.0460.00632.11
7.1.10.0320.00914.05
7.1.00.0330.00013.90

preferences:
33.99 ms | 400 KiB | 5 Q