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);

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.55
8.3.50.0080.01021.21
8.3.40.0070.00718.83
8.3.30.0090.00620.34
8.3.20.0000.00720.18
8.3.10.0050.00321.92
8.3.00.0000.00822.40
8.2.180.0070.01016.47
8.2.170.0070.00722.96
8.2.160.0070.00722.20
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00720.75
8.2.110.0180.00322.10
8.2.100.0090.00318.03
8.2.90.0050.00319.20
8.2.80.0040.00419.30
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0090.00018.07
8.2.40.0000.00818.15
8.2.30.0000.00719.34
8.2.20.0030.00618.00
8.2.10.0040.00417.86
8.2.00.0040.00417.78
8.1.280.0070.01125.92
8.1.270.0030.00523.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00323.83
8.1.230.0090.00322.82
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0070.00317.48
8.1.190.0030.00617.52
8.1.180.0040.00418.10
8.1.170.0040.00418.78
8.1.160.0000.00718.83
8.1.150.0040.00418.71
8.1.140.0000.00717.54
8.1.130.0030.00317.84
8.1.120.0030.00517.54
8.1.110.0040.00417.63
8.1.100.0000.00717.61
8.1.90.0040.00417.54
8.1.80.0040.00417.50
8.1.70.0030.00317.50
8.1.60.0040.00417.73
8.1.50.0040.00417.63
8.1.40.0050.00217.59
8.1.30.0020.00517.84
8.1.20.0050.00517.79
8.1.10.0070.00017.73
8.1.00.0000.00917.58
8.0.300.0070.00018.77
8.0.290.0070.00017.15
8.0.280.0040.00418.46
8.0.270.0030.00317.19
8.0.260.0030.00316.87
8.0.250.0000.00717.13
8.0.240.0080.00017.07
8.0.230.0000.00817.02
8.0.220.0070.00017.03
8.0.210.0040.00417.04
8.0.200.0060.00017.09
8.0.190.0030.00517.12
8.0.180.0000.00716.95
8.0.170.0050.00317.00
8.0.160.0040.00417.01
8.0.150.0070.00016.87
8.0.140.0050.00216.91
8.0.130.0030.00313.53
8.0.120.0000.00916.91
8.0.110.0020.00517.10
8.0.100.0000.00816.90
8.0.90.0040.00417.10
8.0.80.0060.01217.03
8.0.70.0040.00416.89
8.0.60.0040.00416.98
8.0.50.0040.00316.97
8.0.30.0100.01017.18
8.0.20.0160.00317.52
8.0.10.0040.00417.03
8.0.00.0100.00916.95
7.4.330.0050.00016.71
7.4.320.0030.00316.80
7.4.300.0000.00616.80
7.4.290.0000.00716.71
7.4.280.0000.00816.84
7.4.270.0070.00016.82
7.4.260.0050.00013.48
7.4.250.0060.00316.75
7.4.240.0050.00216.74
7.4.230.0000.00816.84
7.4.220.0160.00316.66
7.4.210.0040.01216.76
7.4.200.0030.00316.56
7.4.190.0030.00316.85
7.4.160.0040.01316.77
7.4.150.0040.01517.40
7.4.140.0080.01017.86
7.4.130.0150.00616.68
7.4.120.0050.01116.75
7.4.110.0130.00316.63
7.4.100.0060.01216.64
7.4.90.0100.00616.83
7.4.80.0070.01119.39
7.4.70.0090.00616.55
7.4.60.0070.01016.63
7.4.50.0080.00016.82
7.4.40.0000.01622.77
7.4.30.0140.00616.57
7.4.00.0070.01014.94
7.3.330.0050.00013.46
7.3.320.0020.00313.35
7.3.310.0050.00316.32
7.3.300.0030.00316.46
7.3.290.0030.01016.48
7.3.280.0060.01316.39
7.3.270.0100.00717.40
7.3.260.0070.01118.24
7.3.250.0080.00916.61
7.3.240.0030.01316.63
7.3.230.0060.01116.57
7.3.210.0200.00016.62
7.3.200.0030.01519.39
7.3.190.0070.01016.81
7.3.180.0040.01216.46
7.3.170.0040.01316.46
7.3.160.0030.01316.52
7.3.120.0120.00314.93
7.3.10.0030.01317.03
7.3.00.0030.01216.76
7.2.330.0030.01716.76
7.2.320.0100.00716.89
7.2.310.0030.01416.77
7.2.300.0070.01116.68
7.2.290.0050.01116.86
7.2.130.0140.00316.96
7.2.120.0070.00716.79
7.2.110.0090.00017.05
7.2.100.0000.01316.96
7.2.90.0100.00017.19
7.2.80.0070.00717.06
7.2.70.0120.00017.02
7.2.60.0000.01216.79
7.2.50.0030.01217.13
7.2.40.0090.00617.11
7.2.30.0060.01017.25
7.2.20.0160.00017.13
7.2.10.0090.00616.87
7.2.00.0040.00918.35
7.1.250.0040.00716.03
7.1.100.0090.00318.67
7.1.70.0040.00417.06
7.1.60.0000.01217.16
7.1.50.0030.00716.84
7.1.40.0060.00616.78
7.1.30.0070.00716.91
7.1.20.0040.01117.06
7.1.10.0000.01016.88
7.1.00.0050.00317.05
7.0.200.0050.00216.86
7.0.190.0100.00016.80
7.0.180.0000.01116.46
7.0.170.0080.00816.61
7.0.160.0080.00816.24
7.0.150.0040.00716.33
7.0.140.0070.01016.46
7.0.130.0060.01116.91
7.0.120.0000.01116.81
7.0.110.0040.00716.73
7.0.100.0040.01116.34
7.0.90.0000.01116.40
7.0.80.0070.00316.54
7.0.70.0030.00716.27
7.0.60.0040.00416.42
7.0.50.0000.01016.61
7.0.40.0040.00415.32
7.0.30.0030.00815.32
7.0.20.0090.00915.32
7.0.10.0030.01115.32
7.0.00.0030.00915.32
5.6.300.0130.05120.82
5.6.290.0110.05320.79
5.6.280.0040.04720.85
5.6.270.0070.08520.98
5.6.260.0060.08420.87
5.6.250.0070.04020.88
5.6.240.0070.07620.87
5.6.230.0030.05020.86
5.6.220.0060.06120.94
5.6.210.0030.04621.15
5.6.200.0100.07320.84
5.6.190.0110.04020.80
5.6.180.0100.06020.87
5.6.170.0070.06820.83
5.6.160.0060.04220.87
5.6.150.0030.04421.03
5.6.140.0030.04920.93
5.6.130.0000.07220.87
5.6.120.0070.04020.93
5.6.110.0040.04920.92
5.6.100.0170.03420.76
5.6.90.0070.08121.01
5.6.80.0040.04420.34
5.6.70.0090.05120.40
5.6.60.0030.04220.23
5.6.50.0040.04220.37
5.6.40.0090.03920.39
5.6.30.0100.03420.13
5.6.20.0030.05120.18
5.6.10.0060.03720.40
5.6.00.0030.08020.16
5.5.380.0000.06517.67
5.5.370.0030.03917.43
5.5.360.0030.04617.47
5.5.350.0040.03917.52
5.5.340.0030.06318.04
5.5.330.0100.03918.09
5.5.320.0030.07418.18
5.5.310.0100.07218.03
5.5.300.0060.05818.04
5.5.290.0000.04618.09
5.5.280.0070.06718.07
5.5.270.0030.08718.09
5.5.260.0030.05218.12
5.5.250.0030.04117.80
5.5.240.0030.03717.56
5.5.230.0030.03917.44
5.5.220.0030.04017.44
5.5.210.0030.04317.46
5.5.200.0000.04117.06
5.5.190.0000.04117.10
5.5.180.0030.04017.36
5.5.160.0070.06217.19
5.5.150.0030.03717.41
5.5.140.0030.04617.44
5.5.130.0100.05317.38
5.5.120.0030.04717.52
5.5.110.0000.06917.47
5.5.100.0030.04817.35
5.5.90.0000.04417.31
5.5.80.0070.03317.29
5.5.70.0070.03416.98
5.5.60.0030.05717.25
5.5.50.0030.03717.33
5.5.40.0060.03517.27
5.5.30.0030.03717.32
5.5.20.0070.07417.34
5.5.10.0030.05917.38
5.5.00.0070.08117.32
5.4.450.0000.04819.21
5.4.440.0030.03819.54
5.4.430.0070.04419.38
5.4.420.0000.07119.39
5.4.410.0000.04119.18
5.4.400.0030.05419.07
5.4.390.0000.04619.21
5.4.380.0070.03319.23
5.4.370.0100.03219.07
5.4.360.0040.03919.21
5.4.350.0060.04518.92
5.4.340.0000.06719.09
5.4.320.0060.04819.06
5.4.310.0030.04919.23
5.4.300.0000.04018.94
5.4.290.0030.07418.92
5.4.280.0070.03619.20
5.4.270.0060.03518.98
5.4.260.0040.04218.89
5.4.250.0100.03618.90
5.4.240.0100.03519.07
5.4.230.0030.04019.06
5.4.220.0030.04118.94
5.4.210.0060.03819.06
5.4.200.0030.04218.92
5.4.190.0130.07119.13
5.4.180.0130.05218.88
5.4.170.0100.06819.13
5.4.160.0000.04419.12
5.4.150.0030.03919.16
5.4.140.0000.03816.44
5.4.130.0060.03516.65
5.4.120.0030.03516.68
5.4.110.0230.02916.58
5.4.100.0060.03116.59
5.4.90.0060.06116.45
5.4.80.0000.04716.70
5.4.70.0240.03116.59
5.4.60.0040.03916.72
5.4.50.0030.04316.72
5.4.40.0100.06816.75
5.4.30.0030.07416.68
5.4.20.0000.03716.58
5.4.10.0030.05716.46
5.4.00.0100.05316.21
5.3.290.0030.06115.32
5.3.280.0060.03215.32
5.3.270.0070.03615.32
5.3.260.0070.04315.32
5.3.250.0000.04215.32
5.3.240.0030.03515.32
5.3.230.0060.03615.32
5.3.220.0070.03315.32
5.3.210.0070.04615.32
5.3.200.0040.03515.32
5.3.190.0030.03715.32
5.3.180.0230.02015.32
5.3.170.0070.05215.32
5.3.160.0000.04015.32
5.3.150.0030.03615.32
5.3.140.0000.03915.32
5.3.130.0000.06115.32
5.3.120.0070.05315.32
5.3.110.0030.07815.32
5.3.100.0070.03315.32
5.3.90.0000.04115.32
5.3.80.0030.03715.32
5.3.70.0030.03615.32
5.3.60.0000.03815.32
5.3.50.0000.03715.32
5.3.40.0030.04315.32
5.3.30.0030.03515.32
5.3.20.0060.03115.32
5.3.10.0030.04715.32
5.3.00.0070.03315.32
5.2.170.0000.03415.32
5.2.160.0000.03115.32
5.2.150.0000.04915.32
5.2.140.0030.02815.32
5.2.130.0070.02315.32
5.2.120.0000.03315.32
5.2.110.0000.03215.32
5.2.100.0000.03115.32
5.2.90.0000.03315.32
5.2.80.0000.03215.32
5.2.70.0100.02615.32
5.2.60.0030.02815.32
5.2.50.0030.03315.32
5.2.40.0030.03815.32
5.2.30.0030.03115.32
5.2.20.0030.06515.32
5.2.10.0030.02715.32
5.2.00.0000.03315.32
5.1.60.0060.02915.32
5.1.50.0000.03315.32
5.1.40.0030.02715.32
5.1.30.0030.02515.32
5.1.20.0000.02915.32
5.1.10.0040.02515.32
5.1.00.0030.02715.32
5.0.50.0030.04815.32
5.0.40.0000.02115.32
5.0.30.0000.03515.32
5.0.20.0040.03215.32
5.0.10.0030.03415.32
5.0.00.0000.04315.32
4.4.90.0000.01715.32
4.4.80.0060.02515.32
4.4.70.0000.02615.32
4.4.60.0000.02515.32
4.4.50.0000.01715.32
4.4.40.0000.02815.32
4.4.30.0030.02115.32
4.4.20.0000.01615.32
4.4.10.0030.01515.32
4.4.00.0030.03615.32
4.3.110.0000.01915.32
4.3.100.0030.01915.32
4.3.90.0030.01315.32
4.3.80.0030.02215.32
4.3.70.0000.01615.32
4.3.60.0030.01315.32
4.3.50.0000.01615.32
4.3.40.0030.04315.32
4.3.30.0000.02115.32
4.3.20.0040.03215.32
4.3.10.0070.03315.32
4.3.00.0000.03915.32

preferences:
73.11 ms | 400 KiB | 5 Q