3v4l.org

run code in 300+ PHP versions simultaneously
<?php $selfTable = 'songs'; $tables = array( 'types' => 'layout_template_types' ); $string = '$content AS content, CONCAT_WS( ".", $types.alias, layout_templates.custom_item_id ), id'; echo preg_replace_callback('#\$([\w]+)\.([\w]+)#', function($match) use ($tables) { return '`' . $tables[$match[1]] . '`.`' . $match[2] . '`'; }, $string); echo preg_replace_callback('#\$([\w]+)#', function($match) use ($selfTable) { return '`' . $selfTable . '`.`' . $match[1] . '`'; }, $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.3.60.0100.01018.43
8.3.50.0080.01321.21
8.3.40.0110.00419.09
8.3.30.0080.00520.17
8.3.20.0070.00020.34
8.3.10.0090.00622.09
8.3.00.0000.00922.39
8.2.180.0100.00716.63
8.2.170.0040.01122.96
8.2.160.0090.00622.16
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00721.05
8.2.110.0110.00622.25
8.2.100.0080.00417.84
8.2.90.0050.00519.21
8.2.80.0070.00019.37
8.2.70.0040.00417.88
8.2.60.0040.00418.03
8.2.50.0060.00318.07
8.2.40.0030.00718.34
8.2.30.0040.00419.39
8.2.20.0070.00017.87
8.2.10.0050.00317.89
8.2.00.0000.00917.92
8.1.280.0030.01725.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01022.11
8.1.230.0090.00317.94
8.1.220.0030.00517.74
8.1.210.0110.00018.77
8.1.200.0030.00617.48
8.1.190.0040.00417.50
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0020.00518.98
8.1.150.0070.00018.72
8.1.140.0050.00217.54
8.1.130.0030.00317.91
8.1.120.0000.00717.49
8.1.110.0040.00417.61
8.1.100.0040.00417.63
8.1.90.0040.00417.70
8.1.80.0000.00717.65
8.1.70.0000.00817.62
8.1.60.0000.00917.80
8.1.50.0000.00817.66
8.1.40.0040.00417.59
8.1.30.0000.00817.70
8.1.20.0000.00817.86
8.1.10.0080.00017.66
8.1.00.0000.00817.65
8.0.300.0000.00820.13
8.0.290.0000.00717.14
8.0.280.0000.00818.49
8.0.270.0070.00017.29
8.0.260.0030.00317.00
8.0.250.0080.00017.11
8.0.240.0040.00417.11
8.0.230.0000.00717.13
8.0.220.0020.00517.09
8.0.210.0070.00017.09
8.0.200.0000.00817.10
8.0.190.0000.00817.08
8.0.180.0000.00717.04
8.0.170.0060.00317.10
8.0.160.0000.00717.05
8.0.150.0000.00716.91
8.0.140.0040.00417.06
8.0.130.0030.00313.49
8.0.120.0050.00317.02
8.0.110.0030.00517.14
8.0.100.0040.00316.91
8.0.90.0030.00316.93
8.0.80.0060.01317.06
8.0.70.0030.00617.00
8.0.60.0000.00717.08
8.0.50.0080.00016.92
8.0.30.0150.00617.28
8.0.20.0090.00917.40
8.0.10.0030.00517.25
8.0.00.0150.00516.86
7.4.330.0000.00516.80
7.4.320.0000.00616.73
7.4.300.0060.00016.70
7.4.290.0030.00316.80
7.4.280.0030.00316.83
7.4.270.0040.00416.67
7.4.260.0060.00313.48
7.4.250.0080.00016.75
7.4.240.0050.00216.69
7.4.230.0000.00716.65
7.4.220.0140.00316.88
7.4.210.0070.00916.86
7.4.200.0080.00016.83
7.4.190.0070.00016.83
7.4.160.0100.00716.66
7.4.150.0130.00617.40
7.4.140.0130.00517.86
7.4.130.0080.01216.75
7.4.120.0090.00816.86
7.4.110.0100.00616.65
7.4.100.0100.00716.71
7.4.90.0140.00416.70
7.4.80.0070.01019.39
7.4.70.0030.01616.63
7.4.60.0090.01216.69
7.4.50.0000.00816.55
7.4.40.0030.01322.77
7.4.30.0070.01416.71
7.4.00.0060.00915.29
7.3.330.0030.00313.53
7.3.320.0030.00313.29
7.3.310.0000.00716.49
7.3.300.0070.00016.54
7.3.290.0090.00616.34
7.3.280.0090.00816.44
7.3.270.0070.01017.40
7.3.260.0080.01118.24
7.3.250.0120.00516.62
7.3.240.0070.01116.52
7.3.230.0160.00316.58
7.3.210.0130.00316.84
7.3.200.0030.02019.39
7.3.190.0150.00316.52
7.3.180.0090.00616.71
7.3.170.0060.01116.53
7.3.160.0100.00716.64
7.3.120.0070.00715.05
7.2.330.0110.00716.98
7.2.320.0090.00816.93
7.2.310.0040.01416.86
7.2.300.0110.00716.72
7.2.290.0070.01117.01
7.2.00.0070.00719.44
7.1.100.0040.00718.50
7.1.70.0060.00317.35
7.1.60.0100.01419.17
7.1.50.0120.01217.32
7.1.00.0030.05322.30
7.0.200.0040.01116.95
7.0.140.0030.09021.95
7.0.100.0100.08020.02
7.0.90.0070.08319.92
7.0.80.0170.07020.02
7.0.70.0130.07319.93
7.0.60.0030.08719.98
7.0.50.0070.05020.37
7.0.40.0030.05320.11
7.0.30.0030.08720.00
7.0.20.0100.08320.14
7.0.10.0100.07720.10
7.0.00.0100.07720.05
5.6.280.0130.06720.89
5.6.250.0070.07720.68
5.6.240.0030.04720.56
5.6.230.0000.06320.55
5.6.220.0070.08020.59
5.6.210.0100.08020.57
5.6.200.0200.07021.13
5.6.190.0100.08321.09
5.6.180.0130.08021.18
5.6.170.0030.05021.14
5.6.160.0070.08721.09
5.6.150.0070.08321.05
5.6.140.0100.08020.96
5.6.130.0170.06721.14
5.6.120.0070.08320.95
5.6.110.0100.08320.92
5.6.100.0100.07021.10
5.6.90.0070.08020.94
5.6.80.0130.07720.57
5.6.70.0030.07320.35
5.6.60.0070.07320.34
5.6.50.0070.07320.53
5.6.40.0130.07020.44
5.6.30.0000.04720.45
5.6.20.0000.09720.54
5.6.10.0130.07020.34
5.6.00.0030.08320.52
5.5.380.0100.07320.39
5.5.370.0130.07720.36
5.5.360.0030.08320.45
5.5.350.0070.08320.50
5.5.340.0000.09020.95
5.5.330.0070.08320.83
5.5.320.0170.07320.94
5.5.310.0070.08020.77
5.5.300.0100.06720.64
5.5.290.0030.09020.94
5.5.280.0070.08020.87
5.5.270.0070.08320.89
5.5.260.0100.08020.74
5.5.250.0070.07720.75
5.5.240.0100.08020.20
5.5.230.0070.07720.12
5.5.220.0000.08320.27
5.5.210.0070.07020.26
5.5.200.0130.07720.26
5.5.190.0030.07020.27
5.5.180.0070.05320.28
5.5.160.0170.07320.22
5.5.150.0030.08020.27
5.5.140.0030.08020.19
5.5.130.0170.04720.25
5.5.120.0130.08020.22
5.5.110.0000.08320.13
5.5.100.0100.07320.14
5.5.90.0070.07720.16
5.5.80.0100.07720.17
5.5.70.0130.06020.15
5.5.60.0130.07020.17
5.5.50.0100.07020.16
5.5.40.0030.05320.07
5.5.30.0100.04020.16
5.5.20.0170.06320.04
5.5.10.0030.08020.07
5.5.00.0170.07020.02
5.4.450.0070.08019.53
5.4.440.0070.07719.24
5.4.430.0070.07319.23
5.4.420.0100.08019.53
5.4.410.0070.07019.29
5.4.400.0070.08019.05
5.4.390.0070.08019.11
5.4.380.0070.07718.95
5.4.370.0170.06719.23
5.4.360.0100.07319.13
5.4.350.0100.06719.18
5.4.340.0230.06019.18
5.4.320.0130.07019.00
5.4.310.0030.07019.20
5.4.300.0100.07319.21
5.4.290.0070.07719.12
5.4.280.0200.04718.88
5.4.270.0100.06319.13
5.4.260.0130.06719.12
5.4.250.0070.07319.12
5.4.240.0130.03719.04
5.4.230.0070.08019.02
5.4.220.0170.07018.87
5.4.210.0030.08019.12
5.4.200.0000.05019.20
5.4.190.0000.08319.02
5.4.180.0030.08019.12
5.4.170.0100.08018.89
5.4.160.0070.07718.86
5.4.150.0200.06318.85
5.4.140.0100.06316.54
5.4.130.0130.06016.38
5.4.120.0130.06016.48
5.4.110.0000.08016.45
5.4.100.0000.07016.43
5.4.90.0070.04316.42
5.4.80.0230.05316.48
5.4.70.0000.08016.46
5.4.60.0100.06716.25
5.4.50.0030.07316.46
5.4.40.0030.06716.35
5.4.30.0130.06316.29
5.4.20.0130.05716.36
5.4.10.0070.07316.40
5.4.00.0070.06715.77
5.3.290.0100.07314.70
5.3.280.0030.08314.59
5.3.270.0070.08014.59
5.3.260.0100.07314.61
5.3.250.0130.07014.63
5.3.240.0070.08014.63
5.3.230.0030.08014.59
5.3.220.0030.05314.55
5.3.210.0070.05014.58
5.3.200.0000.04314.68
5.3.190.0000.05314.71
5.3.180.0030.07714.57
5.3.170.0100.06314.66
5.3.160.0070.07714.49
5.3.150.0130.04314.59
5.3.140.0030.06314.58
5.3.130.0070.07014.68
5.3.120.0070.05314.58
5.3.110.0030.08714.61
5.3.100.0070.07714.16
5.3.90.0130.07014.07
5.3.80.0130.07014.07
5.3.70.0100.06714.16
5.3.60.0130.07014.07
5.3.50.0030.07014.07
5.3.40.0100.07014.07
5.3.30.0070.07714.07
5.3.20.0070.05714.07
5.3.10.0030.05314.07
5.3.00.0070.07314.07
5.2.170.0100.06314.07
5.2.160.0000.06314.07
5.2.150.0070.06014.07
5.2.140.0170.04014.07
5.2.130.0070.06014.07
5.2.120.0100.04714.07
5.2.110.0030.05714.07
5.2.100.0100.03714.07
5.2.90.0030.03314.07
5.2.80.0070.06314.07
5.2.70.0000.06014.07
5.2.60.0100.05714.07
5.2.50.0070.05714.07
5.2.40.0070.05314.07
5.2.30.0000.04714.07
5.2.20.0070.06014.07
5.2.10.0100.05714.07
5.2.00.0100.05714.07
5.1.60.0130.04314.07
5.1.50.0100.03014.07
5.1.40.0130.04714.07
5.1.30.0070.04014.07
5.1.20.0100.05014.07
5.1.10.0030.05714.07
5.1.00.0070.05314.07
5.0.50.0070.04714.07
5.0.40.0030.03714.07
5.0.30.0000.06714.07
5.0.20.0230.02314.07
5.0.10.0100.03314.07
5.0.00.0030.06314.07
4.4.90.0000.03014.07
4.4.80.0030.03314.07
4.4.70.0000.02014.07
4.4.60.0030.03714.07
4.4.50.0000.03714.07
4.4.40.0030.04014.07
4.4.30.0030.03014.07
4.4.20.0000.04014.07
4.4.10.0030.03314.07
4.4.00.0070.04714.07
4.3.110.0030.03314.07
4.3.100.0000.03714.07
4.3.90.0030.03014.07
4.3.80.0000.05714.07
4.3.70.0000.03714.07
4.3.60.0000.03014.07
4.3.50.0030.03314.07
4.3.40.0000.03714.07
4.3.30.0000.03014.07
4.3.20.0000.04014.07
4.3.10.0030.03314.07
4.3.00.0030.03314.07

preferences:
41.1 ms | 401 KiB | 5 Q