3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '<a href="">Visual Performance</a>'; $skipDictionary = array( 'all' => array( 'Visual Performance', 'ThinLine', 'Extreme', 'Architectural Series', 'Invisible Series', 'Cinema', 'Soundbar', 'Subwoofers', 'Sonance Landscape Series', 'Satellites', 'Subwoofers', 'Systems', 'Sonarray', 'Mariners', 'Medium' ) ); $replaceArray = array_map(function($val){ return '<span class="notranslate">'.$val.'</span>'; }, $skipDictionary['all']); foreach($skipDictionary['all'] AS $idx => $search) { $text = preg_replace('@(\s|\>|^)'.$search.'(\s|\s|$)@', '\1' . $replaceArray[$idx], $text); } echo '<div>'.$text.'</div>';

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.40.0120.00319.01
8.3.30.0080.00819.22
8.3.20.0080.00020.34
8.3.10.0080.00022.09
8.3.00.0060.00322.52
8.2.170.0030.01222.96
8.2.160.0060.00921.19
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0080.00826.16
8.2.120.0040.00419.61
8.2.110.0040.00422.28
8.2.100.0100.00319.82
8.2.90.0030.00519.52
8.2.80.0060.00318.17
8.2.70.0080.00017.75
8.2.60.0090.00018.02
8.2.50.0060.00318.07
8.2.40.0000.00818.16
8.2.30.0040.00418.25
8.2.20.0040.00418.02
8.2.10.0050.00317.87
8.2.00.0100.00018.02
8.1.270.0050.00322.14
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00424.14
8.1.230.0060.00619.01
8.1.220.0060.00317.91
8.1.210.0060.00318.77
8.1.200.0030.00617.60
8.1.190.0030.00517.65
8.1.180.0070.00318.63
8.1.170.0050.00518.91
8.1.160.0090.00022.15
8.1.150.0040.00418.80
8.1.140.0080.00017.61
8.1.130.0040.00417.91
8.1.120.0040.00417.57
8.1.110.0050.00217.67
8.1.100.0030.00517.68
8.1.90.0030.00617.57
8.1.80.0000.00717.67
8.1.70.0020.00517.55
8.1.60.0000.00817.69
8.1.50.0000.00817.72
8.1.40.0040.00417.72
8.1.30.0000.00817.73
8.1.20.0000.00917.96
8.1.10.0000.00917.64
8.1.00.0040.00417.71
8.0.300.0040.00418.77
8.0.290.0050.00217.18
8.0.280.0040.00418.42
8.0.270.0070.00017.24
8.0.260.0030.00317.00
8.0.250.0030.00417.11
8.0.240.0000.00717.00
8.0.230.0000.00717.16
8.0.220.0000.00717.13
8.0.210.0040.00417.00
8.0.200.0030.00617.16
8.0.190.0070.00017.15
8.0.180.0000.00717.00
8.0.170.0000.00817.11
8.0.160.0040.00417.00
8.0.150.0070.00017.09
8.0.140.0060.00316.96
8.0.130.0030.00313.55
8.0.120.0040.00417.10
8.0.110.0040.00417.12
8.0.100.0000.00716.93
8.0.90.0000.00716.98
8.0.80.0080.00817.07
8.0.70.0000.00816.97
8.0.60.0000.00716.94
8.0.50.0040.00417.20
8.0.30.0150.01017.33
8.0.20.0080.01017.40
8.0.10.0040.00417.07
8.0.00.0090.00916.95
7.4.330.0000.00515.00
7.4.320.0030.00316.89
7.4.300.0030.00316.86
7.4.290.0050.00316.84
7.4.280.0070.00016.73
7.4.270.0060.00316.90
7.4.260.0040.00416.73
7.4.250.0000.00816.81
7.4.240.0030.00416.79
7.4.230.0000.00716.87
7.4.220.0130.01416.88
7.4.210.0110.00416.79
7.4.200.0040.00416.86
7.4.190.0000.00716.94
7.4.160.0040.01216.70
7.4.150.0150.00317.40
7.4.140.0130.00517.86
7.4.130.0120.00816.74
7.4.120.0100.00716.81
7.4.110.0120.00916.89
7.4.100.0190.00716.76
7.4.90.0060.01316.74
7.4.80.0060.01219.39
7.4.70.0130.00316.92
7.4.60.0190.00316.63
7.4.50.0100.00016.82
7.4.40.0070.00722.77
7.4.30.0130.00316.85
7.4.10.0070.01415.00
7.4.00.0030.01415.08
7.3.330.0050.00013.51
7.3.320.0000.00613.54
7.3.310.0080.00016.44
7.3.300.0000.00716.40
7.3.290.0090.00916.54
7.3.280.0120.00916.51
7.3.270.0160.00317.40
7.3.260.0090.00916.76
7.3.250.0070.01116.80
7.3.240.0110.00816.76
7.3.230.0060.01216.56
7.3.210.0030.01416.61
7.3.200.0100.01319.39
7.3.190.0030.01316.54
7.3.180.0030.01316.77
7.3.170.0030.01516.60
7.3.160.0070.01016.56
7.3.130.0040.01515.04
7.3.120.0090.00815.05
7.3.110.0040.00815.04
7.3.100.0040.01114.94
7.3.90.0090.00614.94
7.3.80.0030.00614.94
7.3.70.0070.00715.09
7.3.60.0150.00414.87
7.3.50.0000.01515.25
7.3.40.0030.01014.93
7.3.30.0120.00315.11
7.3.20.0060.00917.02
7.3.10.0070.00316.84
7.3.00.0100.00317.04
7.2.330.0130.00416.89
7.2.320.0070.01116.86
7.2.310.0120.00617.09
7.2.300.0090.00916.85
7.2.290.0030.01516.92
7.2.260.0090.00915.30
7.2.250.0090.00915.40
7.2.240.0060.00915.26
7.2.230.0100.00315.29
7.2.220.0130.00615.30
7.2.210.0000.01415.57
7.2.200.0080.00815.25
7.2.190.0060.01215.34
7.2.180.0040.00715.17
7.2.170.0090.00615.20
7.2.160.0030.01014.88
7.2.150.0070.01017.00
7.2.140.0070.00317.24
7.2.130.0040.01116.89
7.2.120.0090.00617.16
7.2.110.0070.00717.24
7.2.100.0000.01016.98
7.2.90.0100.00317.22
7.2.80.0060.00917.18
7.2.70.0100.00317.21
7.2.60.0070.00717.17
7.2.50.0060.00817.01
7.2.40.0100.00316.92
7.2.30.0040.00816.97
7.2.20.0080.00617.23
7.2.10.0070.00717.16
7.2.00.0080.00518.29
7.1.330.0060.00916.20
7.1.320.0070.00416.17
7.1.310.0060.00916.10
7.1.300.0090.00915.65
7.1.290.0040.01215.91
7.1.280.0030.00616.03
7.1.270.0000.01516.18
7.1.260.0030.00616.01
7.1.250.0040.00715.83
7.1.240.0060.00916.21
7.1.230.0000.01116.04
7.1.220.0070.00416.08
7.1.210.0120.00015.96
7.1.200.0070.00715.78
7.1.190.0000.01016.04
7.1.180.0000.01515.79
7.1.170.0160.00016.13
7.1.160.0130.00016.20
7.1.150.0030.00715.88
7.1.140.0030.01015.87
7.1.130.0060.00616.20
7.1.120.0100.00315.92
7.1.110.0060.00316.05
7.1.100.0460.01117.32
7.1.90.0070.00716.13
7.1.80.0030.00916.26
7.1.70.0060.00716.78
7.1.60.0070.01218.02
7.1.50.0080.00816.56
7.1.40.0030.01216.11
7.1.30.0000.01615.73
7.1.20.0040.00716.09
7.1.10.0070.00715.87
7.1.00.0090.03819.27
7.0.330.0070.01015.77
7.0.320.0060.00915.75
7.0.310.0070.00715.75
7.0.300.0030.01015.59
7.0.290.0030.00615.76
7.0.280.0090.00315.59
7.0.270.0060.00615.48
7.0.260.0050.00415.45
7.0.250.0060.00315.65
7.0.240.0040.00815.66
7.0.230.0060.00615.59
7.0.220.0030.01015.64
7.0.210.0000.01415.64
7.0.200.0020.01016.26
7.0.190.0040.01115.77
7.0.180.0040.00715.70
7.0.170.0040.00815.71
7.0.160.0000.01115.65
7.0.150.0030.00915.63
7.0.140.0070.03818.91
7.0.130.0040.01115.46
7.0.120.0050.00515.95
7.0.110.0030.00615.58
7.0.100.0040.01115.43
7.0.90.0070.00715.68
7.0.80.0000.01115.76
7.0.70.0100.00315.30
7.0.60.0120.04017.77
7.0.50.0080.03716.77
7.0.40.0050.02716.96
7.0.30.0280.04016.96
7.0.20.0170.04416.94
7.0.10.0080.04016.90
7.0.00.0030.03316.91
5.6.400.0060.00914.67
5.6.390.0030.01214.61
5.6.380.0140.00014.59
5.6.370.0060.01014.65
5.6.360.0030.01314.43
5.6.350.0030.01014.63
5.6.340.0000.01114.25
5.6.330.0040.00714.71
5.6.320.0040.01114.71
5.6.310.0060.00614.53
5.6.300.0120.00314.84
5.6.290.0110.00314.45
5.6.280.0020.04417.95
5.6.270.0030.01014.68
5.6.260.0090.00314.43
5.6.250.0040.00814.50
5.6.240.0070.00714.48
5.6.230.0120.00014.51
5.6.220.0030.01014.51
5.6.210.0030.04917.47
5.6.200.0030.02916.26
5.6.190.0050.02517.52
5.6.180.0130.02517.54
5.6.170.0150.03017.42
5.6.160.0090.03517.52
5.6.150.0050.04216.21
5.6.140.0100.02116.40
5.6.130.0050.02816.43
5.6.120.0070.04517.60
5.6.110.0050.03817.70
5.6.100.0060.02117.88
5.6.90.0050.02517.93
5.6.80.0110.03817.19
5.6.70.2270.02517.21
5.6.60.0110.00014.32
5.6.50.0060.00914.21
5.6.40.0110.00414.49
5.6.30.0060.01014.23
5.6.20.0070.00714.51
5.6.10.0030.00614.37
5.6.00.0130.00314.18
5.5.380.0030.00714.10
5.5.370.0000.01514.58
5.5.360.0030.00914.20
5.5.350.0100.04217.56
5.5.340.0070.02716.20
5.5.330.0050.03817.49
5.5.320.0220.03717.44
5.5.310.0170.03317.44
5.5.300.0080.04316.23
5.5.290.0060.02816.21
5.5.280.0110.02317.57
5.5.270.0030.04717.74
5.5.260.0070.04917.47
5.5.250.0070.02717.51
5.5.240.0040.04317.41
5.5.230.0030.00914.46
5.5.220.0040.00414.45
5.5.210.0000.01414.29
5.5.200.0000.01414.52
5.5.190.0030.01114.45
5.5.180.0090.00614.46
5.5.170.0100.00314.37
5.5.160.0070.00714.47
5.5.150.0070.00714.52
5.5.140.0060.00614.54
5.5.130.0100.00314.58
5.5.120.0120.00314.46
5.5.110.0070.00714.29
5.5.100.0060.00314.03
5.5.90.0030.01014.34
5.5.80.0070.00314.53
5.5.70.0110.00314.26
5.5.60.0000.01114.20
5.5.50.0000.01014.00
5.5.40.0040.01114.19
5.5.30.0040.01214.48
5.5.20.0060.00614.44
5.5.10.0030.01314.34
5.5.00.0000.01314.42
5.4.450.0200.03316.13
5.4.440.0200.03515.99
5.4.430.0110.02716.17
5.4.420.0080.02816.18
5.4.410.0100.03016.11
5.4.400.0850.00315.84
5.4.390.0900.00315.65
5.4.380.0200.03615.80
5.4.370.0160.02615.60
5.4.360.0150.03015.79
5.4.350.0130.03115.69
5.4.340.0160.03015.77
5.4.330.0030.00712.79
5.4.320.0060.02612.65
5.4.310.0070.02412.65
5.4.300.0030.02912.65
5.4.290.0110.02712.65
5.4.280.0050.02412.60
5.4.270.0060.02612.60
5.4.260.0130.03015.88
5.4.250.0050.03015.89
5.4.240.0030.03015.73
5.4.230.0030.04315.94
5.4.220.0040.03215.90
5.4.210.0080.02815.88
5.4.200.0080.02715.87
5.4.190.0020.04615.90
5.4.180.0070.02715.81
5.4.170.0070.03615.90
5.4.160.0100.02515.78
5.4.150.0050.02915.90
5.4.140.0090.02214.62
5.4.130.0070.02514.69
5.4.120.0060.04114.67
5.4.110.0160.03014.73
5.4.100.0020.03814.73
5.4.90.0020.03114.70
5.4.80.0130.02514.67
5.4.70.0060.02814.68
5.4.60.0050.03714.67
5.4.50.0070.03714.59
5.4.40.0020.03214.66
5.4.30.0120.02514.61
5.4.20.0080.02814.68
5.4.10.0080.03014.65
5.4.00.0070.02414.34
5.3.290.0080.02912.80
5.3.280.0060.02613.65
5.3.270.0050.03513.74
5.3.260.0030.03413.74
5.3.250.0140.02913.68
5.3.240.0070.02813.71
5.3.230.0080.03113.74
5.3.220.0040.03513.77
5.3.210.0070.02713.72
5.3.200.0020.03013.66
5.3.190.0100.02713.72
5.3.180.0080.02613.68
5.3.170.0110.03513.73
5.3.160.0070.03713.79
5.3.150.0050.03013.71
5.3.140.0030.03013.72
5.3.130.0080.02513.78
5.3.120.0030.04013.75
5.3.110.0030.03213.78
5.3.100.0070.02513.42
5.3.90.0030.02713.48
5.3.80.0060.02813.49
5.3.70.0080.02613.45
5.3.60.0070.03013.50
5.3.50.0050.04013.37
5.3.40.0050.03013.38
5.3.30.0020.03313.44
5.3.20.0100.03113.29
5.3.10.0080.02513.25
5.3.00.0130.02713.30
5.2.170.0100.03711.03
5.2.160.0000.04711.06
5.2.150.0030.04711.07
5.2.140.0100.05711.07
5.2.130.0000.04310.98
5.2.120.0070.03710.99
5.2.110.0070.05011.11
5.2.100.0000.06311.11
5.2.90.0070.04010.88
5.2.80.0030.04311.02
5.2.70.0070.04011.20
5.2.60.0000.04311.17
5.2.50.0100.03311.12
5.2.40.0070.03711.11
5.2.30.0070.03710.81
5.2.20.0000.04310.97
5.2.10.0030.05310.76
5.2.00.0000.04310.89
5.1.60.0030.04310.06
5.1.50.0100.0309.77
5.1.40.0100.02710.06
5.1.30.0100.05010.41
5.1.20.0130.04010.34
5.1.10.0070.03310.09
5.1.00.0030.04710.13
5.0.50.0070.0238.70
5.0.40.0030.0278.56
5.0.30.0030.0578.18
5.0.20.0130.0308.25
5.0.10.0030.0308.24
5.0.00.0030.0578.24
4.4.90.0030.0207.30
4.4.80.0070.0177.30
4.4.70.0070.0177.30
4.4.60.0070.0237.30
4.4.50.0000.0237.30
4.4.40.0000.0337.30
4.4.30.0000.0277.30
4.4.20.0030.0207.30
4.4.10.0030.0207.30
4.4.00.0100.0277.30
4.3.110.0030.0207.30
4.3.100.0000.0377.30
4.3.90.0130.0177.30
4.3.80.0100.0377.30
4.3.70.0030.0207.30
4.3.60.0030.0277.30
4.3.50.0000.0307.30
4.3.40.0070.0407.30
4.3.30.0030.0277.30
4.3.20.0000.0237.30
4.3.10.0030.0207.30
4.3.00.0070.0207.58

preferences:
46.06 ms | 400 KiB | 5 Q