3v4l.org

run code in 300+ PHP versions simultaneously
<?php $replacements = array ( 'עיצוב-פנים' => 'עיצוב פנים', 'עיצוב-פנים' => 'מעצבת פנים', 'עיצוב-פנים' => 'עיצוב משרדים', ); var_export($replacements); echo "\n---\n"; $replacements = array( 'עיצוב פנים' => 'עיצוב-פנים', 'מעצבת פנים' => 'עיצוב-פנים', 'עיצוב משרדים' => 'עיצוב-פנים', ); var_export($replacements); echo "\n---\n"; $input = 'Hebrew string is here: עיצוב פנים and back to latin.'; var_export( strtr($input, $replacements) ); echo "\n---\n"; var_export( str_replace(array_keys($replacements), $replacements, $input) );

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.130.0060.00317.50
8.4.120.0110.00920.61
8.4.110.0140.00720.61
8.4.100.0150.00818.78
8.4.90.0110.01020.35
8.4.80.0100.01018.76
8.4.70.0090.00719.14
8.4.60.0050.00318.63
8.4.50.0050.00517.73
8.4.40.0050.00317.58
8.4.30.0000.00819.04
8.4.20.0150.00418.07
8.4.10.0050.00519.62
8.3.260.0120.00716.41
8.3.250.0120.00718.81
8.3.240.0110.00916.38
8.3.230.0040.00616.47
8.3.220.0060.01118.80
8.3.210.0120.00816.54
8.3.200.0030.00516.32
8.3.190.0140.00616.44
8.3.180.0100.00816.98
8.3.170.0040.01418.98
8.3.160.0130.00616.43
8.3.150.0060.01216.96
8.3.140.0150.00016.45
8.3.130.0080.00818.40
8.3.120.0060.00320.61
8.3.110.0030.00616.59
8.3.100.0030.00518.28
8.3.90.0050.00326.77
8.3.80.0100.00018.05
8.3.70.0090.00616.63
8.3.60.0090.00918.38
8.3.50.0150.00316.57
8.3.40.0100.01023.49
8.3.30.0070.01022.03
8.3.20.0060.00321.95
8.3.10.0080.00021.75
8.3.00.0080.00018.95
8.2.290.0100.01020.15
8.2.280.0130.00520.18
8.2.270.0130.00718.98
8.2.260.0070.01120.47
8.2.250.0150.00418.38
8.2.240.0060.00317.36
8.2.230.0000.00820.94
8.2.220.0110.00724.06
8.2.210.0090.00026.77
8.2.200.0030.00618.16
8.2.190.0110.00718.42
8.2.180.0000.01518.38
8.2.170.0160.00022.96
8.2.160.0060.01222.96
8.2.150.0080.00018.77
8.2.140.0070.00020.35
8.2.130.0080.00020.58
8.2.120.0040.00419.02
8.2.110.0000.00819.12
8.2.100.0000.00818.97
8.2.90.0030.00618.87
8.2.80.0060.00318.98
8.2.70.0060.00318.68
8.2.60.0000.00818.56
8.2.50.0090.00018.81
8.2.40.0080.00018.88
8.2.30.0080.00018.43
8.2.20.0050.00318.71
8.2.10.0090.00018.70
8.2.00.0050.00320.43
8.1.330.0100.00821.84
8.1.320.0090.00315.98
8.1.310.0120.00316.55
8.1.300.0080.00015.95
8.1.290.0060.00330.84
8.1.280.0110.00725.92
8.1.270.0080.00022.14
8.1.260.0070.00323.85
8.1.250.0040.00421.87
8.1.240.0000.00818.68
8.1.230.0030.00618.52
8.1.220.0050.00318.92
8.1.210.0040.00418.50
8.1.200.0030.00618.70
8.1.190.0090.00018.49
8.1.180.0030.00618.25
8.1.170.0060.00318.25
8.1.160.0050.00318.34
8.1.150.0050.00318.35
8.1.140.0090.00018.27
8.1.130.0040.00418.60
8.1.120.0040.00418.45
8.1.110.0040.00418.55
8.1.100.0050.00318.37
8.1.90.0060.00318.55
8.1.80.0080.00018.55
8.1.70.0040.00418.51
8.1.60.0000.00818.73
8.1.50.0030.00718.55
8.1.40.0030.00618.50
8.1.30.0040.00418.63
8.1.20.0080.00018.64
8.1.10.0000.00818.67
8.1.00.0000.00818.50

preferences:
27.32 ms | 403 KiB | 5 Q