3v4l.org

run code in 300+ PHP versions simultaneously
<?php function interpolate($str, $data) { // /var/storage/images/strip/' .$hash . '/tn_' . $n . '.jpg'; array_walk($data, function($value, $key) use ($str) { $str = str_replace('{{' . $key . '}}', $value, $str); echo $str . PHP_EOL; }); return $str; } $str = '/var/storage/images/strip/{{hash}}/tn_{{n}}.jpg'; echo interpolate($str, array('hash' => '0238de39s82u4d30238de39s82u4d3', 'n' => 1));

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.0070.01118.30
8.3.50.0090.01117.31
8.3.40.0070.01118.68
8.3.30.0140.00018.75
8.3.20.0050.00318.62
8.3.10.0050.00320.54
8.3.00.0080.00017.50
8.2.180.0180.00416.50
8.2.170.0120.00322.96
8.2.160.0070.00722.18
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00319.77
8.2.110.0070.00321.18
8.2.100.0110.00017.84
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0000.00818.03
8.2.50.0040.00418.07
8.2.40.0030.00619.94
8.2.30.0040.00418.02
8.2.20.0040.00417.67
8.2.10.0030.00517.63
8.2.00.0000.00817.80
8.1.280.0090.00625.92
8.1.270.0080.00024.66
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00622.65
8.1.230.0100.00020.85
8.1.220.0000.00818.77
8.1.210.0060.00618.92
8.1.200.0070.00317.48
8.1.190.0000.00817.52
8.1.180.0000.00818.10
8.1.170.0040.00418.91
8.1.160.0040.00418.77
8.1.150.0040.00418.52
8.1.140.0050.00217.57
8.1.130.0070.00017.95
8.1.120.0070.00017.46
8.1.110.0000.00717.39
8.1.100.0040.00417.44
8.1.90.0000.00717.35
8.1.80.0070.00017.45
8.1.70.0000.00717.37
8.1.60.0070.00017.56
8.1.50.0060.00317.43
8.1.40.0000.00817.54
8.1.30.0030.00517.64
8.1.20.0060.00317.68
8.1.10.0030.00517.50
8.1.00.0040.00417.42
8.0.300.0040.00419.90
8.0.290.0080.00016.75
8.0.280.0070.00018.36
8.0.270.0030.00317.27
8.0.260.0040.00418.45
8.0.250.0000.00716.98
8.0.240.0060.00316.92
8.0.230.0050.00316.99
8.0.220.0030.00516.85
8.0.210.0000.01016.94
8.0.200.0030.00316.89
8.0.190.0030.00616.97
8.0.180.0000.00716.91
8.0.170.0040.00416.74
8.0.160.0000.00816.90
8.0.150.0060.00316.79
8.0.140.0040.00716.74
8.0.130.0000.00513.27
8.0.120.0000.00716.84
8.0.110.0050.00516.78
8.0.100.0030.00516.72
8.0.90.0000.00716.90
8.0.80.0060.01416.94
8.0.70.0000.00816.72
8.0.60.0050.00316.79
8.0.50.0080.00016.87
8.0.30.0110.00816.90
8.0.20.0100.01317.12
8.0.10.0000.00717.00
8.0.00.0120.01216.84
7.4.330.0000.00712.93
7.4.320.0030.00316.66
7.4.300.0040.00416.37
7.4.290.0030.00316.61
7.4.280.0030.00716.46
7.4.270.0030.00316.55
7.4.260.0060.00013.25
7.4.250.0040.00416.50
7.4.240.0030.00316.54
7.4.230.0040.00316.67
7.4.220.0040.01216.61
7.4.210.0100.00616.54
7.4.200.0070.00016.42
7.4.190.0070.00016.56
7.4.160.0090.00616.50
7.4.150.0160.00016.64
7.4.140.0110.01517.19
7.4.130.0090.00816.44
7.4.120.0070.01116.61
7.4.110.0060.01116.70
7.4.100.0110.00616.39
7.4.90.0110.00716.46
7.4.80.0090.00916.38
7.4.70.0070.01016.24
7.4.60.0130.01016.44
7.4.50.0060.00316.27
7.4.40.0060.00916.88
7.4.30.0080.00816.61
7.4.00.0070.00914.91
7.3.330.0030.00313.27
7.3.320.0030.00313.27
7.3.310.0000.00616.31
7.3.300.0070.00016.18
7.3.290.0110.00316.30
7.3.280.0080.00916.26
7.3.270.0030.01417.07
7.3.260.0110.00716.98
7.3.250.0120.00516.36
7.3.240.0050.01116.51
7.3.230.0070.01016.46
7.3.210.0100.01316.53
7.3.200.0160.00619.39
7.3.190.0000.02116.58
7.3.180.0100.00916.57
7.3.170.0090.00616.29
7.3.160.0090.00616.44
7.3.120.0080.00814.99
7.3.110.0070.01114.91
7.3.100.0000.01614.87
7.3.90.0070.00714.60
7.3.80.0030.01015.00
7.3.70.0070.00314.91
7.3.60.0090.00314.73
7.3.50.0040.01114.98
7.3.40.0060.01014.90
7.3.30.0060.01214.77
7.3.20.0070.00716.62
7.3.10.0020.01016.62
7.3.00.0020.01216.57
7.2.330.0100.01016.67
7.2.320.0070.01016.66
7.2.310.0070.01216.52
7.2.300.0080.00816.79
7.2.290.0110.00616.67
7.2.250.0030.01615.23
7.2.240.0070.01315.18
7.2.230.0040.01115.28
7.2.220.0030.00915.20
7.2.210.0060.00915.17
7.2.200.0060.00615.02
7.2.190.0000.00915.05
7.2.180.0000.01215.00
7.2.170.0030.01015.16
7.2.130.0070.00716.77
7.2.120.0030.01216.93
7.2.110.0040.01217.09
7.2.100.0070.00316.68
7.2.90.0060.00616.83
7.2.80.0050.00516.94
7.2.70.0030.01216.92
7.2.60.0000.01516.61
7.2.50.0030.01317.12
7.2.40.0090.00917.01
7.2.30.0040.01217.02
7.2.20.0000.01216.67
7.2.10.0030.01016.72
7.2.00.0110.00316.75
7.1.330.0120.00415.80
7.1.320.0000.01515.43
7.1.310.0070.01015.55
7.1.300.0060.00615.53
7.1.290.0100.00315.63
7.1.280.0100.00315.93
7.1.270.0040.00715.81
7.1.260.0050.00515.63
7.1.250.0080.00315.71
7.1.70.0050.00216.81
7.1.60.0110.01419.40
7.1.50.0140.00716.86
7.1.00.0030.06322.31
7.0.200.0000.01016.64
7.0.140.0030.07021.95
7.0.120.0030.03022.04
7.0.60.0170.07019.99
7.0.50.0030.04317.86
7.0.40.0100.08319.91
7.0.30.0270.04020.24
7.0.20.0270.05320.33
7.0.10.0100.07720.10
7.0.00.0070.07320.12
5.6.280.0000.07720.78
5.6.210.0070.08720.62
5.6.200.0130.05718.15
5.6.190.0070.04720.77
5.6.180.0270.05720.48
5.6.170.0200.05020.51
5.6.160.0030.04720.52
5.6.150.0030.04018.14
5.6.140.0030.08718.16
5.6.130.0130.07318.15
5.6.120.0100.05021.02
5.6.110.0100.07721.03
5.6.100.0130.07321.02
5.6.90.0130.08020.98
5.6.80.0130.06020.53
5.5.350.0100.07320.50
5.5.340.0070.05718.09
5.5.330.0100.06020.37
5.5.320.0270.06320.42
5.5.310.0330.07020.30
5.5.300.0100.05317.93
5.5.290.0130.03017.94
5.5.280.0030.04320.88
5.5.270.0200.07020.87
5.5.260.0230.08320.76
5.5.250.0100.07720.47
5.5.240.0130.07320.16
5.4.450.0800.03719.18
5.4.440.0870.04319.46
5.4.430.0430.04019.32
5.4.420.0300.04719.54
5.4.410.0730.03719.05
5.4.400.0500.03719.32
5.4.390.0770.03319.18
5.4.380.0670.03718.95
5.4.370.0400.04719.16
5.4.360.0800.03719.15
5.4.350.0770.04719.22
5.4.340.0530.03719.23
5.4.320.0770.03318.96
5.4.310.0470.03319.32
5.4.300.0570.04319.07
5.4.290.0330.05319.05
5.4.280.0500.03318.86
5.4.270.0800.03319.20
5.4.260.0630.05018.88
5.4.250.0730.03718.85
5.4.240.0430.03718.96
5.4.230.0200.04019.21
5.4.220.0530.03319.04
5.4.210.0300.08018.94
5.4.200.0800.03319.14
5.4.190.0770.04719.12
5.4.180.0730.05019.05
5.4.170.0870.03319.20
5.4.160.0770.04019.11
5.4.150.0700.04719.22
5.4.140.0570.04716.41
5.4.130.0730.03716.45
5.4.120.0630.02716.40
5.4.110.0500.04016.30
5.4.100.0400.03716.60
5.4.90.0500.03716.56
5.4.80.0430.03316.23
5.4.70.0330.04016.62
5.4.60.0800.03316.43
5.4.50.0570.03316.53
5.4.40.0600.04016.48
5.4.30.0600.03016.40
5.4.20.0530.03316.48
5.4.10.0670.04716.50
5.4.00.0470.04316.31
5.3.290.0470.04015.82
5.3.280.0730.03315.77
5.3.270.0570.04315.77
5.3.260.0770.02715.77
5.3.250.0470.04715.77
5.3.240.0430.06715.77
5.3.230.0370.04015.77
5.3.220.0630.03315.77
5.3.210.0730.04015.77
5.3.200.0570.05315.77
5.3.190.0700.03315.77
5.3.180.0800.03315.77
5.3.170.0770.04015.77
5.3.160.0700.03715.77
5.3.150.0700.03715.77
5.3.140.0470.04315.77
5.3.130.0400.04715.77
5.3.120.0470.04016.31
5.3.110.0600.05016.31
5.3.100.0470.03016.31
5.3.90.0470.04016.31
5.3.80.0500.03316.31
5.3.70.0630.03716.31
5.3.60.0770.04016.31
5.3.50.0400.03716.31
5.3.40.0630.02716.31
5.3.30.0530.03316.31
5.3.20.0500.03716.31
5.3.10.0170.05716.31
5.3.00.0800.02716.31
5.2.170.0200.03316.31
5.2.160.0270.03316.31
5.2.150.0400.03016.31
5.2.140.0700.02316.31
5.2.130.0600.02316.31
5.2.120.0500.02716.31
5.2.110.0470.02316.31
5.2.100.0130.03316.31
5.2.90.0270.03316.31
5.2.80.0270.03316.31
5.2.70.0630.03016.31
5.2.60.0330.02316.31
5.2.50.0330.04316.31
5.2.40.0400.02716.31
5.2.30.0330.02716.31
5.2.20.0600.03316.31
5.2.10.0330.03016.31
5.2.00.0500.03016.31
5.1.60.0370.02316.31
5.1.50.0200.03016.31
5.1.40.0170.03016.31
5.1.30.0300.03016.31
5.1.20.0030.02016.31
5.1.10.0100.02716.31
5.1.00.0300.02316.31
5.0.50.0130.01716.31
5.0.40.0370.01716.31
5.0.30.0270.03316.31
5.0.20.0330.01716.31
5.0.10.0270.01316.31
5.0.00.0000.02716.31
4.4.90.0130.01716.31
4.4.80.0170.01716.31
4.4.70.0170.02016.31
4.4.60.0330.01716.31
4.4.50.0070.01716.31
4.4.40.0200.02316.31
4.4.30.0200.01316.31
4.4.20.0130.01316.31
4.4.10.0130.01716.31
4.4.00.0300.02016.31
4.3.110.0270.02016.31
4.3.100.0100.01316.31
4.3.90.0070.01716.31
4.3.80.0030.02716.31
4.3.70.0430.01016.31
4.3.60.0270.02016.31
4.3.50.0100.01716.31
4.3.40.0030.02716.31
4.3.30.0130.02316.31
4.3.20.0170.01316.31
4.3.10.0030.01716.31
4.3.00.0130.01316.31

preferences:
58.32 ms | 401 KiB | 5 Q